summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus D. Hanwell <cryos@gentoo.org>2009-07-24 19:00:34 +0000
committerMarcus D. Hanwell <cryos@gentoo.org>2009-07-24 19:00:34 +0000
commit2fec8ca8e2b0d09bdb5a339cacc7d70a121aef7c (patch)
tree16b1080e921fc1023c5e0e762fa9f7bbb0634a60 /sci-chemistry
parentAdded local swig use flag for sci-chemistry/openbabel. (diff)
downloadhistorical-2fec8ca8e2b0d09bdb5a339cacc7d70a121aef7c.tar.gz
historical-2fec8ca8e2b0d09bdb5a339cacc7d70a121aef7c.tar.bz2
historical-2fec8ca8e2b0d09bdb5a339cacc7d70a121aef7c.zip
Added python use flag to optionally build python language bindings. Thanks to My Th <rei4dan@gmail.com> for suggestions in bug 212212.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry')
-rw-r--r--sci-chemistry/openbabel/ChangeLog9
-rw-r--r--sci-chemistry/openbabel/Manifest5
-rw-r--r--sci-chemistry/openbabel/metadata.xml3
-rw-r--r--sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild86
4 files changed, 100 insertions, 3 deletions
diff --git a/sci-chemistry/openbabel/ChangeLog b/sci-chemistry/openbabel/ChangeLog
index 1a51b119a924..62b17207eae8 100644
--- a/sci-chemistry/openbabel/ChangeLog
+++ b/sci-chemistry/openbabel/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for sci-chemistry/openbabel
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/ChangeLog,v 1.26 2009/07/18 15:40:42 cryos Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/ChangeLog,v 1.27 2009/07/24 19:00:34 cryos Exp $
+
+*openbabel-2.2.2-r1 (24 Jul 2009)
+
+ 24 Jul 2009; Marcus D. Hanwell <cryos@gentoo.org>
+ +openbabel-2.2.2-r1.ebuild, metadata.xml:
+ Added python use flag to optionally build python language bindings. Thanks
+ to My Th <rei4dan@gmail.com> for suggestions in bug 212212.
*openbabel-2.2.2 (18 Jul 2009)
diff --git a/sci-chemistry/openbabel/Manifest b/sci-chemistry/openbabel/Manifest
index b8731ef3bd31..6d4f154cf88e 100644
--- a/sci-chemistry/openbabel/Manifest
+++ b/sci-chemistry/openbabel/Manifest
@@ -9,6 +9,7 @@ EBUILD openbabel-2.0.2.ebuild 667 RMD160 ee4ee93793126401b8148b2bab91df99ef0d53c
EBUILD openbabel-2.1.1.ebuild 693 RMD160 50e56a7c0b2726cf9b38640c0ea4536b8ba3f20a SHA1 bee5cbc6b81225ddda7fb05225ec84fc77c73f33 SHA256 22ad4f03522744f0829b1ba6948096fa7a018599fdf4f75b3e9bd1111d68bd7f
EBUILD openbabel-2.2.0.ebuild 774 RMD160 fa383243633dcb5cfd92a026ff954a15cb2fc8b8 SHA1 c693823b9734268e0f1983a15b6c99fdcb62b0cb SHA256 d97b420623375cd44d4e183e0ba29ee584b39956c6347eda16ad0a206450c277
EBUILD openbabel-2.2.1.ebuild 1525 RMD160 db02f92685f2c1535f33ebf5eb5fff5c9be28509 SHA1 79006ba52d60fee429dbf3abe6d075dd25e3c549 SHA256 a0e2355e9707dde66eb29b74d6e957fdcd4b30126cbd72e0a2c1fcf55f0155cd
+EBUILD openbabel-2.2.2-r1.ebuild 2009 RMD160 24cf1bbabd3e1a3c06ca31ecd40ef1ad1b230dfe SHA1 e5da6a81e80cbd7bdbd4f2fc5e2f28d005c84029 SHA256 4f99b58e5ee352551bb7e3d80c084951df9e38647c4f5706df49b460fd008dc6
EBUILD openbabel-2.2.2.ebuild 1287 RMD160 fcc84c67cf3c2c944120de05e92e185920e475ee SHA1 25a88c3f7065ceb606bc35f40d65f814edac02a4 SHA256 0b1066901bb69bc451df637f2599e13f97cd1eb5f5eee0d72d777a5dfc0e209d
-MISC ChangeLog 4978 RMD160 0db524683eb422e850bec20944d00e708f9c89ac SHA1 4b6f4720742828cabc9ecac5a537d1cf48682c82 SHA256 485972950d02aae98469f813c5dcddd9b8e334ecd98cea8f0309226952aaa3b4
-MISC metadata.xml 490 RMD160 443b08385246148cc37ad53df59658eabcb07cf3 SHA1 4a031d5b463dbcc4fea187c155f4771ee57683fc SHA256 dba1cb37e8e79e9816a15bcad3ceeffd991572ddad57ad58607ebb110a79b5a5
+MISC ChangeLog 5249 RMD160 614e30c10bd13f1a8e0e62058aa96c24b389088c SHA1 4bc65ba532c828ffd536e38cbfe3aaf4a97c0bf5 SHA256 fefd5f9980491f7400a4ccac33714fbcf6a94bb1825eac945288ea00fda009ab
+MISC metadata.xml 574 RMD160 de480e8ffc0e8c12f3e3d7254daddcf93c8aeb35 SHA1 ff5f154d3514a400db3424496fe9066587f6a731 SHA256 b8fa09ae4d94de3b0ba7233976cfe754060c06a43e583954126cac14193bb07e
diff --git a/sci-chemistry/openbabel/metadata.xml b/sci-chemistry/openbabel/metadata.xml
index d0238ddefc03..dd056d677694 100644
--- a/sci-chemistry/openbabel/metadata.xml
+++ b/sci-chemistry/openbabel/metadata.xml
@@ -8,4 +8,7 @@
search, convert, analyze, or store data from molecular modeling, chemistry,
solid-state materials, biochemistry, or related areas.
</longdescription>
+ <use>
+ <flag name="swig">Use swig to rebuild language bindings.</flag>
+ </use>
</pkgmetadata>
diff --git a/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild b/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild
new file mode 100644
index 000000000000..0f0edbfc2653
--- /dev/null
+++ b/sci-chemistry/openbabel/openbabel-2.2.2-r1.ebuild
@@ -0,0 +1,86 @@
+# 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.2-r1.ebuild,v 1.1 2009/07/24 19:00:34 cryos 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 python swig"
+
+RDEPEND="!sci-chemistry/babel
+ >=dev-libs/libxml2-2.6.5
+ sys-libs/zlib
+ python? ( dev-lang/python )"
+
+DEPEND="${RDEPEND}
+ >=dev-libs/boost-1.35.0
+ dev-lang/perl
+ python? ( swig? ( >=dev-lang/swig-1.3.38 ) )
+ doc? ( app-doc/doxygen )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}-2.2.0-doxyfile.patch"
+}
+
+src_compile() {
+ local swigconf=""
+ if use swig; then
+ swigconf="--enable-maintainer-mode"
+ fi
+ econf ${swigconf} || die "econf failed"
+ emake || die "emake failed"
+ if use doc ; then
+ emake docs || die "make docs failed"
+ fi
+ if use swig; then
+ emake scripts/python/openbabel_python.cpp \
+ || die "Failed to make SWIG python bindings"
+ fi
+ if use python; then
+ cd "${S}/scripts/python"
+ python setup.py build || die "Python build failed."
+ fi
+}
+
+src_test() {
+ emake check || die "make check failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ # Now to install the Python bindings if necessary
+ if use python; then
+ cd "${S}/scripts/python"
+ python ./setup.py install --root="${D}" --optimize=1 \
+ || die "Python bindings install failed"
+ if use doc; then
+ docinto python
+ dodoc README
+ docinto python/html
+ dodoc *.html
+ fi
+ fi
+ # And the documentation
+ docinto
+ cd "${S}"
+ 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
+}