1 |
commit: e4efd52cc1039b2bb947e0fcd8f0b4047a660c87 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 14 19:36:08 2018 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 14 19:36:08 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4efd52c |
7 |
|
8 |
sci-chemistry/openbabel-perl: Drop 2.3.2 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
12 |
|
13 |
sci-chemistry/openbabel-perl/Manifest | 1 - |
14 |
.../files/openbabel-perl-2.3.2-bindings_only.patch | 108 --------------------- |
15 |
.../files/openbabel-perl-2.3.2-trunk_cmake.patch | 41 -------- |
16 |
.../openbabel-perl/openbabel-perl-2.3.2.ebuild | 72 -------------- |
17 |
4 files changed, 222 deletions(-) |
18 |
|
19 |
diff --git a/sci-chemistry/openbabel-perl/Manifest b/sci-chemistry/openbabel-perl/Manifest |
20 |
index b44e078a63a..ac268758e8c 100644 |
21 |
--- a/sci-chemistry/openbabel-perl/Manifest |
22 |
+++ b/sci-chemistry/openbabel-perl/Manifest |
23 |
@@ -1,2 +1 @@ |
24 |
-DIST openbabel-2.3.2.tar.gz 20509105 BLAKE2B d475c2da0d7171650eeb4b78a948421b783bdbb9342c81114d3dbc19d5cbb273f7303438920ffaeef5b6332e4b72606a86ded5cbd3d7e541f62b59b46483bb69 SHA512 d0e1f8b758ffdd65ec6c31d988bffe3279355e286ce69fad12c5905b3b832e2b73ee95b1061b1576aba1ee9fe4da5e31ec30350c473be17493c657dc80caf919 |
25 |
DIST openbabel-2.4.1.tar.gz 11618304 BLAKE2B 8fc051e83add9be6456e281a109bd6bbec282a64ffc83309819f0decbf167b4914fbb7f1966e95e103f268754045b804317f51c79a952ace707c6af2bd320125 SHA512 427e678f0a911bd27b9a8a05e60b6e09f113be4e5dd180daaf80c28d06368e52b57501261755ab3817a8d31f2754db24471fd0ceee706d029386d6f70800e9c6 |
26 |
|
27 |
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch |
28 |
deleted file mode 100644 |
29 |
index 92e126a77d8..00000000000 |
30 |
--- a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-bindings_only.patch |
31 |
+++ /dev/null |
32 |
@@ -1,108 +0,0 @@ |
33 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
34 |
-index 449f4b4..1c9ad00 100644 |
35 |
---- a/CMakeLists.txt |
36 |
-+++ b/CMakeLists.txt |
37 |
-@@ -252,7 +252,8 @@ if(NOT MSVC) |
38 |
- } |
39 |
- " SCANDIR_NEEDS_CONST) |
40 |
- |
41 |
-- set(OB_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/${OB_PLUGIN_INSTALL_DIR}") |
42 |
-+ set(OB_MODULE_PATH "${CMAKE_INSTALL_PREFIX}/${OB_PLUGIN_INSTALL_DIR}" |
43 |
-+ CACHE PATH "Set to system install for bindings only build") |
44 |
- add_definitions(-DOB_MODULE_PATH="\\"${OB_MODULE_PATH}\\"") |
45 |
- |
46 |
- # Add some visibility support when using GCC |
47 |
-@@ -380,7 +381,8 @@ if(UNIX AND BUILD_SHARED) |
48 |
- if(APPLE) |
49 |
- set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}) |
50 |
- else() |
51 |
-- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") |
52 |
-+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" |
53 |
-+ CACHE PATH "Set sane rpath") |
54 |
- set(CMAKE_SKIP_BUILD_RPATH FALSE) |
55 |
- set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) |
56 |
- set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) |
57 |
-@@ -477,6 +479,13 @@ endif() |
58 |
- # Should the language bindings be regenereted? |
59 |
- option(RUN_SWIG "Generate language bindings with SWIG" OFF) |
60 |
- |
61 |
-+# Build bindings only |
62 |
-+option(BINDINGS_ONLY "Build bindings only" OFF) |
63 |
-+ |
64 |
-+# Point to library if building bindings only |
65 |
-+set(BABEL_SYSTEM_LIBRARY ${BABEL_LIBRARY} |
66 |
-+ CACHE PATH "Point to openbabel library if building bindings only") |
67 |
-+ |
68 |
- # Should all bindings be built? |
69 |
- option(ALL_BINDINGS "Build all languages bindings" OFF) |
70 |
- |
71 |
-diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt |
72 |
-index 16e9000..8f92e91 100644 |
73 |
---- a/scripts/CMakeLists.txt |
74 |
-+++ b/scripts/CMakeLists.txt |
75 |
-@@ -92,16 +92,30 @@ if (DO_PYTHON_BINDINGS) |
76 |
- endif(RUN_SWIG) |
77 |
- |
78 |
- add_library(bindings_python MODULE ${openbabel_SOURCE_DIR}/scripts/python/openbabel-python.cpp) |
79 |
-- target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_LIBRARY}) |
80 |
-+ if(BINDINGS_ONLY) |
81 |
-+ target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_SYSTEM_LIBRARY}) |
82 |
-+ else() |
83 |
-+ target_link_libraries(bindings_python ${PYTHON_LIBRARIES} ${BABEL_LIBRARY}) |
84 |
-+ endif() |
85 |
-+ |
86 |
- if(NOT WIN32) |
87 |
- set_target_properties(bindings_python PROPERTIES |
88 |
- OUTPUT_NAME _openbabel |
89 |
- PREFIX "" |
90 |
- SUFFIX .so ) |
91 |
-- add_dependencies(bindings_python openbabel) |
92 |
-- install(TARGETS bindings_python LIBRARY DESTINATION ${LIB_INSTALL_DIR}) |
93 |
-- install(FILES ${openbabel_SOURCE_DIR}/scripts/python/openbabel.py DESTINATION ${LIB_INSTALL_DIR}) |
94 |
-- install(FILES ${openbabel_SOURCE_DIR}/scripts/python/pybel.py DESTINATION ${LIB_INSTALL_DIR}) |
95 |
-+ if(NOT BINDINGS_ONLY) |
96 |
-+ add_dependencies(bindings_python openbabel) |
97 |
-+ endif() |
98 |
-+ |
99 |
-+ install(TARGETS bindings_python |
100 |
-+ LIBRARY DESTINATION ${LIB_INSTALL_DIR} |
101 |
-+ COMPONENT bindings_python) |
102 |
-+ install(FILES ${openbabel_SOURCE_DIR}/scripts/python/openbabel.py |
103 |
-+ DESTINATION ${LIB_INSTALL_DIR} |
104 |
-+ COMPONENT bindings_python) |
105 |
-+ install(FILES ${openbabel_SOURCE_DIR}/scripts/python/pybel.py |
106 |
-+ DESTINATION ${LIB_INSTALL_DIR} |
107 |
-+ COMPONENT bindings_python) |
108 |
- else(NOT WIN32) |
109 |
- set_target_properties(bindings_python PROPERTIES |
110 |
- OUTPUT_NAME _openbabel |
111 |
-@@ -231,13 +245,25 @@ if (DO_PERL_BINDINGS) |
112 |
- endif (RUN_SWIG) |
113 |
- |
114 |
- add_library(bindings_perl MODULE ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp) |
115 |
-- target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY} ${PERL_EXTRA_LINK_FLAGS}) |
116 |
-+ if(BINDINGS_ONLY) |
117 |
-+ target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_SYSTEM_LIBRARY} ${PERL_EXTRA_LINK_FLAGS}) |
118 |
-+ else() |
119 |
-+ target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY} ${PERL_EXTRA_LINK_FLAGS}) |
120 |
-+ endif() |
121 |
-+ |
122 |
- set_target_properties(bindings_perl PROPERTIES |
123 |
- PREFIX "" |
124 |
- OUTPUT_NAME OpenBabel) |
125 |
-- add_dependencies(bindings_perl openbabel) |
126 |
-- install(TARGETS bindings_perl LIBRARY DESTINATION ${LIB_INSTALL_DIR}) |
127 |
-- install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm DESTINATION ${LIB_INSTALL_DIR}) |
128 |
-+ if(NOT BINDINGS_ONLY) |
129 |
-+ add_dependencies(bindings_perl openbabel) |
130 |
-+ endif() |
131 |
-+ |
132 |
-+ install(TARGETS bindings_perl |
133 |
-+ LIBRARY DESTINATION ${LIB_INSTALL_DIR}/auto/Chemistry/OpenBabel/ |
134 |
-+ COMPONENT bindings_perl) |
135 |
-+ install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm |
136 |
-+ DESTINATION ${LIB_INSTALL_DIR}/Chemistry/ |
137 |
-+ COMPONENT bindings_perl) |
138 |
- |
139 |
- endif (DO_PERL_BINDINGS) |
140 |
- |
141 |
|
142 |
diff --git a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch b/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch |
143 |
deleted file mode 100644 |
144 |
index b72a622a3af..00000000000 |
145 |
--- a/sci-chemistry/openbabel-perl/files/openbabel-perl-2.3.2-trunk_cmake.patch |
146 |
+++ /dev/null |
147 |
@@ -1,41 +0,0 @@ |
148 |
-diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt |
149 |
-index e7298ce..16e9000 100644 |
150 |
---- a/scripts/CMakeLists.txt |
151 |
-+++ b/scripts/CMakeLists.txt |
152 |
-@@ -231,36 +239,6 @@ if (DO_PERL_BINDINGS) |
153 |
- install(TARGETS bindings_perl LIBRARY DESTINATION ${LIB_INSTALL_DIR}) |
154 |
- install(FILES ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm DESTINATION ${LIB_INSTALL_DIR}) |
155 |
- |
156 |
-- set(PERL_INSTALLDIRS_TEXT "") |
157 |
-- if (OBPERL_INSTALLDIRS) |
158 |
-- set(PERL_INSTALLDIRS_TEXT "INSTALLDIRS=${OBPERL_INSTALLDIRS}") |
159 |
-- endif (OBPERL_INSTALLDIRS) |
160 |
-- |
161 |
-- if (NOT MSVC) |
162 |
-- add_custom_target(pre_bindings_perl ALL |
163 |
-- # Create the scripts/perl directory; we cannot do this inside |
164 |
-- # bindings_perl as the WORKING_DIRECTORY needs to already exist! |
165 |
-- COMMAND ${CMAKE_COMMAND} -E make_directory ${openbabel_BINARY_DIR}/scripts/perl |
166 |
-- ) |
167 |
-- add_custom_target(bindings_perl ALL |
168 |
-- COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/Makefile.PL ${openbabel_BINARY_DIR}/scripts/perl |
169 |
-- COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/OpenBabel.pm ${openbabel_BINARY_DIR}/scripts/perl |
170 |
-- COMMAND ${CMAKE_COMMAND} -E copy ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp ${openbabel_BINARY_DIR}/scripts/perl |
171 |
-- COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc SRC_DIR=${openbabel_SOURCE_DIR} OBJ_DIR=${openbabel_BINARY_DIR} ${PERL_EXECUTABLE} ${openbabel_BINARY_DIR}/scripts/perl/Makefile.PL ${PERL_PREFIX_TEXT} ${PERL_INSTALLDIRS_TEXT} |
172 |
-- COMMAND PERL5LIB=${openbabel_SOURCE_DIR}/scripts/perl/inc make |
173 |
-- DEPENDS openbabel ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp |
174 |
-- WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl |
175 |
-- ) |
176 |
-- add_dependencies(bindings_perl pre_bindings_perl openbabel) |
177 |
-- install(CODE "execute_process(COMMAND make install DESTDIR=\$ENV{DESTDIR} WORKING_DIRECTORY ${openbabel_BINARY_DIR}/scripts/perl)") |
178 |
-- |
179 |
-- else (NOT MSVC) |
180 |
-- add_library(bindings_perl MODULE ${openbabel_SOURCE_DIR}/scripts/perl/openbabel-perl.cpp) |
181 |
-- target_link_libraries(bindings_perl ${PERL_LIBRARY} ${BABEL_LIBRARY}) |
182 |
-- set_target_properties(bindings_perl PROPERTIES |
183 |
-- OUTPUT_NAME openbabel_perl ) |
184 |
-- endif(NOT MSVC) |
185 |
-- |
186 |
- endif (DO_PERL_BINDINGS) |
187 |
- |
188 |
- ################### |
189 |
|
190 |
diff --git a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild b/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild |
191 |
deleted file mode 100644 |
192 |
index 25a87bc1b7e..00000000000 |
193 |
--- a/sci-chemistry/openbabel-perl/openbabel-perl-2.3.2.ebuild |
194 |
+++ /dev/null |
195 |
@@ -1,72 +0,0 @@ |
196 |
-# Copyright 1999-2017 Gentoo Foundation |
197 |
-# Distributed under the terms of the GNU General Public License v2 |
198 |
- |
199 |
-EAPI=5 |
200 |
- |
201 |
-inherit cmake-utils eutils perl-module |
202 |
- |
203 |
-DESCRIPTION="Perl bindings for OpenBabel" |
204 |
-HOMEPAGE="http://openbabel.sourceforge.net/" |
205 |
-SRC_URI="mirror://sourceforge/openbabel/openbabel-${PV}.tar.gz" |
206 |
- |
207 |
-KEYWORDS="amd64 ~arm x86 ~amd64-linux ~x86-linux" |
208 |
-SLOT="0" |
209 |
-LICENSE="GPL-2" |
210 |
-IUSE="" |
211 |
- |
212 |
-RDEPEND=" |
213 |
- dev-lang/perl:= |
214 |
- ~sci-chemistry/openbabel-${PV}" |
215 |
-DEPEND="${RDEPEND} |
216 |
- >=dev-util/cmake-2.4.8 |
217 |
- >=dev-lang/swig-2" |
218 |
- |
219 |
-S="${WORKDIR}/openbabel-${PV}" |
220 |
- |
221 |
-PATCHES=( |
222 |
- "${FILESDIR}"/${P}-trunk_cmake.patch |
223 |
- "${FILESDIR}"/${P}-bindings_only.patch |
224 |
- "${FILESDIR}"/${P}-gcc-6_and_7-backport.patch |
225 |
-) |
226 |
- |
227 |
-src_prepare() { |
228 |
- sed \ |
229 |
- -e '/__GNUC__/s:== 4:>= 4:g' \ |
230 |
- -i include/openbabel/shared_ptr.h || die |
231 |
- cmake-utils_src_prepare |
232 |
- perl_set_version |
233 |
-} |
234 |
- |
235 |
-src_configure() { |
236 |
- local mycmakeargs=( |
237 |
- -DCMAKE_INSTALL_RPATH= |
238 |
- -DBINDINGS_ONLY=ON |
239 |
- -DBABEL_SYSTEM_LIBRARY="${EPREFIX}/usr/$(get_libdir)/libopenbabel.so" |
240 |
- -DOB_MODULE_PATH="${EPREFIX}/usr/$(get_libdir)/openbabel/${PV}" |
241 |
- -DLIB_INSTALL_DIR="${D}/${VENDOR_ARCH}" |
242 |
- -DPERL_BINDINGS=ON |
243 |
- -DRUN_SWIG=ON |
244 |
- ) |
245 |
- |
246 |
- cmake-utils_src_configure |
247 |
-} |
248 |
- |
249 |
-src_compile() { |
250 |
- cmake-utils_src_compile bindings_perl |
251 |
-} |
252 |
- |
253 |
-src_test() { |
254 |
- mkdir "${CMAKE_BUILD_DIR}/$(get_libdir)/Chemistry" |
255 |
- cp \ |
256 |
- "${CMAKE_USE_DIR}/scripts/perl/OpenBabel.pm" \ |
257 |
- "${CMAKE_BUILD_DIR}/$(get_libdir)/Chemistry/" |
258 |
- for i in "${CMAKE_USE_DIR}"/scripts/perl/t/*; do |
259 |
- einfo "Running test: ${i}" |
260 |
- perl -I"${CMAKE_BUILD_DIR}/$(get_libdir)" "${i}" || die |
261 |
- done |
262 |
-} |
263 |
- |
264 |
-src_install() { |
265 |
- cd "${CMAKE_BUILD_DIR}" |
266 |
- cmake -DCOMPONENT=bindings_perl -P cmake_install.cmake |
267 |
-} |