Lines 11-26
Link Here
|
11 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
11 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
12 |
SLOT="0" |
12 |
SLOT="0" |
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
IUSE="" |
14 |
IUSE="doc pic python static zlib" |
|
|
15 |
EAPI="1" |
15 |
|
16 |
|
16 |
RDEPEND="!sci-chemistry/babel |
17 |
RDEPEND="!sci-chemistry/babel |
17 |
dev-libs/libxml2" |
18 |
>=dev-libs/libxml2-2.6.5 |
|
|
19 |
python? ( dev-lang/python ) |
20 |
zlib? ( sys-libs/zlib )" |
21 |
|
18 |
DEPEND="${RDEPEND} |
22 |
DEPEND="${RDEPEND} |
19 |
dev-libs/boost |
23 |
dev-libs/boost |
20 |
dev-lang/perl" |
24 |
dev-lang/perl |
|
|
25 |
python? ( dev-lang/swig ) |
26 |
doc? ( app-doc/doxygen )" |
27 |
|
28 |
src_compile() { |
29 |
local myconf="" |
30 |
if use python; then myconf="$myconf --enable-maintainer-mode"; fi |
31 |
myconf="${myconf} $(use_with pic)" |
32 |
myconf="${myconf} $(use_enable static)" |
33 |
# wxwidgets interface works only with Windows |
34 |
myconf="${myconf} --disable-wx-gui" |
35 |
myconf="${myconf} $(use_with zlib)" |
36 |
|
37 |
econf ${myconf} || die "econf failed" |
38 |
emake || die "emake failed" |
39 |
|
40 |
if use python; then |
41 |
pushd scripts/python > /dev/null |
42 |
python setup.py build || die "build python failed" |
43 |
popd > /dev/null |
44 |
fi |
45 |
} |
21 |
|
46 |
|
22 |
src_install() { |
47 |
src_install() { |
23 |
emake DESTDIR="${D}" install || die "make install failed." |
48 |
emake DESTDIR="${D}" install || die "make install failed" |
|
|
49 |
if use python; then |
50 |
pushd scripts/python > /dev/null |
51 |
python setup.py install --root="${D}" --optimize=1 || \ |
52 |
die "install python failed" |
53 |
popd > /dev/null |
54 |
fi |
24 |
dodoc AUTHORS ChangeLog NEWS README THANKS |
55 |
dodoc AUTHORS ChangeLog NEWS README THANKS |
25 |
cd doc |
56 |
cd doc |
26 |
dohtml *.html *.png |
57 |
dohtml *.html *.png |