Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/openbabel-python: ChangeLog openbabel-python-2.3.0.ebuild
Date: Thu, 28 Apr 2011 19:22:02
Message-Id: 20110428192151.533FE20054@flycatcher.gentoo.org
1 arfrever 11/04/28 19:21:51
2
3 Modified: ChangeLog openbabel-python-2.3.0.ebuild
4 Log:
5 Don't use cmake. Use system libopenbabel.
6
7 (Portage version: 2.2.0_alpha30_p13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.4 sci-chemistry/openbabel-python/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog?r1=1.3&r2=1.4
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- ChangeLog 29 Mar 2011 06:00:00 -0000 1.3
23 +++ ChangeLog 28 Apr 2011 19:21:51 -0000 1.4
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-chemistry/openbabel-python
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog,v 1.3 2011/03/29 06:00:00 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/ChangeLog,v 1.4 2011/04/28 19:21:51 arfrever Exp $
29 +
30 + 28 Apr 2011; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
31 + openbabel-python-2.3.0.ebuild,
32 + +files/openbabel-python-2.3.0-system_openbabel.patch:
33 + Don't use cmake. Use system libopenbabel.
34
35 29 Mar 2011; Justin Lecher <jlec@g.o> openbabel-python-2.3.0.ebuild:
36 Depend on >=swig-2
37
38
39
40 1.4 sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild?rev=1.4&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild?rev=1.4&content-type=text/plain
44 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild?r1=1.3&r2=1.4
45
46 Index: openbabel-python-2.3.0.ebuild
47 ===================================================================
48 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild,v
49 retrieving revision 1.3
50 retrieving revision 1.4
51 diff -u -r1.3 -r1.4
52 --- openbabel-python-2.3.0.ebuild 29 Mar 2011 06:00:00 -0000 1.3
53 +++ openbabel-python-2.3.0.ebuild 28 Apr 2011 19:21:51 -0000 1.4
54 @@ -1,14 +1,15 @@
55 # Copyright 1999-2011 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild,v 1.3 2011/03/29 06:00:00 jlec Exp $
58 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel-python/openbabel-python-2.3.0.ebuild,v 1.4 2011/04/28 19:21:51 arfrever Exp $
59
60 EAPI="3"
61
62 PYTHON_DEPEND="2"
63 SUPPORT_PYTHON_ABIS="1"
64 +RESTRICT_PYTHON_ABIS="*-jython"
65 PYTHON_MODNAME="openbabel.py pybel.py"
66
67 -inherit cmake-utils eutils distutils
68 +inherit distutils eutils
69
70 DESCRIPTION="Python bindings for OpenBabel (including Pybel)"
71 HOMEPAGE="http://openbabel.sourceforge.net/"
72 @@ -26,34 +27,18 @@
73 ~sci-chemistry/openbabel-${PV}
74 sys-libs/zlib"
75 DEPEND="${RDEPEND}
76 - >=dev-lang/swig-2
77 - dev-util/cmake"
78 + >=dev-lang/swig-2"
79
80 S="${WORKDIR}"/openbabel-${PV}
81
82 -DISTUTILS_SETUP_FILES="${S}/scripts/python/setup.py"
83 +DISTUTILS_SETUP_FILES="scripts|python/setup.py"
84
85 src_prepare() {
86 epatch \
87 "${FILESDIR}"/${P}-wrap_OBInternalCoord.patch \
88 "${FILESDIR}"/${P}-py3_iterator.patch \
89 - "${FILESDIR}"/${P}-swig.patch
90 -}
91 -
92 -src_configure() {
93 - local mycmakeargs="-DPYTHON_BINDINGS=ON"
94 - mycmakeargs="${mycmakeargs}
95 - -DRUN_SWIG=ON"
96 - cmake-utils_src_configure
97 -}
98 -
99 -src_compile() {
100 - cmake-utils_src_compile _openbabel
101 - cd "${WORKDIR}/${P}_build/scripts"
102 - distutils_src_compile
103 -}
104 + "${FILESDIR}"/${P}-swig.patch \
105 + "${FILESDIR}"/${P}-system_openbabel.patch
106
107 -src_install() {
108 - cd "${WORKDIR}/${P}_build/scripts"
109 - distutils_src_install
110 + swig -python -c++ -small -O -templatereduce -naturalvar -I/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"
111 }