1 |
commit: 760cd9532e1ec83eb8bf0193536fc57c9f3e873a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jun 5 10:54:43 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jun 5 10:55:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=760cd953 |
7 |
|
8 |
sci-libs/scipy: Remove unmaintained live ebuild |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
sci-libs/scipy/scipy-9999.ebuild | 126 --------------------------------------- |
13 |
1 file changed, 126 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/scipy/scipy-9999.ebuild b/sci-libs/scipy/scipy-9999.ebuild |
16 |
deleted file mode 100644 |
17 |
index 574e0220962..00000000000 |
18 |
--- a/sci-libs/scipy/scipy-9999.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,126 +0,0 @@ |
21 |
-# Copyright 1999-2020 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
- |
26 |
-PYTHON_COMPAT=( python2_7 python3_{6,7} ) |
27 |
-PYTHON_REQ_USE="threads(+)" |
28 |
- |
29 |
-DOC_PV=${PV} |
30 |
- |
31 |
-inherit fortran-2 distutils-r1 flag-o-matic git-r3 multiprocessing toolchain-funcs |
32 |
- |
33 |
-DESCRIPTION="Scientific algorithms library for Python" |
34 |
-HOMEPAGE="https://www.scipy.org/" |
35 |
-EGIT_REPO_URI="https://github.com/scipy/scipy.git" |
36 |
- |
37 |
-LICENSE="BSD LGPL-2" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="" |
40 |
-IUSE="sparse test" |
41 |
-RESTRICT="!test? ( test )" |
42 |
- |
43 |
-CDEPEND=" |
44 |
- >=dev-python/numpy-1.10[lapack,${PYTHON_USEDEP}] |
45 |
- sci-libs/arpack:0= |
46 |
- virtual/cblas |
47 |
- virtual/lapack |
48 |
- sparse? ( sci-libs/umfpack:0= )" |
49 |
-DEPEND="${CDEPEND} |
50 |
- dev-lang/swig |
51 |
- >=dev-python/cython-0.23.4[${PYTHON_USEDEP}] |
52 |
- virtual/pkgconfig |
53 |
- test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
54 |
- " |
55 |
- |
56 |
-RDEPEND="${CDEPEND} |
57 |
- dev-python/pillow[${PYTHON_USEDEP}]" |
58 |
- |
59 |
-DOCS=( HACKING.rst.txt THANKS.txt ) |
60 |
- |
61 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
62 |
- |
63 |
-pc_incdir() { |
64 |
- $(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
65 |
- sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
66 |
-} |
67 |
- |
68 |
-pc_libdir() { |
69 |
- $(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
70 |
- sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
71 |
-} |
72 |
- |
73 |
-pc_libs() { |
74 |
- $(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
75 |
- sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
76 |
- -e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
77 |
- | tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
78 |
-} |
79 |
- |
80 |
-python_prepare_all() { |
81 |
- # scipy automatically detects libraries by default |
82 |
- export {FFTW,FFTW3,UMFPACK}=None |
83 |
- use sparse && unset UMFPACK |
84 |
- # the missing symbols are in -lpythonX.Y, but since the version can |
85 |
- # differ, we just introduce the same scaryness as on Linux/ELF |
86 |
- [[ ${CHOST} == *-darwin* ]] \ |
87 |
- && append-ldflags -bundle "-undefined dynamic_lookup" \ |
88 |
- || append-ldflags -shared |
89 |
- [[ -z ${FC} ]] && export FC="$(tc-getFC)" |
90 |
- # hack to force F77 to be FC until bug #278772 is fixed |
91 |
- [[ -z ${F77} ]] && export F77="$(tc-getFC)" |
92 |
- export F90="${FC}" |
93 |
- export SCIPY_FCONFIG="config_fc --noopt --noarch" |
94 |
- append-fflags -fPIC |
95 |
- |
96 |
- local libdir="${EPREFIX}"/usr/$(get_libdir) |
97 |
- cat >> site.cfg <<-EOF || die |
98 |
- [blas] |
99 |
- include_dirs = $(pc_incdir cblas) |
100 |
- library_dirs = $(pc_libdir cblas blas):${libdir} |
101 |
- blas_libs = $(pc_libs cblas blas) |
102 |
- [lapack] |
103 |
- library_dirs = $(pc_libdir lapack):${libdir} |
104 |
- lapack_libs = $(pc_libs lapack) |
105 |
- EOF |
106 |
- |
107 |
- # Drop hashes to force rebuild of cython based .c code |
108 |
- rm cythonize.dat || die |
109 |
- |
110 |
- distutils-r1_python_prepare_all |
111 |
-} |
112 |
- |
113 |
-python_compile() { |
114 |
- ${EPYTHON} tools/cythonize.py || die |
115 |
- distutils-r1_python_compile \ |
116 |
- "-j $(makeopts_jobs)" \ |
117 |
- ${SCIPY_FCONFIG} |
118 |
-} |
119 |
- |
120 |
-python_test() { |
121 |
- # fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
122 |
- distutils_install_for_testing ${SCIPY_FCONFIG} |
123 |
- cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
124 |
- einfo "Run test I" |
125 |
- "${PYTHON}" -c \ |
126 |
- 'import numpy as np; print("relaxed strides checking:", np.ones((10,1),order="C").flags.f_contiguous)' \ |
127 |
- || die |
128 |
- einfo "Run test II" |
129 |
- # https://github.com/scipy/scipy/issues/5426 |
130 |
- "${EPYTHON}" -c \ |
131 |
- "import scipy, sys; r = scipy.test('fast', verbose=2, raise_warnings='release'); sys.exit(0 if r.wasSuccessful() else 1)" \ |
132 |
- || die "Tests fail with ${EPYTHON}" |
133 |
-# "${EPYTHON}" -c \ |
134 |
-# "import scipy, sys; r = scipy.test('fast',verbose=2); sys.exit(0 if r.wasSuccessful() else 1)" \ |
135 |
-# || die "Tests fail with ${EPYTHON}" |
136 |
-} |
137 |
- |
138 |
-python_install() { |
139 |
- distutils-r1_python_install ${SCIPY_FCONFIG} |
140 |
-} |
141 |
- |
142 |
-pkg_postinst() { |
143 |
- elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
144 |
- elog "to your prefered image viewer. Example:" |
145 |
- elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
146 |
-} |