commit:     fc11ac68832e53d6744e9c06125b60576d2f9373
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 17 15:27:51 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Dec 17 15:28:13 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=fc11ac68

sci-biology/atsas: New addition written by me

Package-Manager: portage-2.2.15

---
 sci-biology/atsas/ChangeLog          | 10 ++++++
 sci-biology/atsas/atsas-2.6.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++
 sci-biology/atsas/metadata.xml       |  5 +++
 3 files changed, 85 insertions(+)

diff --git a/sci-biology/atsas/ChangeLog b/sci-biology/atsas/ChangeLog
new file mode 100644
index 0000000..62afad1
--- /dev/null
+++ b/sci-biology/atsas/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-biology/atsas
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*atsas-2.6.0 (17 Dec 2014)
+
+  17 Dec 2014; Justin Lecher <[email protected]> +atsas-2.6.0.ebuild,
+  +metadata.xml:
+  New addition written by me
+

diff --git a/sci-biology/atsas/atsas-2.6.0.ebuild 
b/sci-biology/atsas/atsas-2.6.0.ebuild
new file mode 100644
index 0000000..46a7262
--- /dev/null
+++ b/sci-biology/atsas/atsas-2.6.0.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+DESCRIPTION="Biological Small Angle Scattering"
+HOMEPAGE="http://www.embl-hamburg.de/biosaxs";
+#SRC_URI="ATSAS-2.6.0-1.sl5.x86_64.tar.gz"
+#SRC_URI="ATSAS-2.6.0-1.el6.x86_64.tar.gz"
+SRC_URI="ATSAS-2.6.0-1_amd64.tar.gz"
+
+SLOT="0"
+LICENSE="atsas"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="examples"
+
+RDEPEND="
+       x11-libs/qwt:5
+       sci-libs/cbflib
+"
+DEPEND="dev-util/patchelf"
+
+RESTRICT="fetch"
+
+S="${WORKDIR}"/${P^^}-1
+
+QA_PREBUILT="opt/.*"
+
+pkg_nofetch() {
+       elog "Please visit 
http://www.embl-hamburg.de/biosaxs/atsas-online/download.php";
+       elog "and download the ${A} for Ubuntu 14.04"
+       elog "and place it in ${DISTDIR}"
+}
+
+src_install() {
+       local i
+       for i in bin/*; do
+               patchelf --set-rpath "${EPREFIX}"/opt/${PN}/ ${i} || die
+       done
+       exeinto /opt/bin
+       doexe bin/*
+
+       insinto /opt/${PN}
+       doins lib/*/atsas/{libedf.so*,libqtsoap.so*,libsaxs*.so*}
+
+       python_foreach_impl python_domodule lib/*/atsas/python*/dist-packages/*
+
+       rm share/doc/${P}/LICENSE.txt || die
+       if use examples; then
+               cp -rf share/doc/${P}/* share/${PN}/ || die
+       fi
+
+       pushd share/icons/hicolor/ > /dev/null
+       for i in *; do
+               doicon -s ${i} -t hicolor ${i}/*
+       done
+       popd > /dev/null
+
+       domenu share/applications/*
+
+       rm -rf share/{applications,doc,icons,mime} || die
+
+       insinto /usr
+       doins -r share
+}

diff --git a/sci-biology/atsas/metadata.xml b/sci-biology/atsas/metadata.xml
new file mode 100644
index 0000000..f17a827
--- /dev/null
+++ b/sci-biology/atsas/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <herd>sci-biology</herd>
+</pkgmetadata>

Reply via email to