blob: 212cd1f44aabbb3f8a70edd6d52e1b7e3b61b705 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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="
dev-libs/libxml2:2
dev-qt/qtcore:4
dev-qt/qtgui:4
media-libs/tiff:0
sci-libs/cbflib
x11-libs/qwt:5
"
DEPEND="dev-util/patchelf"
RESTRICT="fetch"
S="${WORKDIR}"/${P^^}-1
QA_PREBUILT="opt/.* usr/.*"
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 "$(gcc-config -L):${EPREFIX}/opt/${PN}/:${EPREFIX}/usr/lib/qt4/" \
${i} || die
done
exeinto /opt/bin
doexe bin/*
insinto /opt/${PN}
doins lib/*/atsas/{libedf.so*,libqtsoap.so*,libqwt*.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
}
|