1 |
Ebuild, metadata.xml and a patch for Makefile.PL. |
2 |
--- |
3 |
sci-chemistry/openbabel-perl/ChangeLog | 11 +++ |
4 |
sci-chemistry/openbabel-perl/Manifest | 5 + |
5 |
.../files/openbabel-perl-2.2.0-makefile.patch | 25 ++++++ |
6 |
sci-chemistry/openbabel-perl/metadata.xml | 15 ++++ |
7 |
.../openbabel-perl/openbabel-perl-2.2.0.ebuild | 82 ++++++++++++++++++++ |
8 |
5 files changed, 138 insertions(+), 0 deletions(-) |
9 |
create mode 100644 sci-chemistry/openbabel-perl/ChangeLog |
10 |
create mode 100644 sci-chemistry/openbabel-perl/Manifest |
11 |
create mode 100644 sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.0-makefile.patch |
12 |
create mode 100644 sci-chemistry/openbabel-perl/metadata.xml |
13 |
create mode 100644 sci-chemistry/openbabel-perl/openbabel-perl-2.2.0.ebuild |
14 |
|
15 |
diff --git a/sci-chemistry/openbabel-perl/ChangeLog b/sci-chemistry/openbabel-perl/ChangeLog |
16 |
new file mode 100644 |
17 |
index 0000000..d33744b |
18 |
--- /dev/null |
19 |
+++ b/sci-chemistry/openbabel-perl/ChangeLog |
20 |
@@ -0,0 +1,11 @@ |
21 |
+# ChangeLog for sci-chemistry/openbabel-perl |
22 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
23 |
+# $Header: $ |
24 |
+ |
25 |
+*openbabel-perl-2.2.0 (10 Feb 2009) |
26 |
+ |
27 |
+ 10 Feb 2009; Reinis Danne <rei4dan@×××××.com> |
28 |
+ +files/openbabel-perl-2.2.0-makefile.patch, +metadata.xml, |
29 |
+ +openbabel-perl-2.2.0.ebuild: |
30 |
+ New package sci-chemistry/openbabel-perl, #212212 |
31 |
+ |
32 |
diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest |
33 |
new file mode 100644 |
34 |
index 0000000..bf7e820 |
35 |
--- /dev/null |
36 |
+++ b/sci-chemistry/openbabel-perl/Manifest |
37 |
@@ -0,0 +1,5 @@ |
38 |
+AUX openbabel-perl-2.2.0-makefile.patch 1151 RMD160 8e46b23009c938f102874242b4539d912bc7f47e SHA1 cb5616215d3199170759c35968243bf0f9c846f5 SHA256 55f1b90d5e388401eecb56a3fdaf6b33a8eb2326a7a329605624ffd08e6ba81d |
39 |
+DIST openbabel-2.2.0.tar.gz 6127264 RMD160 ade8e65ab37278d9af3ff1b9cfb115437f52e0ea SHA1 5fdc084fb744d5dae4cd9ddbd52fe1f0c56c973b SHA256 a898b79336c7372c901bcc7e5f83db7b8e79f8e864be6a262f515b3e088bc607 |
40 |
+EBUILD openbabel-perl-2.2.0.ebuild 1607 RMD160 c6022cc3bcf7c27be297274d62644af7f0ce612b SHA1 61a459b73b07a90b3d6a749a2a4a745d87b676e1 SHA256 826634836a20cb660d94bce3064c8ef48a1e8e2af9f105d22cebdd54874c597a |
41 |
+MISC ChangeLog 360 RMD160 2515f2a497076a5514328639f60b84dc5e223f1d SHA1 10707cf0c81ff3be7a744c96cfa78d07e98ac033 SHA256 57f1ca9b019a7609933239899220502cdf96013cefa663d194895cc0556d92aa |
42 |
+MISC metadata.xml 627 RMD160 2eed792ed60ef1e4fe0aba88690f1fc4ff93b3e5 SHA1 d1e9cc0888dfedadb394def1835b272d11d91b38 SHA256 83b3a75fd868e56866941cba2671a75decc1e099e22709b3c6e799767f1e7253 |
43 |
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.0-makefile.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.0-makefile.patch |
44 |
new file mode 100644 |
45 |
index 0000000..4c5d4c6 |
46 |
--- /dev/null |
47 |
+++ b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.2.0-makefile.patch |
48 |
@@ -0,0 +1,25 @@ |
49 |
+--- Makefile.PL.orig 2009-02-09 15:32:59.000000000 +0200 |
50 |
++++ Makefile.PL 2009-02-09 15:49:44.000000000 +0200 |
51 |
+@@ -7,16 +7,15 @@ |
52 |
+ @ENV{"LD_LIBRARY_PATH"}); |
53 |
+ |
54 |
+ $CC = 'g++'; |
55 |
+-$srcdir = '../../src'; |
56 |
+ |
57 |
+ # check if we're compiling in the source directory |
58 |
+ # check first for the static, then change to dynamic if available |
59 |
+-$ldfrom = "\$(OBJECT) $srcdir/.libs/libopenbabel.a -lz" |
60 |
+- if (-r "$srcdir/.libs/libopenbabel.a") and (-s _) and (-B _); |
61 |
+-$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz" |
62 |
+- if (-r "$srcdir/.libs/libopenbabel.dylib") and (-s _) and (-B _); |
63 |
+-$ldfrom = "\$(OBJECT) -L$srcdir/.libs -lopenbabel -lz" |
64 |
+- if (-r "$srcdir/.libs/libopenbabel.so") and (-s _) and (-B _); |
65 |
++$ldfrom = "\$(OBJECT) /usr/lib/libopenbabel.a -lz" |
66 |
++ if (-r "/usr/lib/libopenbabel.a") and (-s _) and (-B _); |
67 |
++$ldfrom = "\$(OBJECT) -L/usr/lib -lopenbabel -lz" |
68 |
++ if (-r "/usr/lib/libopenbabel.dylib") and (-s _) and (-B _); |
69 |
++$ldfrom = "\$(OBJECT) -L/usr/lib -lopenbabel -lz" |
70 |
++ if (-r "/usr/lib/libopenbabel.so") and (-s _) and (-B _); |
71 |
+ |
72 |
+ # See lib/ExtUtils/MakeMaker.pm for details of how to influence |
73 |
+ # the contents of the Makefile that is written. |
74 |
diff --git a/sci-chemistry/openbabel-perl/metadata.xml b/sci-chemistry/openbabel-perl/metadata.xml |
75 |
new file mode 100644 |
76 |
index 0000000..7dd11d8 |
77 |
--- /dev/null |
78 |
+++ b/sci-chemistry/openbabel-perl/metadata.xml |
79 |
@@ -0,0 +1,15 @@ |
80 |
+<?xml version="1.0" encoding="UTF-8"?> |
81 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
82 |
+<pkgmetadata> |
83 |
+<herd>sci-chemistry</herd> |
84 |
+<longdescription> |
85 |
+OpenBabel is a chemical toolbox designed to speak the many languages of |
86 |
+chemical data. It's an open, collaborative project allowing anyone to |
87 |
+search, convert, analyze, or store data from molecular modeling, chemistry, |
88 |
+solid-state materials, biochemistry, or related areas. This package enables |
89 |
+to access OpenBabel library from Python programs. |
90 |
+</longdescription> |
91 |
+<use> |
92 |
+<flag name='swig'>Enable SWIG language binding regeneration</flag> |
93 |
+</use> |
94 |
+</pkgmetadata> |
95 |
diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.2.0.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.2.0.ebuild |
96 |
new file mode 100644 |
97 |
index 0000000..b6a8f7f |
98 |
--- /dev/null |
99 |
+++ b/sci-chemistry/openbabel-perl/openbabel-perl-2.2.0.ebuild |
100 |
@@ -0,0 +1,82 @@ |
101 |
+# Copyright 1999-2009 Gentoo Foundation |
102 |
+# Distributed under the terms of the GNU General Public License v2 |
103 |
+# $Header: $ |
104 |
+ |
105 |
+inherit eutils perl-module |
106 |
+ |
107 |
+DESCRIPTION="Perl bindings for OpenBabel" |
108 |
+HOMEPAGE="http://openbabel.sourceforge.net/" |
109 |
+SRC_URI="mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" |
110 |
+ |
111 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
112 |
+SLOT="0" |
113 |
+LICENSE="GPL-2" |
114 |
+IUSE="swig" |
115 |
+ |
116 |
+RDEPEND="~sci-chemistry/openbabel-2.2.0 |
117 |
+ dev-lang/perl" |
118 |
+ |
119 |
+DEPEND="${RDEPEND} |
120 |
+ swig? ( >=dev-lang/swig-1.3.29 )" |
121 |
+ |
122 |
+src_unpack() { |
123 |
+ unpack ${A} |
124 |
+ S="${WORKDIR}/openbabel-${PV}" |
125 |
+ cd "${S}" |
126 |
+ |
127 |
+ local myconf="" |
128 |
+ if use swig ; then |
129 |
+ if ! built_with_use dev-lang/swig perl ; then |
130 |
+ echo |
131 |
+ eerror "To be able to build openbabel-perl with swig use" |
132 |
+ eerror "dev-lang/swig has to be merged with perl enabled." |
133 |
+ eerror "Please, re-emerge dev-lang/swig with USE=\"perl\"." |
134 |
+ die "dev-lang/swig has been built without perl support" |
135 |
+ else |
136 |
+ myconf="--enable-maintainer-mode" |
137 |
+ fi |
138 |
+ fi |
139 |
+ econf \ |
140 |
+ ${myconf} \ |
141 |
+ --enable-static \ |
142 |
+ || die "econf failed" |
143 |
+ S="${S}/scripts" |
144 |
+ cd "${S}" |
145 |
+ if use swig ; then |
146 |
+ emake perl/openbabel_perl.cpp || die "Failed to make SWIG perl bindings" |
147 |
+ fi |
148 |
+ S="${S}/perl" |
149 |
+ cd "${S}" |
150 |
+ epatch "${FILESDIR}/${P}-makefile.patch" \ |
151 |
+ || die "Failed to apply ${P}-makefile.patch" |
152 |
+} |
153 |
+ |
154 |
+src_compile() { |
155 |
+ perl-module_src_prep |
156 |
+ perl-module_src_compile |
157 |
+} |
158 |
+ |
159 |
+src_test() { |
160 |
+ emake test || die "make test failed" |
161 |
+} |
162 |
+ |
163 |
+src_install() { |
164 |
+ perl-module_src_install |
165 |
+} |
166 |
+ |
167 |
+pkg_preinst() { |
168 |
+ perl-module_pkg_preinst |
169 |
+} |
170 |
+ |
171 |
+pkg_postinst() { |
172 |
+ perl-module_pkg_postinst |
173 |
+} |
174 |
+ |
175 |
+pkg_prerm() { |
176 |
+ perl-module_pkg_prerm |
177 |
+} |
178 |
+ |
179 |
+pkg_postrm() { |
180 |
+ perl-module_pkg_postrm |
181 |
+} |
182 |
+ |
183 |
-- |
184 |
1.6.0.6 |