From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1ROUzN-00075e-Jp for garchives@archives.gentoo.org; Thu, 10 Nov 2011 13:48:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05147E0453; Thu, 10 Nov 2011 13:48:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B7620E0453 for ; Thu, 10 Nov 2011 13:48:13 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E38631B401E for ; Thu, 10 Nov 2011 13:48:12 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 576B08004B for ; Thu, 10 Nov 2011 13:48:12 +0000 (UTC) From: "Reinis Danne" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Reinis Danne" Message-ID: <34930b2d5b1ff70d13924571c3fa53363893fb21.rei4dan@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/openbabel-python/files/, sci-chemistry/openbabel-python/ X-VCS-Repository: proj/sci X-VCS-Files: sci-chemistry/openbabel-python/ChangeLog sci-chemistry/openbabel-python/files/openbabel-python-2.3.1-system_openbabel.patch sci-chemistry/openbabel-python/metadata.xml sci-chemistry/openbabel-python/openbabel-python-2.3.1.ebuild X-VCS-Directories: sci-chemistry/openbabel-python/files/ sci-chemistry/openbabel-python/ X-VCS-Committer: rei4dan X-VCS-Committer-Name: Reinis Danne X-VCS-Revision: 34930b2d5b1ff70d13924571c3fa53363893fb21 Date: Thu, 10 Nov 2011 13:48:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 055d1579-924f-472b-bafd-1e9daeac5edb X-Archives-Hash: c75edc46eb8d265073acde2a9dcdb7e9 commit: 34930b2d5b1ff70d13924571c3fa53363893fb21 Author: Reinis Danne gmail com> AuthorDate: Thu Nov 10 13:35:47 2011 +0000 Commit: Reinis Danne gmail com> CommitDate: Thu Nov 10 13:35:47 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D34930b2d openbabel-python: Version bump to 2.3.1 --- sci-chemistry/openbabel-python/ChangeLog | 10 ++++ .../openbabel-python-2.3.1-system_openbabel.patch | 15 ++++++ sci-chemistry/openbabel-python/metadata.xml | 12 +++++ .../openbabel-python/openbabel-python-2.3.1.ebuild | 53 ++++++++++++++= ++++++ 4 files changed, 90 insertions(+), 0 deletions(-) diff --git a/sci-chemistry/openbabel-python/ChangeLog b/sci-chemistry/ope= nbabel-python/ChangeLog new file mode 100644 index 0000000..0378f55 --- /dev/null +++ b/sci-chemistry/openbabel-python/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/openbabel-python +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*openbabel-python-2.3.1 (10 Nov 2011) + + 10 Nov 2011; Reinis Danne +openbabel-python-2.3.1.= ebuild, + +files/openbabel-python-2.3.1-system_openbabel.patch, +metadata.xml: + Version bump to 2.3.1 + diff --git a/sci-chemistry/openbabel-python/files/openbabel-python-2.3.1-= system_openbabel.patch b/sci-chemistry/openbabel-python/files/openbabel-p= ython-2.3.1-system_openbabel.patch new file mode 100644 index 0000000..6420bba --- /dev/null +++ b/sci-chemistry/openbabel-python/files/openbabel-python-2.3.1-system_= openbabel.patch @@ -0,0 +1,15 @@ +--- scripts/python/setup.py ++++ scripts/python/setup.py +@@ -15,11 +15,7 @@ +=20 + obExtension =3D Extension('_openbabel', + [os.path.join(srcdir, "openbabel-python.cpp")], +- include_dirs=3D[os.path.join(srcdir, "..", "..", "incl= ude"), +- os.path.join("..", "include")], +- library_dirs=3D[os.path.join(srcdir, "..", "..", "lib"= ), +- os.path.join(srcdir, "..", "..", "lib64"= ), +- os.path.join("..", "lib")], ++ include_dirs=3D[os.path.join("/usr", "include", "openb= abel-2.0")], + libraries=3D['openbabel'] + ) +=20 diff --git a/sci-chemistry/openbabel-python/metadata.xml b/sci-chemistry/= openbabel-python/metadata.xml new file mode 100644 index 0000000..433cfe8 --- /dev/null +++ b/sci-chemistry/openbabel-python/metadata.xml @@ -0,0 +1,12 @@ + + + + sci-chemistry + + OpenBabel is a chemical toolbox designed to speak the many languages o= f + chemical data. It's an open, collaborative project allowing anyone to + search, convert, analyze, or store data from molecular modeling, chemi= stry, + solid-state materials, biochemistry, or related areas. This package en= ables + to access OpenBabel library from Python programs. + + diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.3.1.ebuild= b/sci-chemistry/openbabel-python/openbabel-python-2.3.1.ebuild new file mode 100644 index 0000000..0da030f --- /dev/null +++ b/sci-chemistry/openbabel-python/openbabel-python-2.3.1.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/openba= bel-python-2.3.0.ebuild,v 1.7 2011/09/14 05:06:41 jlec Exp $ + +EAPI=3D"3" + +PYTHON_DEPEND=3D"2" +SUPPORT_PYTHON_ABIS=3D"1" +RESTRICT_PYTHON_ABIS=3D"*-jython" +PYTHON_MODNAME=3D"openbabel.py pybel.py" + +inherit distutils eutils flag-o-matic + +DESCRIPTION=3D"Python bindings for OpenBabel (including Pybel)" +HOMEPAGE=3D"http://openbabel.sourceforge.net/" +SRC_URI=3D"mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" + +KEYWORDS=3D"~amd64 ~x86 ~amd64-linux ~x86-linux" +SLOT=3D"0" +LICENSE=3D"GPL-2" +IUSE=3D"" + +RDEPEND=3D" + dev-cpp/eigen:2 + dev-libs/libxml2:2 + !sci-chemistry/babel + ~sci-chemistry/openbabel-${PV} + sys-libs/zlib" +DEPEND=3D"${RDEPEND} + >=3Ddev-lang/swig-2" + +S=3D"${WORKDIR}"/openbabel-${PV} + +DISTUTILS_SETUP_FILES=3D("scripts|python/setup.py") + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-system_openbabel.patch + + sed \ + -e "s:/usr:${EPREFIX}/usr:g" \ + -i ./scripts/python/setup.py || die + + swig -python -c++ -small -O -templatereduce -naturalvar \ + -I"${EPREFIX}/usr/include/openbabel-2.0" \ + -o scripts/python/openbabel-python.cpp \ + -DHAVE_EIGEN2 \ + -outdir scripts/python \ + scripts/openbabel-python.i \ + || die "Regeneration of openbabel-python.cpp failed" + + append-cxxflags "$(pkg-config --cflags-only-I eigen2)" +}