Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/atsas/
Date: Fri, 09 Feb 2018 15:29:29
Message-Id: 1518190060.3c47777c6f875d6eaaca06ffc5e9bea008062ee6.alexxy@gentoo
1 commit: 3c47777c6f875d6eaaca06ffc5e9bea008062ee6
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 9 15:27:40 2018 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 9 15:27:40 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3c47777c
7
8 sci-biology/atsas: Add 2.8.3
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 sci-biology/atsas/atsas-2.8.3.ebuild | 76 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 76 insertions(+)
14
15 diff --git a/sci-biology/atsas/atsas-2.8.3.ebuild b/sci-biology/atsas/atsas-2.8.3.ebuild
16 new file mode 100644
17 index 000000000..b6c368c05
18 --- /dev/null
19 +++ b/sci-biology/atsas/atsas-2.8.3.ebuild
20 @@ -0,0 +1,76 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=6
26 +
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit python-r1
30 +
31 +DESCRIPTION="Biological Small Angle Scattering"
32 +HOMEPAGE="http://www.embl-hamburg.de/biosaxs"
33 +#SRC_URI="ATSAS-${PV}-1.sl5.x86_64.tar.gz"
34 +#SRC_URI="ATSAS-${PV}-1.el6.x86_64.tar.gz"
35 +SRC_URI="ATSAS-${PV}-1_amd64.tar.gz"
36 +
37 +SLOT="0"
38 +LICENSE="atsas"
39 +KEYWORDS="~amd64 ~amd64-linux"
40 +IUSE="examples"
41 +
42 +RDEPEND="
43 + dev-libs/libxml2:2
44 + dev-qt/qtcore:4
45 + dev-qt/qtgui:4
46 + media-libs/tiff:0
47 + sci-libs/cbflib
48 + x11-libs/qwt:5
49 +"
50 +DEPEND="dev-util/patchelf"
51 +
52 +RESTRICT="fetch strip"
53 +
54 +S="${WORKDIR}"/${P^^}-1
55 +
56 +QA_PREBUILT="opt/.* usr/.*"
57 +
58 +pkg_nofetch() {
59 + elog "Please visit http://www.embl-hamburg.de/biosaxs/atsas-online/download.php"
60 + elog "and download the ${A} for Ubuntu 16.04"
61 + elog "and place it in ${DISTDIR}"
62 +}
63 +
64 +src_install() {
65 + local i
66 + for i in bin/*; do
67 + patchelf \
68 + --set-rpath "$(gcc-config -L):${EPREFIX}/opt/${PN}/:${EPREFIX}/usr/lib/qt4/" \
69 + ${i} || die
70 + done
71 + exeinto /opt/bin
72 + doexe bin/*
73 +
74 + insinto /opt/${PN}
75 + doins lib/*/atsas/{libqwt*.so*,libsaxsdocument*.so*}
76 +
77 + python_foreach_impl python_domodule lib/*/atsas/python*/dist-packages/*
78 +
79 + rm share/doc/${P}/LICENSE.txt || die
80 + if use examples; then
81 + cp -rf share/doc/${P}/* share/${PN}/ || die
82 + fi
83 +
84 + pushd share/icons/hicolor/ > /dev/null
85 + for i in *; do
86 + doicon -s ${i} -t hicolor ${i}/*
87 + done
88 + popd > /dev/null
89 +
90 + domenu share/applications/*
91 +
92 + rm -rf share/{applications,doc,icons,mime} || die
93 +
94 + insinto /usr
95 + doins -r share
96 +}