aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinis Danne <rei4dan@gmail.com>2009-02-21 16:29:38 +0200
committerReinis Danne <rei4dan@gmail.com>2009-02-21 16:37:12 +0200
commitdc356d26b1ea80d1f025c1d14c02d179c682d765 (patch)
tree75fcdd0ac1ec5eb787f6077c53545a3943e05545 /sci-chemistry/openbabel-python
parentsci-chemistry/openbabel-perl: Use EAPI=2, fix swig use (diff)
downloadsci-dc356d26b1ea80d1f025c1d14c02d179c682d765.tar.gz
sci-dc356d26b1ea80d1f025c1d14c02d179c682d765.tar.bz2
sci-dc356d26b1ea80d1f025c1d14c02d179c682d765.zip
sci-chemistry/openbabel-python: Use EAPI=2, fix swig use
Diffstat (limited to 'sci-chemistry/openbabel-python')
-rw-r--r--sci-chemistry/openbabel-python/ChangeLog3
-rw-r--r--sci-chemistry/openbabel-python/Manifest4
-rw-r--r--sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild22
3 files changed, 11 insertions, 18 deletions
diff --git a/sci-chemistry/openbabel-python/ChangeLog b/sci-chemistry/openbabel-python/ChangeLog
index 47d533978..93ee95fe0 100644
--- a/sci-chemistry/openbabel-python/ChangeLog
+++ b/sci-chemistry/openbabel-python/ChangeLog
@@ -2,6 +2,9 @@
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 21 Feb 2009; <reinis@gentoo.org> openbabel-python-2.2.0.ebuild:
+ sci-chemistry/openbabel-python: Use EAPI=2, fix swig use
+
*openbabel-python-2.2.0 (10 Feb 2009)
10 Feb 2009; Reinis Danne <rei4dan@gmail.com> +metadata.xml,
diff --git a/sci-chemistry/openbabel-python/Manifest b/sci-chemistry/openbabel-python/Manifest
index ab8813cc9..2eb62264b 100644
--- a/sci-chemistry/openbabel-python/Manifest
+++ b/sci-chemistry/openbabel-python/Manifest
@@ -1,4 +1,4 @@
DIST openbabel-2.2.0.tar.gz 6127264 RMD160 ade8e65ab37278d9af3ff1b9cfb115437f52e0ea SHA1 5fdc084fb744d5dae4cd9ddbd52fe1f0c56c973b SHA256 a898b79336c7372c901bcc7e5f83db7b8e79f8e864be6a262f515b3e088bc607
-EBUILD openbabel-python-2.2.0.ebuild 1626 RMD160 c2635d28ff44ea071d6c3d007fb1134c39bbe489 SHA1 4d1b87e5fd68ff0a54627fa769b668cb983982d4 SHA256 4f387ac3a068287e913660b84ae4f421d176138aeb5e806aaa498221ac826e41
-MISC ChangeLog 322 RMD160 aaa7a6a591ef2a1dddc8bf99a2c69530d6277058 SHA1 53691e78622857d7dea45f530902e038e6df1ce1 SHA256 1a32395c0e983247a81b180f08687deafbacf8be1d0ba0c7bbbda687b472c551
+EBUILD openbabel-python-2.2.0.ebuild 1289 RMD160 3b7a4831644d75d671540f809fa081d05a5dfe3b SHA1 2052a6a3681569263bdcb2770ca01d6e031238e9 SHA256 067289066b39e09c77ec3cd19816d3158c2572c40a2664a101ada8777d142c34
+MISC ChangeLog 448 RMD160 c0a71e0fcb507014ccca1cdeb93164c48958b70b SHA1 874547817ced893eb2b6ef16107951834d51e0e3 SHA256 6c75cda61591b312a6d2beb64f789a7c29f28c5ffbe857a6af7845565338a3f3
MISC metadata.xml 627 RMD160 2eed792ed60ef1e4fe0aba88690f1fc4ff93b3e5 SHA1 d1e9cc0888dfedadb394def1835b272d11d91b38 SHA256 83b3a75fd868e56866941cba2671a75decc1e099e22709b3c6e799767f1e7253
diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild b/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild
index b46da3207..63e6ea8e5 100644
--- a/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild
+++ b/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
+EAPI=2
+
inherit eutils
DESCRIPTION="Python bindings for OpenBabel (including Pybel)"
@@ -17,33 +19,21 @@ RDEPEND="~sci-chemistry/openbabel-2.2.0
dev-lang/python"
DEPEND="${RDEPEND}
- swig? ( >=dev-lang/swig-1.3.29 )"
+ swig? ( >=dev-lang/swig-1.3.29[python] )"
src_unpack() {
unpack ${A}
S="${WORKDIR}/openbabel-${PV}"
cd "${S}"
- local myconf=""
- if use swig ; then
- if ! built_with_use dev-lang/swig python ; then
- echo
- eerror "To be able to build openbabel-python with swig use"
- eerror "dev-lang/swig has to be merged with python enabled."
- eerror "Please, re-emerge dev-lang/swig with USE=\"python\"."
- die "dev-lang/swig has been built without python support"
- else
- myconf="--enable-maintainer-mode"
- fi
- fi
econf \
- ${myconf} \
+ $(use_enable swig maintainer-mode) \
--enable-static \
- || die "econf failed"
+ || die "econf failed"
S="${S}/scripts"
cd "${S}"
if use swig ; then
- emake python/openbabel_python.cpp \
+ emake -W openbabel-python.i python/openbabel_python.cpp \
|| die "Failed to make SWIG python bindings"
fi
S="${S}/python"