blob: 6727f04f329fe6a4c6c0b7c820d5e98839766415 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.1.ebuild,v 1.2 2009/04/18 15:02:22 jer Exp $
EAPI=1
inherit eutils
DESCRIPTION="interconverts file formats used in molecular modeling"
HOMEPAGE="http://openbabel.sourceforge.net/"
SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="doc"
RDEPEND="!sci-chemistry/babel
>=dev-libs/libxml2-2.6.5
sys-libs/zlib"
DEPEND="${RDEPEND}
>=dev-libs/boost-1.33.1
dev-lang/perl
doc? ( app-doc/doxygen )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-2.2.0-doxyfile.patch"
}
src_compile() {
econf \
--enable-static \
|| die "econf failed"
emake || die "emake failed"
if use doc ; then
emake docs || "make docs failed"
fi
}
src_test() {
emake check || die "make check failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc AUTHORS ChangeLog NEWS README THANKS
cd doc
dohtml *.html *.png
dodoc *.inc README* *.inc *.mol2
if use doc ; then
dodir /usr/share/doc/${PF}/API/html
insinto /usr/share/doc/${PF}/API/html
cd API/html
doins *
fi
}
pkg_postinst() {
echo
elog "This version of OpenBabel includes InChI version 1 (software version"
elog "1.02_beta). It does not produce Standard InChI/InChIKey."
elog "To get Standard InChI/InChIKey software version 1.02 must be used."
}
|