1 |
openbabel-python-2.2.0.ebuild and metadata.xml. |
2 |
--- |
3 |
sci-chemistry/openbabel-python/ChangeLog | 10 +++ |
4 |
sci-chemistry/openbabel-python/Manifest | 4 + |
5 |
sci-chemistry/openbabel-python/metadata.xml | 15 ++++ |
6 |
.../openbabel-python/openbabel-python-2.2.0.ebuild | 70 ++++++++++++++++++++ |
7 |
4 files changed, 99 insertions(+), 0 deletions(-) |
8 |
create mode 100644 sci-chemistry/openbabel-python/ChangeLog |
9 |
create mode 100644 sci-chemistry/openbabel-python/Manifest |
10 |
create mode 100644 sci-chemistry/openbabel-python/metadata.xml |
11 |
create mode 100644 sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild |
12 |
|
13 |
diff --git a/sci-chemistry/openbabel-python/ChangeLog b/sci-chemistry/openbabel-python/ChangeLog |
14 |
new file mode 100644 |
15 |
index 0000000..47d5339 |
16 |
--- /dev/null |
17 |
+++ b/sci-chemistry/openbabel-python/ChangeLog |
18 |
@@ -0,0 +1,10 @@ |
19 |
+# ChangeLog for sci-chemistry/openbabel-python |
20 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
21 |
+# $Header: $ |
22 |
+ |
23 |
+*openbabel-python-2.2.0 (10 Feb 2009) |
24 |
+ |
25 |
+ 10 Feb 2009; Reinis Danne <rei4dan@×××××.com> +metadata.xml, |
26 |
+ +openbabel-python-2.2.0.ebuild: |
27 |
+ New package sci-chemistry/openbabel-python, #212212 |
28 |
+ |
29 |
diff --git a/sci-chemistry/openbabel-python/Manifest b/sci-chemistry/openbabel-python/Manifest |
30 |
new file mode 100644 |
31 |
index 0000000..ab8813c |
32 |
--- /dev/null |
33 |
+++ b/sci-chemistry/openbabel-python/Manifest |
34 |
@@ -0,0 +1,4 @@ |
35 |
+DIST openbabel-2.2.0.tar.gz 6127264 RMD160 ade8e65ab37278d9af3ff1b9cfb115437f52e0ea SHA1 5fdc084fb744d5dae4cd9ddbd52fe1f0c56c973b SHA256 a898b79336c7372c901bcc7e5f83db7b8e79f8e864be6a262f515b3e088bc607 |
36 |
+EBUILD openbabel-python-2.2.0.ebuild 1626 RMD160 c2635d28ff44ea071d6c3d007fb1134c39bbe489 SHA1 4d1b87e5fd68ff0a54627fa769b668cb983982d4 SHA256 4f387ac3a068287e913660b84ae4f421d176138aeb5e806aaa498221ac826e41 |
37 |
+MISC ChangeLog 322 RMD160 aaa7a6a591ef2a1dddc8bf99a2c69530d6277058 SHA1 53691e78622857d7dea45f530902e038e6df1ce1 SHA256 1a32395c0e983247a81b180f08687deafbacf8be1d0ba0c7bbbda687b472c551 |
38 |
+MISC metadata.xml 627 RMD160 2eed792ed60ef1e4fe0aba88690f1fc4ff93b3e5 SHA1 d1e9cc0888dfedadb394def1835b272d11d91b38 SHA256 83b3a75fd868e56866941cba2671a75decc1e099e22709b3c6e799767f1e7253 |
39 |
diff --git a/sci-chemistry/openbabel-python/metadata.xml b/sci-chemistry/openbabel-python/metadata.xml |
40 |
new file mode 100644 |
41 |
index 0000000..7dd11d8 |
42 |
--- /dev/null |
43 |
+++ b/sci-chemistry/openbabel-python/metadata.xml |
44 |
@@ -0,0 +1,15 @@ |
45 |
+<?xml version="1.0" encoding="UTF-8"?> |
46 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
47 |
+<pkgmetadata> |
48 |
+<herd>sci-chemistry</herd> |
49 |
+<longdescription> |
50 |
+OpenBabel is a chemical toolbox designed to speak the many languages of |
51 |
+chemical data. It's an open, collaborative project allowing anyone to |
52 |
+search, convert, analyze, or store data from molecular modeling, chemistry, |
53 |
+solid-state materials, biochemistry, or related areas. This package enables |
54 |
+to access OpenBabel library from Python programs. |
55 |
+</longdescription> |
56 |
+<use> |
57 |
+<flag name='swig'>Enable SWIG language binding regeneration</flag> |
58 |
+</use> |
59 |
+</pkgmetadata> |
60 |
diff --git a/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild b/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild |
61 |
new file mode 100644 |
62 |
index 0000000..b46da32 |
63 |
--- /dev/null |
64 |
+++ b/sci-chemistry/openbabel-python/openbabel-python-2.2.0.ebuild |
65 |
@@ -0,0 +1,70 @@ |
66 |
+# Copyright 1999-2009 Gentoo Foundation |
67 |
+# Distributed under the terms of the GNU General Public License v2 |
68 |
+# $Header: $ |
69 |
+ |
70 |
+inherit eutils |
71 |
+ |
72 |
+DESCRIPTION="Python bindings for OpenBabel (including Pybel)" |
73 |
+HOMEPAGE="http://openbabel.sourceforge.net/" |
74 |
+SRC_URI="mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" |
75 |
+ |
76 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
77 |
+SLOT="0" |
78 |
+LICENSE="GPL-2" |
79 |
+IUSE="swig" |
80 |
+ |
81 |
+RDEPEND="~sci-chemistry/openbabel-2.2.0 |
82 |
+ dev-lang/python" |
83 |
+ |
84 |
+DEPEND="${RDEPEND} |
85 |
+ swig? ( >=dev-lang/swig-1.3.29 )" |
86 |
+ |
87 |
+src_unpack() { |
88 |
+ unpack ${A} |
89 |
+ S="${WORKDIR}/openbabel-${PV}" |
90 |
+ cd "${S}" |
91 |
+ |
92 |
+ local myconf="" |
93 |
+ if use swig ; then |
94 |
+ if ! built_with_use dev-lang/swig python ; then |
95 |
+ echo |
96 |
+ eerror "To be able to build openbabel-python with swig use" |
97 |
+ eerror "dev-lang/swig has to be merged with python enabled." |
98 |
+ eerror "Please, re-emerge dev-lang/swig with USE=\"python\"." |
99 |
+ die "dev-lang/swig has been built without python support" |
100 |
+ else |
101 |
+ myconf="--enable-maintainer-mode" |
102 |
+ fi |
103 |
+ fi |
104 |
+ econf \ |
105 |
+ ${myconf} \ |
106 |
+ --enable-static \ |
107 |
+ || die "econf failed" |
108 |
+ S="${S}/scripts" |
109 |
+ cd "${S}" |
110 |
+ if use swig ; then |
111 |
+ emake python/openbabel_python.cpp \ |
112 |
+ || die "Failed to make SWIG python bindings" |
113 |
+ fi |
114 |
+ S="${S}/python" |
115 |
+ cd "${S}" |
116 |
+} |
117 |
+ |
118 |
+src_compile() { |
119 |
+ python ./setup.py build || die "python setup build failed" |
120 |
+} |
121 |
+ |
122 |
+src_install() { |
123 |
+ python ./setup.py install --root="${D}" --optimize=1 \ |
124 |
+ || die "python setup install failed" |
125 |
+ dohtml *.html |
126 |
+ dodoc README |
127 |
+} |
128 |
+ |
129 |
+pkg_postinst() { |
130 |
+ echo |
131 |
+ elog "To be able to fully use Pybel you might need to install additional" |
132 |
+ elog "libraries:" |
133 |
+ elog "OASA - part of BKChem package" |
134 |
+ elog "PIL - dev-python/imaging" |
135 |
+} |
136 |
-- |
137 |
1.6.0.6 |