1 |
commit: 635d1bb2e9b12adaeac34520574f708976eeaf37 |
2 |
Author: Horea Christian <chr <AT> chymera <DOT> eu> |
3 |
AuthorDate: Mon Sep 28 09:59:00 2020 +0000 |
4 |
Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Sep 28 09:59:00 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=635d1bb2 |
7 |
|
8 |
sci-libs/rdkit: version and PYTHON_COMPAT update |
9 |
|
10 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
11 |
Signed-off-by: Horea Christian <chr <AT> chymera.eu> |
12 |
|
13 |
.../rdkit-2020.03.6-no_dynamic_checking.patch | 59 ++++++++++++++++++++++ |
14 |
sci-libs/rdkit/rdkit-2015.03.1.ebuild | 40 --------------- |
15 |
sci-libs/rdkit/rdkit-2020.03.6.ebuild | 56 ++++++++++++++++++++ |
16 |
sci-libs/rdkit/rdkit-9999.ebuild | 39 -------------- |
17 |
4 files changed, 115 insertions(+), 79 deletions(-) |
18 |
|
19 |
diff --git a/sci-libs/rdkit/files/rdkit-2020.03.6-no_dynamic_checking.patch b/sci-libs/rdkit/files/rdkit-2020.03.6-no_dynamic_checking.patch |
20 |
new file mode 100644 |
21 |
index 000000000..2f7656245 |
22 |
--- /dev/null |
23 |
+++ b/sci-libs/rdkit/files/rdkit-2020.03.6-no_dynamic_checking.patch |
24 |
@@ -0,0 +1,59 @@ |
25 |
+--- a/External/catch/CMakeLists.txt 2020-09-28 05:09:11.307595711 -0400 |
26 |
++++ b/External/catch/CMakeLists.txt 2020-09-28 05:10:35.188570785 -0400 |
27 |
+@@ -13,9 +13,6 @@ |
28 |
+ message("-- Catch not found in ${CATCH_DIR}") |
29 |
+ include(RDKitUtils) |
30 |
+ set(RELEASE_NO "2.1.2") |
31 |
+- downloadAndCheckMD5("https://github.com/catchorg/Catch2/archive/v${RELEASE_NO}.tar.gz" |
32 |
+- "${CMAKE_CURRENT_SOURCE_DIR}/master.tar.gz" |
33 |
+- "4c5740d7446d9b4e3735dcff0951aaca") |
34 |
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf |
35 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/master.tar.gz |
36 |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
37 |
+--- a/External/CoordGen/CMakeLists.txt 2020-09-28 05:13:38.351584109 -0400 |
38 |
++++ b/External/CoordGen/CMakeLists.txt 2020-09-28 05:15:49.396007762 -0400 |
39 |
+@@ -38,9 +38,6 @@ |
40 |
+ |
41 |
+ if(NOT EXISTS "${MAEPARSER_DIR}/MaeParser.hpp") |
42 |
+ set(RELEASE_NO "1.2.3") |
43 |
+- set(MD5 "4ead02a0bf87110d1caae79ab42a5747") |
44 |
+- downloadAndCheckMD5("https://github.com/schrodinger/maeparser/archive/v${RELEASE_NO}.tar.gz" |
45 |
+- "${CMAKE_CURRENT_SOURCE_DIR}/maeparser-v${RELEASE_NO}.tar.gz" ${MD5}) |
46 |
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf |
47 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/maeparser-v${RELEASE_NO}.tar.gz |
48 |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
49 |
+--- a/External/CoordGen/CMakeLists.txt 2020-09-28 05:31:21.353305949 -0400 |
50 |
++++ b/External/CoordGen/CMakeLists.txt 2020-09-28 05:32:04.187783628 -0400 |
51 |
+@@ -67,9 +67,6 @@ |
52 |
+ |
53 |
+ if(NOT EXISTS "${COORDGEN_DIR}/sketcherMinimizer.h") |
54 |
+ set(RELEASE_NO "1.4.0") |
55 |
+- set(MD5 "5f663c8809b494f0548dd504c011c739") |
56 |
+- downloadAndCheckMD5("https://github.com/schrodinger/coordgenlibs/archive/v${RELEASE_NO}.tar.gz" |
57 |
+- "${CMAKE_CURRENT_SOURCE_DIR}/coordgenlibs-${RELEASE_NO}.tar.gz" ${MD5}) |
58 |
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf |
59 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/coordgenlibs-${RELEASE_NO}.tar.gz |
60 |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
61 |
+--- a/External/RingFamilies/CMakeLists.txt 2020-09-18 11:18:37.000000000 -0400 |
62 |
++++ b/External/RingFamilies/CMakeLists.txt 2020-09-28 05:35:04.427800305 -0400 |
63 |
+@@ -8,9 +8,6 @@ |
64 |
+ |
65 |
+ if(NOT EXISTS "${URFLIB_DIR}/RingDecomposerLib.h") |
66 |
+ set(RELEASE_NO "1.1.3_rdkit") |
67 |
+- set(MD5 "e9a0bcdda8b921a35e812b9888a9a874") |
68 |
+- downloadAndCheckMD5("https://github.com/rareylab/RingDecomposerLib/archive/v${RELEASE_NO}.tar.gz" |
69 |
+- "${CMAKE_CURRENT_SOURCE_DIR}/RingDecomposerLib-v${RELEASE_NO}.tar.gz" ${MD5}) |
70 |
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf |
71 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/RingDecomposerLib-v${RELEASE_NO}.tar.gz |
72 |
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) |
73 |
+--- a/Code/GraphMol/MolInterchange/CMakeLists.txt 2020-09-18 11:18:37.000000000 -0400 |
74 |
++++ b/Code/GraphMol/MolInterchange/CMakeLists.txt 2020-09-28 05:36:47.759960868 -0400 |
75 |
+@@ -1,8 +1,5 @@ |
76 |
+ |
77 |
+ if(NOT EXISTS "${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0") |
78 |
+- downloadAndCheckMD5("https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz" |
79 |
+- "${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0.tar.gz" |
80 |
+- "badd12c511e081fec6c89c43a7027bce") |
81 |
+ execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf |
82 |
+ ${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0.tar.gz |
83 |
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/External) |
84 |
|
85 |
diff --git a/sci-libs/rdkit/rdkit-2015.03.1.ebuild b/sci-libs/rdkit/rdkit-2015.03.1.ebuild |
86 |
deleted file mode 100644 |
87 |
index 818630481..000000000 |
88 |
--- a/sci-libs/rdkit/rdkit-2015.03.1.ebuild |
89 |
+++ /dev/null |
90 |
@@ -1,40 +0,0 @@ |
91 |
-# Copyright 1999-2015 Gentoo Foundation |
92 |
-# Distributed under the terms of the GNU General Public License v2 |
93 |
- |
94 |
-EAPI=5 |
95 |
- |
96 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
97 |
- |
98 |
-inherit cmake-utils python-r1 |
99 |
- |
100 |
-DESCRIPTION="Cheminformatics and machine-learning software written in C++ and Python" |
101 |
-HOMEPAGE="http://www.rdkit.org/" |
102 |
-SRC_URI="https://github.com/rdkit/rdkit/archive/Release_${PV//./_}.tar.gz -> ${P}.tar.gz" |
103 |
- |
104 |
-LICENSE="BSD" |
105 |
-SLOT="0" |
106 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
107 |
-IUSE="+python -static-libs" |
108 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
109 |
- |
110 |
-RDEPEND="dev-libs/boost |
111 |
- python? ( |
112 |
- dev-libs/boost[python,${PYTHON_USEDEP}] |
113 |
- dev-python/numpy[${PYTHON_USEDEP}] |
114 |
- ) |
115 |
- >=dev-db/sqlite-3" |
116 |
-DEPEND="${RDEPEND}" |
117 |
- |
118 |
-S="${WORKDIR}"/rdkit-Release_${PV//./_} |
119 |
- |
120 |
-src_configure() { |
121 |
- local mycmakeargs=( |
122 |
- -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr |
123 |
- -DRDK_INSTALL_INTREE=0 |
124 |
- -DRDK_BUILD_CPP_TESTS=OFF |
125 |
- $(cmake-utils_use static-libs RDK_INSTALL_STATIC_LIBS) |
126 |
- $(cmake-utils_use python RDK_BUILD_PYTHON_WRAPPERS) |
127 |
- ) |
128 |
- |
129 |
- cmake-utils_src_configure |
130 |
-} |
131 |
|
132 |
diff --git a/sci-libs/rdkit/rdkit-2020.03.6.ebuild b/sci-libs/rdkit/rdkit-2020.03.6.ebuild |
133 |
new file mode 100644 |
134 |
index 000000000..2c8ef5817 |
135 |
--- /dev/null |
136 |
+++ b/sci-libs/rdkit/rdkit-2020.03.6.ebuild |
137 |
@@ -0,0 +1,56 @@ |
138 |
+# Copyright 1999-2020 Gentoo Authors |
139 |
+# Distributed under the terms of the GNU General Public License v2 |
140 |
+ |
141 |
+EAPI=7 |
142 |
+ |
143 |
+PYTHON_COMPAT=( python3_{6..9} ) |
144 |
+ |
145 |
+inherit cmake python-r1 |
146 |
+ |
147 |
+DESCRIPTION="Cheminformatics and machine-learning software written in C++ and Python" |
148 |
+HOMEPAGE="http://www.rdkit.org/" |
149 |
+SRC_URI=" |
150 |
+ https://github.com/rdkit/rdkit/archive/Release_${PV//./_}.tar.gz -> ${P}.tar.gz |
151 |
+ https://github.com/schrodinger/maeparser/archive/v1.2.3.tar.gz -> maeparser-1.2.3.tar.gz |
152 |
+ https://github.com/schrodinger/coordgenlibs/archive/v1.4.0.tar.gz -> coordgenlibs-1.4.0.tar.gz |
153 |
+ https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz -> rapidjson-1.1.0.tar.gz |
154 |
+ " |
155 |
+# issues with bundled packages; dev-libs/rapidjson, at least, should be unbundled: |
156 |
+# https://github.com/rdkit/rdkit/issues/3443 |
157 |
+ |
158 |
+LICENSE="BSD" |
159 |
+SLOT="0" |
160 |
+KEYWORDS="" |
161 |
+# build configuration issues https://github.com/rdkit/rdkit/issues/3444 |
162 |
+IUSE="+python -static-libs" |
163 |
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
164 |
+ |
165 |
+RDEPEND="dev-libs/boost |
166 |
+ python? ( |
167 |
+ dev-libs/boost[python,${PYTHON_USEDEP}] |
168 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
169 |
+ ) |
170 |
+ >=dev-db/sqlite-3" |
171 |
+DEPEND="${RDEPEND}" |
172 |
+ |
173 |
+S="${WORKDIR}"/rdkit-Release_${PV//./_} |
174 |
+ |
175 |
+PATCHES=( "${FILESDIR}"/${P}-no_dynamic_checking.patch ) |
176 |
+ |
177 |
+src_prepare() { |
178 |
+ cp ../maeparser-* -rf External/CoordGen/ || die |
179 |
+ cp ../coordgenlibs-* -rf External/CoordGen/ || die |
180 |
+ cp ../rapidjson-* -rf External/ || die |
181 |
+ cmake_src_prepare |
182 |
+} |
183 |
+ |
184 |
+src_configure() { |
185 |
+ local mycmakeargs=( |
186 |
+ -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr |
187 |
+ -DRDK_INSTALL_INTREE=0 |
188 |
+ -DRDK_BUILD_CPP_TESTS=OFF |
189 |
+ -DRDK_INSTALL_STATIC_LIBS="$(usex static-libs)" |
190 |
+ -DRDK_BUILD_PYTHON_WRAPPERS="$(usex python)" |
191 |
+ ) |
192 |
+ cmake_src_configure |
193 |
+} |
194 |
|
195 |
diff --git a/sci-libs/rdkit/rdkit-9999.ebuild b/sci-libs/rdkit/rdkit-9999.ebuild |
196 |
deleted file mode 100644 |
197 |
index 1c4a4e45a..000000000 |
198 |
--- a/sci-libs/rdkit/rdkit-9999.ebuild |
199 |
+++ /dev/null |
200 |
@@ -1,39 +0,0 @@ |
201 |
-# Copyright 1999-2015 Gentoo Foundation |
202 |
-# Distributed under the terms of the GNU General Public License v2 |
203 |
- |
204 |
-EAPI=5 |
205 |
- |
206 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
207 |
- |
208 |
-inherit cmake-utils python-r1 git-r3 |
209 |
- |
210 |
-DESCRIPTION="Cheminformatics and machine-learning software written in C++ and Python" |
211 |
-HOMEPAGE="http://www.rdkit.org/" |
212 |
-SRC_URI="" |
213 |
-EGIT_REPO_URI="https://github.com/rdkit/rdkit.git" |
214 |
- |
215 |
-LICENSE="BSD" |
216 |
-SLOT="0" |
217 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
218 |
-IUSE="+python -static-libs" |
219 |
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" |
220 |
- |
221 |
-RDEPEND="dev-libs/boost |
222 |
- python? ( |
223 |
- dev-libs/boost[python,${PYTHON_USEDEP}] |
224 |
- dev-python/numpy[${PYTHON_USEDEP}] |
225 |
- ) |
226 |
- >=dev-db/sqlite-3" |
227 |
-DEPEND="${RDEPEND}" |
228 |
- |
229 |
-src_configure() { |
230 |
- local mycmakeargs=( |
231 |
- -DCMAKE_INSTALL_PREFIX:PATH="${EPREFIX}"/usr |
232 |
- -DRDK_INSTALL_INTREE=0 |
233 |
- -DRDK_BUILD_CPP_TESTS=OFF |
234 |
- $(cmake-utils_use static-libs RDK_INSTALL_STATIC_LIBS) |
235 |
- $(cmake-utils_use python RDK_BUILD_PYTHON_WRAPPERS) |
236 |
- ) |
237 |
- |
238 |
- cmake-utils_src_configure |
239 |
-} |