Gentoo Archives: gentoo-commits

From: "Marcus Hanwell (cryos)" <cryos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-chemistry/openbabel: openbabel-2.2.3.ebuild ChangeLog
Date: Sat, 01 Aug 2009 15:22:54
Message-Id: E1MXGQ7-0005ai-SY@stork.gentoo.org
1 cryos 09/08/01 15:22:51
2
3 Modified: ChangeLog
4 Added: openbabel-2.2.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.28 sci-chemistry/openbabel/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/openbabel/ChangeLog?rev=1.28&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/openbabel/ChangeLog?rev=1.28&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/openbabel/ChangeLog?r1=1.27&r2=1.28
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/ChangeLog,v
19 retrieving revision 1.27
20 retrieving revision 1.28
21 diff -u -r1.27 -r1.28
22 --- ChangeLog 24 Jul 2009 19:00:34 -0000 1.27
23 +++ ChangeLog 1 Aug 2009 15:22:51 -0000 1.28
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sci-chemistry/openbabel
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/ChangeLog,v 1.27 2009/07/24 19:00:34 cryos Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/ChangeLog,v 1.28 2009/08/01 15:22:51 cryos Exp $
29 +
30 +*openbabel-2.2.3 (01 Aug 2009)
31 +
32 + 01 Aug 2009; Marcus D. Hanwell <cryos@g.o> +openbabel-2.2.3.ebuild:
33 + Version bump.
34
35 *openbabel-2.2.2-r1 (24 Jul 2009)
36
37
38
39
40 1.1 sci-chemistry/openbabel/openbabel-2.2.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: openbabel-2.2.3.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/openbabel/openbabel-2.2.3.ebuild,v 1.1 2009/08/01 15:22:51 cryos Exp $
50
51 EAPI=1
52
53 inherit eutils
54
55 DESCRIPTION="interconverts file formats used in molecular modeling"
56 HOMEPAGE="http://openbabel.sourceforge.net/"
57 SRC_URI="mirror://sourceforge/openbabel/${P}.tar.gz"
58
59 KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
60 SLOT="0"
61 LICENSE="GPL-2"
62 IUSE="doc python swig"
63
64 RDEPEND="!sci-chemistry/babel
65 >=dev-libs/libxml2-2.6.5
66 sys-libs/zlib
67 python? ( dev-lang/python )"
68
69 DEPEND="${RDEPEND}
70 >=dev-libs/boost-1.35.0
71 dev-lang/perl
72 python? ( swig? ( >=dev-lang/swig-1.3.38 ) )
73 doc? ( app-doc/doxygen )"
74
75 src_unpack() {
76 unpack ${A}
77 cd "${S}"
78 epatch "${FILESDIR}/${PN}-2.2.0-doxyfile.patch"
79 }
80
81 src_compile() {
82 local swigconf=""
83 if use swig; then
84 swigconf="--enable-maintainer-mode"
85 fi
86 econf ${swigconf} || die "econf failed"
87 emake || die "emake failed"
88 if use doc ; then
89 emake docs || die "make docs failed"
90 fi
91 if use swig; then
92 emake scripts/python/openbabel_python.cpp \
93 || die "Failed to make SWIG python bindings"
94 fi
95 if use python; then
96 cd "${S}/scripts/python"
97 python setup.py build || die "Python build failed."
98 fi
99 }
100
101 src_test() {
102 emake check || die "make check failed"
103 }
104
105 src_install() {
106 emake DESTDIR="${D}" install || die "make install failed"
107 # Now to install the Python bindings if necessary
108 if use python; then
109 cd "${S}/scripts/python"
110 python ./setup.py install --root="${D}" --optimize=1 \
111 || die "Python bindings install failed"
112 if use doc; then
113 docinto python
114 dodoc README
115 docinto python/html
116 dodoc *.html
117 fi
118 fi
119 # And the documentation
120 docinto
121 cd "${S}"
122 dodoc AUTHORS ChangeLog NEWS README THANKS
123 cd doc
124 dohtml *.html *.png
125 dodoc *.inc README* *.inc *.mol2
126 if use doc ; then
127 dodir /usr/share/doc/${PF}/API/html
128 insinto /usr/share/doc/${PF}/API/html
129 cd API/html
130 doins *
131 fi
132 }