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 1Q3CJS-00066t-2S for garchives@archives.gentoo.org; Fri, 25 Mar 2011 19:04:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 12B001C13F; Fri, 25 Mar 2011 19:04:39 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C63271C128 for ; Fri, 25 Mar 2011 19:04:38 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E599D1BC0FF for ; Fri, 25 Mar 2011 19:04:37 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 4660F8006A for ; Fri, 25 Mar 2011 19:04:37 +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: <24be5fc2eaedf8e9c69db19b563251d42a487415.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.0-py3_iterator.patch sci-chemistry/openbabel-python/files/openbabel-python-2.3.0-wrap_OBInternalCoord.patch sci-chemistry/openbabel-python/openbabel-python-2.3.0.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: 24be5fc2eaedf8e9c69db19b563251d42a487415 Date: Fri, 25 Mar 2011 19:04:37 +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: X-Archives-Hash: 6e4befa6663177db73b9cbd2622df899 commit: 24be5fc2eaedf8e9c69db19b563251d42a487415 Author: Reinis Danne gmail com> AuthorDate: Fri Mar 25 18:59:39 2011 +0000 Commit: Reinis Danne gmail com> CommitDate: Fri Mar 25 18:59:39 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D24be5fc2 openbabel-python: Add Python3 iterator and wrap OBInternalCoord patches --- sci-chemistry/openbabel-python/ChangeLog | 7 +++++++ .../openbabel-python-2.3.0-py3_iterator.patch | 12 ++++++++++++ ...enbabel-python-2.3.0-wrap_OBInternalCoord.patch | 10 ++++++++++ .../openbabel-python/openbabel-python-2.3.0.ebuild | 10 +++++++++- 4 files changed, 38 insertions(+), 1 deletions(-) diff --git a/sci-chemistry/openbabel-python/ChangeLog b/sci-chemistry/ope= nbabel-python/ChangeLog index b568ab5..2d92edd 100644 --- a/sci-chemistry/openbabel-python/ChangeLog +++ b/sci-chemistry/openbabel-python/ChangeLog @@ -2,6 +2,13 @@ # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ =20 + 25 Mar 2011; Reinis Danne + openbabel-python-2.3.0.ebuild, + +files/openbabel-python-2.3.0-py3_iterator.patch, + +files/openbabel-python-2.3.0-wrap_OBInternalCoord.patch: + Add Python3 iterator and wrap OBInternalCoord patches, upstream r4399, + r4400 + 25 Mar 2011; Justin Lecher openbabel-python-2.3.0.eb= uild, metadata.xml: Cleaned ebuild diff --git a/sci-chemistry/openbabel-python/files/openbabel-python-2.3.0-= py3_iterator.patch b/sci-chemistry/openbabel-python/files/openbabel-pytho= n-2.3.0-py3_iterator.patch new file mode 100644 index 0000000..7efc0ca --- /dev/null +++ b/sci-chemistry/openbabel-python/files/openbabel-python-2.3.0-py3_ite= rator.patch @@ -0,0 +1,12 @@ +--- scripts/openbabel-python.i 2010-08-16 15:05:20.000000000 +0300 ++++ scripts/openbabel-python.i 2011-02-27 14:18:17.000000000 +0200 +@@ -316,6 +316,9 @@ + def __iter__(self): + return self +=20 ++ def __next__(self): ++ return self.next() ++ + def next(self): + if not self.finished: + b =3D self.iter.__ref__() diff --git a/sci-chemistry/openbabel-python/files/openbabel-python-2.3.0-= wrap_OBInternalCoord.patch b/sci-chemistry/openbabel-python/files/openbab= el-python-2.3.0-wrap_OBInternalCoord.patch new file mode 100644 index 0000000..9346189 --- /dev/null +++ b/sci-chemistry/openbabel-python/files/openbabel-python-2.3.0-wrap_OB= InternalCoord.patch @@ -0,0 +1,10 @@ +--- scripts/openbabel-python.i 2010-08-16 15:05:20.000000000 +0300 ++++ scripts/openbabel-python.i 2011-02-25 22:46:08.000000000 +0200 +@@ -120,6 +120,7 @@ + VECTORTEMPLATE_WRAP(OBRing, OpenBabel::OBRing) + VECTORTEMPLATE_WRAP(pOBRing, OpenBabel::OBRing*) + VECTORTEMPLATE_WRAP(pOBGenericData, OpenBabel::OBGenericData*) ++VECTORTEMPLATE_WRAP(pOBInternalCoord, OpenBabel::OBInternalCoord*) +=20 + } +=20 diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild= b/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild index 463ab69..c5abbeb 100644 --- a/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild +++ b/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild @@ -24,6 +24,7 @@ RDEPEND=3D" dev-libs/libxml2:2 !sci-chemistry/babel ~sci-chemistry/openbabel-${PV} + =3Ddev-lang/swig-2.0.1 sys-libs/zlib" DEPEND=3D"${RDEPEND} dev-util/cmake" @@ -32,13 +33,20 @@ S=3D"${WORKDIR}"/openbabel-${PV} =20 DISTUTILS_SETUP_FILES=3D"${WORKDIR}/openbabel-${PV}/scripts/python/setup= .py" =20 +src_prepare() { + epatch "${FILESDIR}/${P}-wrap_OBInternalCoord.patch" + epatch "${FILESDIR}/${P}-py3_iterator.patch" +} + src_configure() { local mycmakeargs=3D"-DPYTHON_BINDINGS=3DON" + mycmakeargs=3D"${mycmakeargs} + -DRUN_SWIG=3DON" cmake-utils_src_configure } =20 src_compile() { - #cmake-utils_src_compile _openbabel + cmake-utils_src_compile _openbabel cd "${WORKDIR}/${P}_build/scripts" distutils_src_compile }