1 |
commit: 68aeb905a310ee748d1f26d117d9d0987ecae6a9 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 3 20:40:38 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 3 20:40:38 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68aeb905 |
7 |
|
8 |
sci-libs/scipy: Remove old |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/14188 |
11 |
Package-Manager: Portage-2.3.83, Repoman-2.3.20 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
sci-libs/scipy/Manifest | 12 -- |
15 |
sci-libs/scipy/files/scipy-0.12.0-blitz.patch | 28 ---- |
16 |
.../files/scipy-0.12.0-restore-sys-argv.patch | 15 --- |
17 |
.../files/scipy-0.16.1-glibc-2.22-backport.patch | 30 ----- |
18 |
sci-libs/scipy/scipy-0.16.1.ebuild | 149 --------------------- |
19 |
sci-libs/scipy/scipy-0.18.1.ebuild | 147 -------------------- |
20 |
sci-libs/scipy/scipy-0.19.1.ebuild | 143 -------------------- |
21 |
sci-libs/scipy/scipy-1.0.0.ebuild | 142 -------------------- |
22 |
8 files changed, 666 deletions(-) |
23 |
|
24 |
diff --git a/sci-libs/scipy/Manifest b/sci-libs/scipy/Manifest |
25 |
index 755da305b08..e77eff00229 100644 |
26 |
--- a/sci-libs/scipy/Manifest |
27 |
+++ b/sci-libs/scipy/Manifest |
28 |
@@ -1,15 +1,3 @@ |
29 |
-DIST scipy-0.16.1-html.zip 33158474 BLAKE2B dfeac8456ea328f293a28c379e3723f8a2fa2e5c47fc2771902083fb89764df9041f71c2ee656fc4c9a00017367f5e4726c798d309f8c2c50dd020c0fd93d168 SHA512 47b1ebd43b58ada7f4fd772e2a94c25d8ee2b03d808743ac386c7fbcc8a1daa3082906156ba421b1dd91ce2fb4f0114639ea124caac7522d919507029fee6c1a |
30 |
-DIST scipy-0.16.1-ref.pdf 33916573 BLAKE2B 8bb2fbb592168c1233fa0e464cd8ded7ab05f4ab9b27ed54e45a71f1902ea4378ad6099cdbce633364372dfa6c0525f906cff7fab3d38d62f9d8c8b698d96fd9 SHA512 eaf7221c2dcb2cf0bcddcaf6064e52f3d1542edaf0238fa96ae62e27911b275a3bc7ee624fe655b0abd00055312f18582d49cafdccf339f7c38aa93ca5badea9 |
31 |
-DIST scipy-0.16.1.tar.gz 12221561 BLAKE2B 8181330d7e83c75ee3e3b88cdc7736fdedbf0eb410fc237a3aa0d45bc5919d79d2bec8876351dee9c331016371becf6a6a1a0b419e50739e717125334d5512bd SHA512 1761a943a0629179fd546fe3754b16101ca86b98eb0539b73614ea65bce24055ca898f295683eb3f3f63402ebbbb9248aa2a9f6a1d7d6cdf5e1e7486b15c1a8b |
32 |
-DIST scipy-0.18.1-html.zip 32907714 BLAKE2B e1e32d4472f8bb3064e732689cdbe7055a441e7dea38a0fff37458e4530b841db969fdcad92967d9ee2bc37120ed7dae238365d566363ec6b86a188b6cb2a746 SHA512 fc61ce9a9dcc7091da29d35a42cc38074b0c4f5ff81d5ca5dea9c2d32e5e3ee1e8463fcb4e18c931c0c0e4f00410f8cd16d0f81c219fb326edc20d2286866e03 |
33 |
-DIST scipy-0.18.1-ref.pdf 14824115 BLAKE2B 94ecf2332925adba1f40fbf303a5ec6ecddfb5ab30d25f038945e6c2328cee2e5182f4a8214bd49e7f4cc5af2fa5d6e70b7f6248cbc7964ed38c5479914ce17f SHA512 e668420ae3668f459d15cb88765045c89df02f9c73854c8ddce8fe1611973e8c9d40ac49a1db0342282074b1d46b8156bb75430b7df079efd1c3a6ccb4bf2c37 |
34 |
-DIST scipy-0.18.1.tar.gz 13141689 BLAKE2B b761c2543e962eb04cc9c9651e6c95612e421393a2b3d519a52fbb3dd0f7583972004632429ddbe9ea007248908c937b26050a0579f45472978b2f3629a27c67 SHA512 f2ee21c808141d8002f69e48e7cf006e36982b1a7041323a8f4d803a1de3d191ffcc40227aac351dd876c28843de366ef89e9cf84dc106fadac86a3f40491659 |
35 |
-DIST scipy-0.19.1-html.zip 38201310 BLAKE2B 28ba5538ecfb1a8a6b7676a2b427a320d3fd6e76f591203d25451e4de8e2534ef3bfaee960322d427774459319da3098c70bf69b176641a75eb64e17a53d5690 SHA512 7eecef83a92aa99a726a8839e2cdac1171129ba0efcaf8e36b07d6714fde20cce9ce9f676be6b4835845930c49f740cb11ce0d93012d0b8c990e7061bb3afbcc |
36 |
-DIST scipy-0.19.1-ref.pdf 17530855 BLAKE2B a0b0011ded7ee1f6bf9944b0c6d474581b64debb192277ebf142ebcc297f8e2f52412a4a8bfb7e618984c0c32233e2a6346d9795565276e08f00be5e782da04f SHA512 79718fde0aedb4c9906b37f2d75878719b614268160e645ad69ea797d6baeecaff9153884171906e6b7673b65da997ff4fd245e0f42ab766497ee9c96f4f9fd2 |
37 |
-DIST scipy-0.19.1.tar.gz 14083805 BLAKE2B 65369ffec2726a8e16da2d6852a71965277b8d4637316a375122e5b6cbf0e05cdcbd3304bcd14ca0b9b6677620a27c0fed6d4924eb8b1726c22ec0ec663feeac SHA512 5c124c44c672dcb53c31f8592fd9f74189f04cb0bade99476a2a6eb4844338e3e9842f27a148b007b7eed25cbfde090a697575a381ebe4ca066abdf54c214203 |
38 |
-DIST scipy-1.0.0-html.zip 47873725 BLAKE2B 0c6c1070e46e644c9e5700a116e700a0ce8d69c1cfaa0ae63ae34af8844db83a7b61c5d072c54bdc23ef7016440ec6d378a45965778c0e8078113bf1a54bade3 SHA512 15d5726ad527bbe3e3e1579d5d2f6031393a2eca8e27adc6f78b16697e9dd67633407a160f461d7a18a8b8bde83201ccf363cdda8f9ca3531b6d6ec1491e0f14 |
39 |
-DIST scipy-1.0.0-ref.pdf 31394378 BLAKE2B bc8e590509cfb4bfda9deab40bbc6ebc919e39cb03a5817040ad2e9bbdfd0acc1a1dc194a88ac890a9052b6ddb3bb7b39292d08d925e3d1eb310605ca0589450 SHA512 657ef3c643ab61a8452dd85982018eb2210cd1531edd152c9b1c3d8c722f8a45ab1efd03f5bbb3c763a75e70e6d39036a845869ec5135f2aa0445480a074f3e0 |
40 |
-DIST scipy-1.0.0.tar.gz 15246397 BLAKE2B 37cd50c59830c91f0516c72cf11b367670faf5c1fe3fd3cf37bc6f30a4b1f44f7b1d124ff7097c3dcb8c32c3876e166ab1caaa3991a637df5f61bb26b0f52c3f SHA512 7d55c5660ac606933d517171a229b288fd0ea8d9fdd8e30fac3d294545a26b2700c7b100b014a93231c4122dee0f1ddd741c00f5902643a6ccc287cdf581da7a |
41 |
DIST scipy-1.1.0-html.zip 49851258 BLAKE2B 528df7ed8aa8e56662f436f31ee9e1d6d72d6fe962f9f0f6f84b7a2704b53009ce333b2102ec73bb7795110f8a61b18246aab95b1e21055f2b68c0ff2225b7bb SHA512 a03894a22a67c1359ee6206e9e1c9de1f926a7f829f5039f161e78df735708da09b0e51cdad3bf36bfede701d0bc5dc44f8cc0f249b6bfb80c9d8c9fe23aed46 |
42 |
DIST scipy-1.1.0-ref.pdf 34360806 BLAKE2B f82807879d5d36d91d74e8983a0f4104bcb4b69cb7787fe5190f73fbbfcb8635a9399686b3c75736d3b0b5dd877b5280ff6fba728520e3b47c13ffc7835f8cd6 SHA512 c792064c986dffafa3c5d0741f30715028e655761d099f0fdd472270cf34642b367dfa2178ddceba13043a471e3aeb1db20d65308dbb40c704dab576aaadeb3e |
43 |
DIST scipy-1.1.0.tar.gz 15583560 BLAKE2B 477753e622ee26a3bc8c2cb6829410152df84b29ce17a6d53a66348f5536f7993fedf5d32b782405b54b3af3feabf9bc91c381ed39546076849c2fdb71039404 SHA512 72fe32c6c009613cb78202598e5db14f8e630b3218839cfe18d43d40550d94cc5aa100c6f5d41f40e86ae148e9b6a13431bb91b0f9be44b0569ccd7b725fe973 |
44 |
|
45 |
diff --git a/sci-libs/scipy/files/scipy-0.12.0-blitz.patch b/sci-libs/scipy/files/scipy-0.12.0-blitz.patch |
46 |
deleted file mode 100644 |
47 |
index 2817aa39b87..00000000000 |
48 |
--- a/sci-libs/scipy/files/scipy-0.12.0-blitz.patch |
49 |
+++ /dev/null |
50 |
@@ -1,28 +0,0 @@ |
51 |
-Description: Fixes scipy.weave.inline compalition with g++ 4.3 and upwards |
52 |
-Author: Sameer Morar <smorar@×××××.com> |
53 |
-Forwarded: http://projects.scipy.org/scipy/scipy/ticket/739 |
54 |
-Bug-Debian: http://bugs.debian.org/598520 |
55 |
-Bug-Ubuntu: https://launchpad.net/bugs/302649 |
56 |
- |
57 |
---- a/scipy/weave/blitz/blitz/blitz.h |
58 |
-+++ b/scipy/weave/blitz/blitz/blitz.h |
59 |
-@@ -65,6 +65,8 @@ |
60 |
- |
61 |
- #define BZ_THROW // Needed in <blitz/numinquire.h> |
62 |
- |
63 |
-+#include <cstdlib> |
64 |
-+ |
65 |
- BZ_NAMESPACE(blitz) |
66 |
- |
67 |
- #ifdef BZ_HAVE_STD |
68 |
---- a/scipy/weave/blitz/blitz/prettyprint.h |
69 |
-+++ b/scipy/weave/blitz/blitz/prettyprint.h |
70 |
-@@ -22,6 +22,8 @@ |
71 |
- #ifndef BZ_PRETTYPRINT_H |
72 |
- #define BZ_PRETTYPRINT_H |
73 |
- |
74 |
-+#include <cstdlib> |
75 |
-+ |
76 |
- BZ_NAMESPACE(blitz) |
77 |
- |
78 |
- class prettyPrintFormat { |
79 |
|
80 |
diff --git a/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch b/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch |
81 |
deleted file mode 100644 |
82 |
index 3eef739f93a..00000000000 |
83 |
--- a/sci-libs/scipy/files/scipy-0.12.0-restore-sys-argv.patch |
84 |
+++ /dev/null |
85 |
@@ -1,15 +0,0 @@ |
86 |
-Description: restore sys.argv in case of exception |
87 |
-Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500814 |
88 |
- |
89 |
---- a/scipy/weave/build_tools.py |
90 |
-+++ b/scipy/weave/build_tools.py |
91 |
-@@ -283,6 +283,9 @@ def build_extension(module_path,compiler |
92 |
- configure_python_path(build_dir) |
93 |
- except SyntaxError: #TypeError: |
94 |
- success = 0 |
95 |
-+ except Exception, e: |
96 |
-+ restore_sys_argv() |
97 |
-+ raise e |
98 |
- |
99 |
- # restore argv after our trick... |
100 |
- restore_sys_argv() |
101 |
|
102 |
diff --git a/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch b/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch |
103 |
deleted file mode 100644 |
104 |
index 791d67f3253..00000000000 |
105 |
--- a/sci-libs/scipy/files/scipy-0.16.1-glibc-2.22-backport.patch |
106 |
+++ /dev/null |
107 |
@@ -1,30 +0,0 @@ |
108 |
-From 1f5ccd5447ed2796bb8e9506cfbfdb4a82cccfc0 Mon Sep 17 00:00:00 2001 |
109 |
-From: Ralf Gommers <ralf.gommers@×××××.com> |
110 |
-Date: Sat, 24 Oct 2015 18:17:04 +0200 |
111 |
-Subject: [PATCH] TST: fix issue with a ctypes test for integrate on Fedora. |
112 |
- Closes gh-5370 |
113 |
- |
114 |
---- |
115 |
- scipy/integrate/tests/test_quadpack.py | 9 ++++++++- |
116 |
- 1 file changed, 8 insertions(+), 1 deletion(-) |
117 |
- |
118 |
-diff --git a/scipy/integrate/tests/test_quadpack.py b/scipy/integrate/tests/test_quadpack.py |
119 |
-index c3a417c..f384c77 100644 |
120 |
---- a/scipy/integrate/tests/test_quadpack.py |
121 |
-+++ b/scipy/integrate/tests/test_quadpack.py |
122 |
-@@ -42,7 +42,14 @@ def setUp(self): |
123 |
- file = 'libm.dylib' |
124 |
- else: |
125 |
- file = 'libm.so' |
126 |
-- self.lib = ctypes.CDLL(file) |
127 |
-+ |
128 |
-+ try: |
129 |
-+ self.lib = ctypes.CDLL(file) |
130 |
-+ except OSError: |
131 |
-+ # This test doesn't work on some Linux platforms (Fedora for |
132 |
-+ # example) that put an ld script in libm.so - see gh-5370 |
133 |
-+ self.skipTest("Ctypes can't import libm.so") |
134 |
-+ |
135 |
- restype = ctypes.c_double |
136 |
- argtypes = (ctypes.c_double,) |
137 |
- for name in ['sin', 'cos', 'tan']: |
138 |
|
139 |
diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild b/sci-libs/scipy/scipy-0.16.1.ebuild |
140 |
deleted file mode 100644 |
141 |
index f105dde30c6..00000000000 |
142 |
--- a/sci-libs/scipy/scipy-0.16.1.ebuild |
143 |
+++ /dev/null |
144 |
@@ -1,149 +0,0 @@ |
145 |
-# Copyright 1999-2019 Gentoo Authors |
146 |
-# Distributed under the terms of the GNU General Public License v2 |
147 |
- |
148 |
-EAPI=5 |
149 |
- |
150 |
-PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
151 |
-PYTHON_REQ_USE="threads(+)" |
152 |
- |
153 |
-DOC_PV=${PV} |
154 |
- |
155 |
-inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs |
156 |
- |
157 |
-DESCRIPTION="Scientific algorithms library for Python" |
158 |
-HOMEPAGE="https://www.scipy.org/" |
159 |
-SRC_URI=" |
160 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
161 |
- doc? ( |
162 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
163 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
164 |
- )" |
165 |
- |
166 |
-LICENSE="BSD LGPL-2" |
167 |
-SLOT="0" |
168 |
-IUSE="doc sparse test" |
169 |
-RESTRICT="!test? ( test )" |
170 |
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
171 |
- |
172 |
-CDEPEND=" |
173 |
- >=dev-python/numpy-1.6.2[lapack,${PYTHON_USEDEP}] |
174 |
- sci-libs/arpack:0= |
175 |
- virtual/cblas |
176 |
- virtual/lapack |
177 |
- sparse? ( sci-libs/umfpack:0= )" |
178 |
-DEPEND="${CDEPEND} |
179 |
- dev-lang/swig |
180 |
- >=dev-python/cython-0.22[${PYTHON_USEDEP}] |
181 |
- virtual/pkgconfig |
182 |
- doc? ( app-arch/unzip ) |
183 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
184 |
- " |
185 |
- |
186 |
-RDEPEND="${CDEPEND} |
187 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
188 |
- |
189 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
190 |
- |
191 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
192 |
- |
193 |
-src_unpack() { |
194 |
- unpack ${P}.tar.gz |
195 |
- if use doc; then |
196 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
197 |
- fi |
198 |
-} |
199 |
- |
200 |
-pc_incdir() { |
201 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
202 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
203 |
-} |
204 |
- |
205 |
-pc_libdir() { |
206 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
207 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
208 |
-} |
209 |
- |
210 |
-pc_libs() { |
211 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
212 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
213 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
214 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
215 |
-} |
216 |
- |
217 |
-python_prepare_all() { |
218 |
- # scipy automatically detects libraries by default |
219 |
- export {FFTW,FFTW3,UMFPACK}=None |
220 |
- use sparse && unset UMFPACK |
221 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
222 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
223 |
- [[ ${CHOST} == *-darwin* ]] \ |
224 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
225 |
- || append-ldflags -shared |
226 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
227 |
- # hack to force F77 to be FC until bug #278772 is fixed |
228 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
229 |
- export F90="${FC}" |
230 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
231 |
- append-fflags -fPIC |
232 |
- |
233 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
234 |
- cat >> site.cfg <<-EOF |
235 |
- [blas] |
236 |
- include_dirs = $(pc_incdir cblas) |
237 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
238 |
- blas_libs = $(pc_libs cblas blas) |
239 |
- [lapack] |
240 |
- library_dirs = $(pc_libdir lapack):${libdir} |
241 |
- lapack_libs = $(pc_libs lapack) |
242 |
- EOF |
243 |
- |
244 |
- # Drop hashes to force rebuild of cython based .c code |
245 |
- rm cythonize.dat || die |
246 |
- |
247 |
- local PATCHES=( |
248 |
- "${FILESDIR}"/${PN}-0.12.0-blitz.patch |
249 |
- "${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch |
250 |
- "${FILESDIR}"/${P}-glibc-2.22-backport.patch |
251 |
- ) |
252 |
- distutils-r1_python_prepare_all |
253 |
-} |
254 |
- |
255 |
-python_compile() { |
256 |
- ${EPYTHON} tools/cythonize.py || die |
257 |
- distutils-r1_python_compile ${SCIPY_FCONFIG} |
258 |
-} |
259 |
- |
260 |
-python_test() { |
261 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
262 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
263 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
264 |
- "${PYTHON}" -c \ |
265 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
266 |
- || die |
267 |
- # https://github.com/scipy/scipy/issues/5426 |
268 |
- "${EPYTHON}" -c \ |
269 |
- "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ |
270 |
- || die "Tests fail with ${EPYTHON}" |
271 |
-# "${EPYTHON}" -c \ |
272 |
-# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ |
273 |
-# || die "Tests fail with ${EPYTHON}" |
274 |
-} |
275 |
- |
276 |
-python_install_all() { |
277 |
- if use doc; then |
278 |
- dodoc "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf |
279 |
- docinto html |
280 |
- dodoc -r "${WORKDIR}"/html/. |
281 |
- fi |
282 |
- distutils-r1_python_install_all |
283 |
-} |
284 |
- |
285 |
-python_install() { |
286 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
287 |
-} |
288 |
- |
289 |
-pkg_postinst() { |
290 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
291 |
- elog "to your prefered image viewer. Example:" |
292 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
293 |
-} |
294 |
|
295 |
diff --git a/sci-libs/scipy/scipy-0.18.1.ebuild b/sci-libs/scipy/scipy-0.18.1.ebuild |
296 |
deleted file mode 100644 |
297 |
index 730b436320c..00000000000 |
298 |
--- a/sci-libs/scipy/scipy-0.18.1.ebuild |
299 |
+++ /dev/null |
300 |
@@ -1,147 +0,0 @@ |
301 |
-# Copyright 1999-2019 Gentoo Authors |
302 |
-# Distributed under the terms of the GNU General Public License v2 |
303 |
- |
304 |
-EAPI=6 |
305 |
- |
306 |
-PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
307 |
-PYTHON_REQ_USE="threads(+)" |
308 |
- |
309 |
-DOC_PV=${PV} |
310 |
- |
311 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
312 |
- |
313 |
-DESCRIPTION="Scientific algorithms library for Python" |
314 |
-HOMEPAGE="https://www.scipy.org/" |
315 |
-SRC_URI=" |
316 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
317 |
- doc? ( |
318 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
319 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
320 |
- )" |
321 |
- |
322 |
-LICENSE="BSD LGPL-2" |
323 |
-SLOT="0" |
324 |
-IUSE="doc sparse test" |
325 |
-RESTRICT="!test? ( test )" |
326 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
327 |
- |
328 |
-CDEPEND=" |
329 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
330 |
- sci-libs/arpack:0= |
331 |
- virtual/cblas |
332 |
- virtual/lapack |
333 |
- sparse? ( sci-libs/umfpack:0= )" |
334 |
-DEPEND="${CDEPEND} |
335 |
- dev-lang/swig |
336 |
- >=dev-python/cython-0.22[${PYTHON_USEDEP}] |
337 |
- virtual/pkgconfig |
338 |
- doc? ( app-arch/unzip ) |
339 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
340 |
-RDEPEND="${CDEPEND} |
341 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
342 |
- |
343 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
344 |
- |
345 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
346 |
- |
347 |
-PATCHES=( |
348 |
- "${FILESDIR}"/${PN}-0.12.0-blitz.patch |
349 |
- "${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch |
350 |
-) |
351 |
- |
352 |
-src_unpack() { |
353 |
- default |
354 |
- if use doc; then |
355 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
356 |
- fi |
357 |
-} |
358 |
- |
359 |
-pc_incdir() { |
360 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
361 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
362 |
-} |
363 |
- |
364 |
-pc_libdir() { |
365 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
366 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
367 |
-} |
368 |
- |
369 |
-pc_libs() { |
370 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
371 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
372 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
373 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
374 |
-} |
375 |
- |
376 |
-python_prepare_all() { |
377 |
- # scipy automatically detects libraries by default |
378 |
- export {FFTW,FFTW3,UMFPACK}=None |
379 |
- use sparse && unset UMFPACK |
380 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
381 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
382 |
- [[ ${CHOST} == *-darwin* ]] \ |
383 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
384 |
- || append-ldflags -shared |
385 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
386 |
- # hack to force F77 to be FC until bug #278772 is fixed |
387 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
388 |
- export F90="${FC}" |
389 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
390 |
- append-fflags -fPIC |
391 |
- |
392 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
393 |
- cat >> site.cfg <<-EOF || die |
394 |
- [blas] |
395 |
- include_dirs = $(pc_incdir cblas) |
396 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
397 |
- blas_libs = $(pc_libs cblas blas) |
398 |
- [lapack] |
399 |
- library_dirs = $(pc_libdir lapack):${libdir} |
400 |
- lapack_libs = $(pc_libs lapack) |
401 |
- EOF |
402 |
- |
403 |
- # Drop hashes to force rebuild of cython based .c code |
404 |
- rm cythonize.dat || die |
405 |
- |
406 |
- distutils-r1_python_prepare_all |
407 |
-} |
408 |
- |
409 |
-python_compile() { |
410 |
- ${EPYTHON} tools/cythonize.py || die |
411 |
- distutils-r1_python_compile \ |
412 |
- "-j $(makeopts_jobs)" \ |
413 |
- ${SCIPY_FCONFIG} |
414 |
-} |
415 |
- |
416 |
-python_test() { |
417 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
418 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
419 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
420 |
- "${PYTHON}" -c \ |
421 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
422 |
- || die |
423 |
- # https://github.com/scipy/scipy/issues/5426 |
424 |
- "${EPYTHON}" -c \ |
425 |
- "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ |
426 |
- || die "Tests fail with ${EPYTHON}" |
427 |
-# "${EPYTHON}" -c \ |
428 |
-# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ |
429 |
-# || die "Tests fail with ${EPYTHON}" |
430 |
-} |
431 |
- |
432 |
-python_install_all() { |
433 |
- use doc && \ |
434 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
435 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
436 |
- distutils-r1_python_install_all |
437 |
-} |
438 |
- |
439 |
-python_install() { |
440 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
441 |
-} |
442 |
- |
443 |
-pkg_postinst() { |
444 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
445 |
- elog "to your prefered image viewer. Example:" |
446 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
447 |
-} |
448 |
|
449 |
diff --git a/sci-libs/scipy/scipy-0.19.1.ebuild b/sci-libs/scipy/scipy-0.19.1.ebuild |
450 |
deleted file mode 100644 |
451 |
index 45225e71258..00000000000 |
452 |
--- a/sci-libs/scipy/scipy-0.19.1.ebuild |
453 |
+++ /dev/null |
454 |
@@ -1,143 +0,0 @@ |
455 |
-# Copyright 1999-2019 Gentoo Authors |
456 |
-# Distributed under the terms of the GNU General Public License v2 |
457 |
- |
458 |
-EAPI=6 |
459 |
- |
460 |
-PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
461 |
-PYTHON_REQ_USE="threads(+)" |
462 |
- |
463 |
-DOC_PV=${PV} |
464 |
- |
465 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
466 |
- |
467 |
-DESCRIPTION="Scientific algorithms library for Python" |
468 |
-HOMEPAGE="https://www.scipy.org/" |
469 |
-SRC_URI=" |
470 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
471 |
- doc? ( |
472 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
473 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
474 |
- )" |
475 |
- |
476 |
-LICENSE="BSD LGPL-2" |
477 |
-SLOT="0" |
478 |
-IUSE="doc sparse test" |
479 |
-RESTRICT="!test? ( test )" |
480 |
-KEYWORDS="amd64 ~arm ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
481 |
- |
482 |
-CDEPEND=" |
483 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
484 |
- sci-libs/arpack:0= |
485 |
- virtual/cblas |
486 |
- virtual/lapack |
487 |
- sparse? ( sci-libs/umfpack:0= )" |
488 |
-DEPEND="${CDEPEND} |
489 |
- dev-lang/swig |
490 |
- >=dev-python/cython-0.22[${PYTHON_USEDEP}] |
491 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
492 |
- virtual/pkgconfig |
493 |
- doc? ( app-arch/unzip ) |
494 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] )" |
495 |
-RDEPEND="${CDEPEND} |
496 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
497 |
- |
498 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
499 |
- |
500 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
501 |
- |
502 |
-src_unpack() { |
503 |
- default |
504 |
- if use doc; then |
505 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
506 |
- fi |
507 |
-} |
508 |
- |
509 |
-pc_incdir() { |
510 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
511 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
512 |
-} |
513 |
- |
514 |
-pc_libdir() { |
515 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
516 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
517 |
-} |
518 |
- |
519 |
-pc_libs() { |
520 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
521 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
522 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
523 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
524 |
-} |
525 |
- |
526 |
-python_prepare_all() { |
527 |
- # scipy automatically detects libraries by default |
528 |
- export {FFTW,FFTW3,UMFPACK}=None |
529 |
- use sparse && unset UMFPACK |
530 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
531 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
532 |
- [[ ${CHOST} == *-darwin* ]] \ |
533 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
534 |
- || append-ldflags -shared |
535 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
536 |
- # hack to force F77 to be FC until bug #278772 is fixed |
537 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
538 |
- export F90="${FC}" |
539 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
540 |
- append-fflags -fPIC |
541 |
- |
542 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
543 |
- cat >> site.cfg <<-EOF || die |
544 |
- [blas] |
545 |
- include_dirs = $(pc_incdir cblas) |
546 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
547 |
- blas_libs = $(pc_libs cblas blas) |
548 |
- [lapack] |
549 |
- library_dirs = $(pc_libdir lapack):${libdir} |
550 |
- lapack_libs = $(pc_libs lapack) |
551 |
- EOF |
552 |
- |
553 |
- # Drop hashes to force rebuild of cython based .c code |
554 |
- rm cythonize.dat || die |
555 |
- |
556 |
- distutils-r1_python_prepare_all |
557 |
-} |
558 |
- |
559 |
-python_compile() { |
560 |
- # FIXME: parallel python building fails, bug #614464 |
561 |
- ${EPYTHON} tools/cythonize.py || die |
562 |
- distutils-r1_python_compile \ |
563 |
- ${SCIPY_FCONFIG} |
564 |
-} |
565 |
- |
566 |
-python_test() { |
567 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
568 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
569 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
570 |
- "${PYTHON}" -c \ |
571 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
572 |
- || die |
573 |
- # https://github.com/scipy/scipy/issues/5426 |
574 |
- "${EPYTHON}" -c \ |
575 |
- "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ |
576 |
- || die "Tests fail with ${EPYTHON}" |
577 |
-# "${EPYTHON}" -c \ |
578 |
-# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ |
579 |
-# || die "Tests fail with ${EPYTHON}" |
580 |
-} |
581 |
- |
582 |
-python_install_all() { |
583 |
- use doc && \ |
584 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
585 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
586 |
- distutils-r1_python_install_all |
587 |
-} |
588 |
- |
589 |
-python_install() { |
590 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
591 |
-} |
592 |
- |
593 |
-pkg_postinst() { |
594 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
595 |
- elog "to your prefered image viewer. Example:" |
596 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
597 |
-} |
598 |
|
599 |
diff --git a/sci-libs/scipy/scipy-1.0.0.ebuild b/sci-libs/scipy/scipy-1.0.0.ebuild |
600 |
deleted file mode 100644 |
601 |
index f9c24c564fd..00000000000 |
602 |
--- a/sci-libs/scipy/scipy-1.0.0.ebuild |
603 |
+++ /dev/null |
604 |
@@ -1,142 +0,0 @@ |
605 |
-# Copyright 1999-2019 Gentoo Authors |
606 |
-# Distributed under the terms of the GNU General Public License v2 |
607 |
- |
608 |
-EAPI=6 |
609 |
- |
610 |
-PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
611 |
-PYTHON_REQ_USE="threads(+)" |
612 |
- |
613 |
-DOC_PV=${PV} |
614 |
- |
615 |
-inherit fortran-2 distutils-r1 flag-o-matic multiprocessing toolchain-funcs |
616 |
- |
617 |
-DESCRIPTION="Scientific algorithms library for Python" |
618 |
-HOMEPAGE="https://www.scipy.org/" |
619 |
-SRC_URI=" |
620 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
621 |
- doc? ( |
622 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
623 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
624 |
- )" |
625 |
- |
626 |
-LICENSE="BSD LGPL-2" |
627 |
-SLOT="0" |
628 |
-IUSE="doc sparse test" |
629 |
-RESTRICT="!test? ( test )" |
630 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
631 |
- |
632 |
-CDEPEND=" |
633 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
634 |
- sci-libs/arpack:0= |
635 |
- virtual/cblas |
636 |
- virtual/lapack |
637 |
- sparse? ( sci-libs/umfpack:0= )" |
638 |
-DEPEND="${CDEPEND} |
639 |
- dev-lang/swig |
640 |
- >=dev-python/cython-0.22[${PYTHON_USEDEP}] |
641 |
- >=dev-python/setuptools-36[${PYTHON_USEDEP}] |
642 |
- virtual/pkgconfig |
643 |
- doc? ( app-arch/unzip ) |
644 |
- test? ( |
645 |
- dev-python/nose[${PYTHON_USEDEP}] |
646 |
- dev-python/pytest[${PYTHON_USEDEP}] |
647 |
- )" |
648 |
-RDEPEND="${CDEPEND} |
649 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
650 |
- |
651 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
652 |
- |
653 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
654 |
- |
655 |
-src_unpack() { |
656 |
- default |
657 |
- if use doc; then |
658 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
659 |
- fi |
660 |
-} |
661 |
- |
662 |
-pc_incdir() { |
663 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
664 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
665 |
-} |
666 |
- |
667 |
-pc_libdir() { |
668 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
669 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
670 |
-} |
671 |
- |
672 |
-pc_libs() { |
673 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
674 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
675 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
676 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
677 |
-} |
678 |
- |
679 |
-python_prepare_all() { |
680 |
- # scipy automatically detects libraries by default |
681 |
- export {FFTW,FFTW3,UMFPACK}=None |
682 |
- use sparse && unset UMFPACK |
683 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
684 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
685 |
- [[ ${CHOST} == *-darwin* ]] \ |
686 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
687 |
- || append-ldflags -shared |
688 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
689 |
- # hack to force F77 to be FC until bug #278772 is fixed |
690 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
691 |
- export F90="${FC}" |
692 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
693 |
- append-fflags -fPIC |
694 |
- |
695 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
696 |
- cat >> site.cfg <<-EOF || die |
697 |
- [blas] |
698 |
- include_dirs = $(pc_incdir cblas) |
699 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
700 |
- blas_libs = $(pc_libs cblas blas) |
701 |
- [lapack] |
702 |
- library_dirs = $(pc_libdir lapack):${libdir} |
703 |
- lapack_libs = $(pc_libs lapack) |
704 |
- EOF |
705 |
- |
706 |
- # Drop hashes to force rebuild of cython based .c code |
707 |
- rm cythonize.dat || die |
708 |
- |
709 |
- distutils-r1_python_prepare_all |
710 |
-} |
711 |
- |
712 |
-python_compile() { |
713 |
- # FIXME: parallel python building fails, bug #614464 |
714 |
- ${EPYTHON} tools/cythonize.py || die |
715 |
- distutils-r1_python_compile \ |
716 |
- ${SCIPY_FCONFIG} |
717 |
-} |
718 |
- |
719 |
-python_test() { |
720 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
721 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
722 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
723 |
- "${PYTHON}" -c \ |
724 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
725 |
- || die |
726 |
- "${EPYTHON}" -c \ |
727 |
- "import scipy, sys; r = scipy.test('fast', verbose=2); sys.exit(r)" \ |
728 |
- || die "Tests fail with ${EPYTHON}" |
729 |
-} |
730 |
- |
731 |
-python_install_all() { |
732 |
- use doc && \ |
733 |
- local DOCS=( "${DISTDIR}"/${PN}-${DOC_PV}-ref.pdf ) \ |
734 |
- local HTML_DOCS=( "${WORKDIR}"/html/. ) |
735 |
- distutils-r1_python_install_all |
736 |
-} |
737 |
- |
738 |
-python_install() { |
739 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
740 |
-} |
741 |
- |
742 |
-pkg_postinst() { |
743 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
744 |
- elog "to your prefered image viewer. Example:" |
745 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
746 |
-} |