Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/scikits_learn/
Date: Tue, 26 Jan 2016 19:09:27
Message-Id: 1453835358.55af64bf12a24f3fc834c8d40abd0d745ba9f673.jlec@gentoo
1 commit: 55af64bf12a24f3fc834c8d40abd0d745ba9f673
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 26 17:01:35 2016 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 26 19:09:18 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55af64bf
7
8 sci-libs/scikits_learn: Drop old
9
10 obsoletes:
11
12 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=436750
13 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=423269
14
15 Package-Manager: portage-2.2.27
16 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
17
18 sci-libs/scikits_learn/Manifest | 5 -
19 sci-libs/scikits_learn/scikits_learn-0.13.1.ebuild | 88 ----------------
20 sci-libs/scikits_learn/scikits_learn-0.14.1.ebuild | 112 ---------------------
21 sci-libs/scikits_learn/scikits_learn-0.15.1.ebuild | 112 ---------------------
22 sci-libs/scikits_learn/scikits_learn-0.15.2.ebuild | 112 ---------------------
23 sci-libs/scikits_learn/scikits_learn-0.16.1.ebuild | 111 --------------------
24 6 files changed, 540 deletions(-)
25
26 diff --git a/sci-libs/scikits_learn/Manifest b/sci-libs/scikits_learn/Manifest
27 index f395149..2e18c12 100644
28 --- a/sci-libs/scikits_learn/Manifest
29 +++ b/sci-libs/scikits_learn/Manifest
30 @@ -1,6 +1 @@
31 -DIST scikit-learn-0.13.1.tar.gz 3477412 SHA256 a6e4759a779ba792435d096c882a0d66ee29d369755c09209f1a4e50877bdc94 SHA512 945475bf6e5600da63d26217ae6966f8f5e3a8d9c7645363ba9e9d8d4c475e2ebcfa45e75f8988537716b7a9c16980c52df4310b924eec4da9433d1fc98cc34b WHIRLPOOL 0af58429d604eb1fb22f24e155daaa67831d16d49ff414b29a150f03617be1811796d653afb0f7b4eac9f03cf318910dd9544dc3a58543a333fccd8580a59d4b
32 -DIST scikit-learn-0.14.1.tar.gz 23228378 SHA256 4c317cabb56c61f4c574879b53aa6bbea0132bb630678229bce98638f4b000e0 SHA512 4d094a698f73c458f2f8c03240fab070854bcb5871acfc4f1aaf1a6f19f28a70bc6aeadb89bf6c586d2b39b81f57175dbb7d64ac4c3693a3be1b407f78e44c52 WHIRLPOOL 39f317721f278037b779001f3cb5e117b6d9da5996df78a53440d68bc860eccbf462a1d48890246624d8e256a6301fb8195199a2ff387bb60179fb11bda9aea6
33 -DIST scikit-learn-0.15.1.tar.gz 7034220 SHA256 4b13456727b9310857f12cc7b9d1c62d59f3ef602fea9d391afc0c8c847ed17d SHA512 4c2e68b1bb75c85c2a83605a32ba5adbd224bc25b19fca85e18dbe24f20cbe51cbfb02be546a4f05fc190f77e438cb17c6a5d69026455e8c11907599462f9984 WHIRLPOOL e1bc387b013abcab18d8ee0545dda543bb098b9d7636229880dea667fc4627d1822fe8a430a2d26dbafcc0b0e90326d5529245e6eff1345b73fc5a24b7a51096
34 -DIST scikit-learn-0.15.2.tar.gz 7007922 SHA256 1a8a881f6f13edc0ac58931ce21f899eb7920af50aa08802413d1239e2aa5fa6 SHA512 ca2470df73be1b735f756f641fdbb4dc59a54b67d12f61c54542f0928ce9242665d1b8793673a9d989a41f2c2945c2ba92ed54fc9914fbe030a5c8af289c6523 WHIRLPOOL 9043bf653f8d866f98e5a2342fbacf51fafefd5096e70989ebeb4b580c38b5468c3a2eb598d4d5492ba1413378b8c133938baa20d4a292c9f94c5596dbf1d405
35 -DIST scikit-learn-0.16.1.tar.gz 7267115 SHA256 c0721e295056c95c7002e05726f2bd271a7923e88bdeab34a2b60aac2b0ee6e4 SHA512 18ea7420a4a7f23f030ad1e20cf29dd7d6183872ed4aa3daf4bfb5106728de21775461b90a917f231e56fee78eea5927ff8c3160c1da1473f34315b00994461b WHIRLPOOL 15eba05ba0d9ac62ed30636ece9091cb9930e432e5726b67be3de0ae5b81a187eac8cac69184106b4a5a1c4393801fb6a375b6f025c3562223ad5ed0e508ad8c
36 DIST scikit-learn-0.17.tar.gz 7834903 SHA256 23a5b6804524cb2cd54d8310010169511c7633dcf69af7439747eec02677f314 SHA512 53a76e2f90e27967bf216cd9d7e8051ed847a3381e3b7b7b8236511b4105eef41bd4d3c9f7f71a51db4b0bf99cbd571d7c1b26803757cff04424b70cb834b555 WHIRLPOOL 3a1ef13dafe6eb38389f68bc75dee10bfe141bac6d2782cd11be27ffcb8fe7efdf113b6911a238c6cd141bfe3b69960f47cf0725d0ea033129dff8fb5c57bef4
37
38 diff --git a/sci-libs/scikits_learn/scikits_learn-0.13.1.ebuild b/sci-libs/scikits_learn/scikits_learn-0.13.1.ebuild
39 deleted file mode 100644
40 index 0554e1c..0000000
41 --- a/sci-libs/scikits_learn/scikits_learn-0.13.1.ebuild
42 +++ /dev/null
43 @@ -1,88 +0,0 @@
44 -# Copyright 1999-2015 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -# $Id$
47 -
48 -EAPI=5
49 -
50 -PYTHON_COMPAT=( python2_7 )
51 -
52 -inherit distutils-r1 multilib flag-o-matic
53 -
54 -MYPN="${PN/scikits_/scikit-}"
55 -
56 -DESCRIPTION="Python modules for machine learning and data mining"
57 -HOMEPAGE="http://scikit-learn.org"
58 -SRC_URI="mirror://sourceforge/${MYPN}/${MYPN}-${PV}.tar.gz"
59 -
60 -LICENSE="BSD"
61 -SLOT="0"
62 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
63 -IUSE="doc examples"
64 -
65 -RDEPEND="
66 - sci-libs/scikits[${PYTHON_USEDEP}]
67 - sci-libs/scipy[${PYTHON_USEDEP}]
68 - dev-python/matplotlib[${PYTHON_USEDEP}]"
69 -DEPEND="
70 - dev-python/cython[${PYTHON_USEDEP}]
71 - dev-python/setuptools[${PYTHON_USEDEP}]
72 - sci-libs/scipy[${PYTHON_USEDEP}]
73 - doc? (
74 - dev-python/sphinx[${PYTHON_USEDEP}]
75 - dev-python/matplotlib[${PYTHON_USEDEP}] )"
76 -
77 -S="${WORKDIR}/${MYPN}-${PV}"
78 -
79 -python_prepare_all() {
80 - # bug #397605
81 - [[ ${CHOST} == *-darwin* ]] \
82 - && append-ldflags -bundle "-undefined dynamic_lookup" \
83 - || append-ldflags -shared
84 -
85 - # scikits-learn now uses the horrible numpy.distutils automagic
86 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
87 - distutils-r1_python_prepare_all
88 -}
89 -
90 -python_compile() {
91 - distutils-r1_python_compile ${SCIPY_FCONFIG}
92 -}
93 -
94 -python_compile_all() {
95 - if use doc; then
96 - cd "${S}/doc"
97 - local d="${BUILD_DIR}"/lib
98 - ln -s "${S}"/sklearn/datasets/{data,descr,images} \
99 - "${d}"/sklearn/datasets
100 - VARTEXFONTS="${T}"/fonts \
101 - MPLCONFIGDIR="${BUILD_DIR}" \
102 - PYTHONPATH="${d}" \
103 - emake html
104 - rm -r "${d}"/sklearn/datasets/{data,desr,images}
105 - fi
106 -}
107 -
108 -python_test() {
109 - # doc builds and runs tests
110 - use doc && return
111 - esetup.py \
112 - install --root="${T}/test-${EPYTHON}" \
113 - --no-compile ${SCIPY_FCONFIG}
114 - pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null
115 - nosetests -v sklearn --exe || die
116 - popd > /dev/null
117 -}
118 -
119 -python_install() {
120 - distutils-r1_python_install ${SCIPY_FCONFIG}
121 -}
122 -
123 -python_install_all() {
124 - find "${S}" -name \*LICENSE.txt -delete
125 - use doc && HTML_DOCS=( doc/_build/html/. )
126 - distutils-r1_python_install_all
127 - if use examples; then
128 - insinto /usr/share/doc/${PF}
129 - doins -r examples
130 - fi
131 -}
132
133 diff --git a/sci-libs/scikits_learn/scikits_learn-0.14.1.ebuild b/sci-libs/scikits_learn/scikits_learn-0.14.1.ebuild
134 deleted file mode 100644
135 index 0b2c983..0000000
136 --- a/sci-libs/scikits_learn/scikits_learn-0.14.1.ebuild
137 +++ /dev/null
138 @@ -1,112 +0,0 @@
139 -# Copyright 1999-2016 Gentoo Foundation
140 -# Distributed under the terms of the GNU General Public License v2
141 -# $Id$
142 -
143 -EAPI=5
144 -
145 -PYTHON_COMPAT=( python{2_7,3_3} )
146 -
147 -inherit distutils-r1 eutils multilib flag-o-matic
148 -
149 -MYPN="${PN/scikits_/scikit-}"
150 -MYP="${MYPN}-${PV}"
151 -
152 -DESCRIPTION="Python modules for machine learning and data mining"
153 -HOMEPAGE="http://scikit-learn.org"
154 -SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
155 -
156 -LICENSE="BSD"
157 -SLOT="0"
158 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
159 -IUSE="doc examples test"
160 -
161 -RDEPEND="
162 - dev-python/joblib[${PYTHON_USEDEP}]
163 - sci-libs/scikits[${PYTHON_USEDEP}]
164 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
165 - sci-libs/scipy[${PYTHON_USEDEP}]
166 - dev-python/matplotlib[${PYTHON_USEDEP}]
167 - virtual/blas
168 - virtual/cblas"
169 -DEPEND="
170 - dev-python/cython[${PYTHON_USEDEP}]
171 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
172 - dev-python/setuptools[${PYTHON_USEDEP}]
173 - sci-libs/scipy[${PYTHON_USEDEP}]
174 - virtual/blas
175 - virtual/cblas
176 - doc? (
177 - dev-python/sphinx[${PYTHON_USEDEP}]
178 - dev-python/matplotlib[${PYTHON_USEDEP}] )
179 - test? (
180 - dev-python/joblib[${PYTHON_USEDEP}]
181 - dev-python/nose[${PYTHON_USEDEP}] )"
182 -
183 -S="${WORKDIR}/${MYP}"
184 -
185 -python_prepare_all() {
186 - # bug #397605
187 - [[ ${CHOST} == *-darwin* ]] \
188 - && append-ldflags -bundle "-undefined dynamic_lookup" \
189 - || append-ldflags -shared
190 -
191 - # scikits-learn now uses the horrible numpy.distutils automagic
192 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
193 -
194 - # use system joblib
195 - rm -r sklearn/externals/joblib/* || die
196 - echo "from joblib import *" > sklearn/externals/joblib/__init__.py
197 - sed -i -e '/joblib\/test/d' sklearn/externals/setup.py || die
198 - sed -i -e 's/..externals.joblib/joblib/g' \
199 - sklearn/decomposition/tests/test_sparse_pca.py \
200 - sklearn/metrics/pairwise.py || die
201 -
202 - # use gentoo cblas infrastructure
203 - epatch "${FILESDIR}"/${P}-system-cblas.patch
204 -
205 - distutils-r1_python_prepare_all
206 -}
207 -
208 -python_compile() {
209 - distutils-r1_python_compile ${SCIPY_FCONFIG}
210 -}
211 -
212 -python_compile_all() {
213 - if use doc; then
214 - cd "${S}/doc" || die
215 - local d="${BUILD_DIR}"/lib
216 - ln -s "${S}"/sklearn/datasets/{data,descr,images} \
217 - "${d}"/sklearn/datasets || die
218 - VARTEXFONTS="${T}"/fonts \
219 - MPLCONFIGDIR="${BUILD_DIR}" \
220 - PYTHONPATH="${d}" \
221 - emake html
222 - rm -r "${d}"/sklearn/datasets/{data,desr,images} || die
223 - fi
224 -}
225 -
226 -python_test() {
227 - # doc builds and runs tests
228 - use doc && return
229 - distutils_install_for_testing ${SCIPY_FCONFIG}
230 - esetup.py \
231 - install --root="${T}/test-${EPYTHON}" \
232 - --no-compile ${SCIPY_FCONFIG}
233 - pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null
234 - nosetests -v sklearn --exe || die
235 - popd > /dev/null
236 -}
237 -
238 -python_install() {
239 - distutils-r1_python_install ${SCIPY_FCONFIG}
240 -}
241 -
242 -python_install_all() {
243 - find "${S}" -name \*LICENSE.txt -delete
244 - use doc && HTML_DOCS=( doc/_build/html/. )
245 - distutils-r1_python_install_all
246 - if use examples; then
247 - insinto /usr/share/doc/${PF}
248 - doins -r examples
249 - fi
250 -}
251
252 diff --git a/sci-libs/scikits_learn/scikits_learn-0.15.1.ebuild b/sci-libs/scikits_learn/scikits_learn-0.15.1.ebuild
253 deleted file mode 100644
254 index c50ed8a..0000000
255 --- a/sci-libs/scikits_learn/scikits_learn-0.15.1.ebuild
256 +++ /dev/null
257 @@ -1,112 +0,0 @@
258 -# Copyright 1999-2016 Gentoo Foundation
259 -# Distributed under the terms of the GNU General Public License v2
260 -# $Id$
261 -
262 -EAPI=5
263 -
264 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
265 -
266 -inherit distutils-r1 eutils multilib flag-o-matic
267 -
268 -MYPN="${PN/scikits_/scikit-}"
269 -MYP="${MYPN}-${PV}"
270 -
271 -DESCRIPTION="Python modules for machine learning and data mining"
272 -HOMEPAGE="http://scikit-learn.org"
273 -SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
274 -
275 -LICENSE="BSD"
276 -SLOT="0"
277 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
278 -IUSE="doc examples test"
279 -
280 -RDEPEND="
281 - dev-python/joblib[${PYTHON_USEDEP}]
282 - dev-python/matplotlib[${PYTHON_USEDEP}]
283 - dev-python/nose[${PYTHON_USEDEP}]
284 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
285 - sci-libs/scikits[${PYTHON_USEDEP}]
286 - sci-libs/scipy[${PYTHON_USEDEP}]
287 - virtual/blas
288 - virtual/cblas"
289 -DEPEND="
290 - dev-python/cython[${PYTHON_USEDEP}]
291 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
292 - dev-python/setuptools[${PYTHON_USEDEP}]
293 - sci-libs/scipy[${PYTHON_USEDEP}]
294 - virtual/blas
295 - virtual/cblas
296 - doc? (
297 - dev-python/joblib[${PYTHON_USEDEP}]
298 - dev-python/matplotlib[${PYTHON_USEDEP}]
299 - dev-python/sphinx[${PYTHON_USEDEP}]
300 - )"
301 -
302 -S="${WORKDIR}/${MYP}"
303 -
304 -python_prepare_all() {
305 - # bug #397605
306 - [[ ${CHOST} == *-darwin* ]] \
307 - && append-ldflags -bundle "-undefined dynamic_lookup" \
308 - || append-ldflags -shared
309 -
310 - # scikits-learn now uses the horrible numpy.distutils automagic
311 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
312 -
313 - # use system joblib
314 - rm -r sklearn/externals/joblib/* || die
315 - echo "from joblib import *" > sklearn/externals/joblib/__init__.py
316 - sed -i -e '/joblib\/test/d' sklearn/externals/setup.py || die
317 - sed -i -e 's/..externals.joblib/joblib/g' \
318 - sklearn/decomposition/tests/test_sparse_pca.py \
319 - sklearn/metrics/pairwise.py || die
320 -
321 - # use gentoo cblas infrastructure
322 - epatch "${FILESDIR}"/${PN}-0.14.1-system-cblas.patch
323 -
324 - distutils-r1_python_prepare_all
325 -}
326 -
327 -python_compile() {
328 - distutils-r1_python_compile ${SCIPY_FCONFIG}
329 -}
330 -
331 -python_compile_all() {
332 - if use doc; then
333 - cd "${S}/doc" || die
334 - local d="${BUILD_DIR}"/lib
335 - ln -s "${S}"/sklearn/datasets/{data,descr,images} \
336 - "${d}"/sklearn/datasets || die
337 - VARTEXFONTS="${T}"/fonts \
338 - MPLCONFIGDIR="${BUILD_DIR}" \
339 - PYTHONPATH="${d}" \
340 - emake html
341 - rm -r "${d}"/sklearn/datasets/{data,desr,images} || die
342 - fi
343 -}
344 -
345 -python_test() {
346 - # doc builds and runs tests
347 - use doc && return
348 - distutils_install_for_testing ${SCIPY_FCONFIG}
349 - esetup.py \
350 - install --root="${T}/test-${EPYTHON}" \
351 - --no-compile ${SCIPY_FCONFIG}
352 - pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null
353 - nosetests -v sklearn --exe || die
354 - popd > /dev/null
355 -}
356 -
357 -python_install() {
358 - distutils-r1_python_install ${SCIPY_FCONFIG}
359 -}
360 -
361 -python_install_all() {
362 - find "${S}" -name \*LICENSE.txt -delete
363 - use doc && HTML_DOCS=( doc/_build/html/. )
364 - distutils-r1_python_install_all
365 - if use examples; then
366 - insinto /usr/share/doc/${PF}
367 - doins -r examples
368 - fi
369 -}
370
371 diff --git a/sci-libs/scikits_learn/scikits_learn-0.15.2.ebuild b/sci-libs/scikits_learn/scikits_learn-0.15.2.ebuild
372 deleted file mode 100644
373 index c50ed8a..0000000
374 --- a/sci-libs/scikits_learn/scikits_learn-0.15.2.ebuild
375 +++ /dev/null
376 @@ -1,112 +0,0 @@
377 -# Copyright 1999-2016 Gentoo Foundation
378 -# Distributed under the terms of the GNU General Public License v2
379 -# $Id$
380 -
381 -EAPI=5
382 -
383 -PYTHON_COMPAT=( python{2_7,3_3,3_4} )
384 -
385 -inherit distutils-r1 eutils multilib flag-o-matic
386 -
387 -MYPN="${PN/scikits_/scikit-}"
388 -MYP="${MYPN}-${PV}"
389 -
390 -DESCRIPTION="Python modules for machine learning and data mining"
391 -HOMEPAGE="http://scikit-learn.org"
392 -SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
393 -
394 -LICENSE="BSD"
395 -SLOT="0"
396 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
397 -IUSE="doc examples test"
398 -
399 -RDEPEND="
400 - dev-python/joblib[${PYTHON_USEDEP}]
401 - dev-python/matplotlib[${PYTHON_USEDEP}]
402 - dev-python/nose[${PYTHON_USEDEP}]
403 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
404 - sci-libs/scikits[${PYTHON_USEDEP}]
405 - sci-libs/scipy[${PYTHON_USEDEP}]
406 - virtual/blas
407 - virtual/cblas"
408 -DEPEND="
409 - dev-python/cython[${PYTHON_USEDEP}]
410 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
411 - dev-python/setuptools[${PYTHON_USEDEP}]
412 - sci-libs/scipy[${PYTHON_USEDEP}]
413 - virtual/blas
414 - virtual/cblas
415 - doc? (
416 - dev-python/joblib[${PYTHON_USEDEP}]
417 - dev-python/matplotlib[${PYTHON_USEDEP}]
418 - dev-python/sphinx[${PYTHON_USEDEP}]
419 - )"
420 -
421 -S="${WORKDIR}/${MYP}"
422 -
423 -python_prepare_all() {
424 - # bug #397605
425 - [[ ${CHOST} == *-darwin* ]] \
426 - && append-ldflags -bundle "-undefined dynamic_lookup" \
427 - || append-ldflags -shared
428 -
429 - # scikits-learn now uses the horrible numpy.distutils automagic
430 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
431 -
432 - # use system joblib
433 - rm -r sklearn/externals/joblib/* || die
434 - echo "from joblib import *" > sklearn/externals/joblib/__init__.py
435 - sed -i -e '/joblib\/test/d' sklearn/externals/setup.py || die
436 - sed -i -e 's/..externals.joblib/joblib/g' \
437 - sklearn/decomposition/tests/test_sparse_pca.py \
438 - sklearn/metrics/pairwise.py || die
439 -
440 - # use gentoo cblas infrastructure
441 - epatch "${FILESDIR}"/${PN}-0.14.1-system-cblas.patch
442 -
443 - distutils-r1_python_prepare_all
444 -}
445 -
446 -python_compile() {
447 - distutils-r1_python_compile ${SCIPY_FCONFIG}
448 -}
449 -
450 -python_compile_all() {
451 - if use doc; then
452 - cd "${S}/doc" || die
453 - local d="${BUILD_DIR}"/lib
454 - ln -s "${S}"/sklearn/datasets/{data,descr,images} \
455 - "${d}"/sklearn/datasets || die
456 - VARTEXFONTS="${T}"/fonts \
457 - MPLCONFIGDIR="${BUILD_DIR}" \
458 - PYTHONPATH="${d}" \
459 - emake html
460 - rm -r "${d}"/sklearn/datasets/{data,desr,images} || die
461 - fi
462 -}
463 -
464 -python_test() {
465 - # doc builds and runs tests
466 - use doc && return
467 - distutils_install_for_testing ${SCIPY_FCONFIG}
468 - esetup.py \
469 - install --root="${T}/test-${EPYTHON}" \
470 - --no-compile ${SCIPY_FCONFIG}
471 - pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null
472 - nosetests -v sklearn --exe || die
473 - popd > /dev/null
474 -}
475 -
476 -python_install() {
477 - distutils-r1_python_install ${SCIPY_FCONFIG}
478 -}
479 -
480 -python_install_all() {
481 - find "${S}" -name \*LICENSE.txt -delete
482 - use doc && HTML_DOCS=( doc/_build/html/. )
483 - distutils-r1_python_install_all
484 - if use examples; then
485 - insinto /usr/share/doc/${PF}
486 - doins -r examples
487 - fi
488 -}
489
490 diff --git a/sci-libs/scikits_learn/scikits_learn-0.16.1.ebuild b/sci-libs/scikits_learn/scikits_learn-0.16.1.ebuild
491 deleted file mode 100644
492 index 46432a1..0000000
493 --- a/sci-libs/scikits_learn/scikits_learn-0.16.1.ebuild
494 +++ /dev/null
495 @@ -1,111 +0,0 @@
496 -# Copyright 1999-2016 Gentoo Foundation
497 -# Distributed under the terms of the GNU General Public License v2
498 -# $Id$
499 -
500 -EAPI=5
501 -
502 -PYTHON_COMPAT=( python2_7 python3_{3,4} )
503 -
504 -inherit distutils-r1 eutils multilib flag-o-matic
505 -
506 -MYPN="${PN/scikits_/scikit-}"
507 -MYP="${MYPN}-${PV}"
508 -
509 -DESCRIPTION="Python modules for machine learning and data mining"
510 -HOMEPAGE="http://scikit-learn.org"
511 -SRC_URI="mirror://pypi/${MYPN:0:1}/${MYPN}/${MYP}.tar.gz"
512 -
513 -LICENSE="BSD"
514 -SLOT="0"
515 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
516 -IUSE="doc examples test"
517 -
518 -RDEPEND="
519 - dev-python/joblib[${PYTHON_USEDEP}]
520 - dev-python/matplotlib[${PYTHON_USEDEP}]
521 - dev-python/nose[${PYTHON_USEDEP}]
522 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
523 - sci-libs/scikits[${PYTHON_USEDEP}]
524 - sci-libs/scipy[${PYTHON_USEDEP}]
525 - virtual/blas
526 - virtual/cblas"
527 -DEPEND="
528 - dev-python/cython[${PYTHON_USEDEP}]
529 - dev-python/numpy[lapack,${PYTHON_USEDEP}]
530 - dev-python/setuptools[${PYTHON_USEDEP}]
531 - sci-libs/scipy[${PYTHON_USEDEP}]
532 - virtual/cblas
533 - doc? (
534 - dev-python/joblib[${PYTHON_USEDEP}]
535 - dev-python/matplotlib[${PYTHON_USEDEP}]
536 - dev-python/sphinx[${PYTHON_USEDEP}]
537 - )"
538 -
539 -S="${WORKDIR}/${MYP}"
540 -
541 -python_prepare_all() {
542 - # bug #397605
543 - [[ ${CHOST} == *-darwin* ]] \
544 - && append-ldflags -bundle "-undefined dynamic_lookup" \
545 - || append-ldflags -shared
546 -
547 - # scikits-learn now uses the horrible numpy.distutils automagic
548 - export SCIPY_FCONFIG="config_fc --noopt --noarch"
549 -
550 - # use system joblib
551 - rm -r sklearn/externals/joblib/* || die
552 - echo "from joblib import *" > sklearn/externals/joblib/__init__.py
553 - sed -i -e '/joblib\/test/d' sklearn/externals/setup.py || die
554 - sed -i -e 's/..externals.joblib/joblib/g' \
555 - sklearn/decomposition/tests/test_sparse_pca.py \
556 - sklearn/metrics/pairwise.py || die
557 -
558 - # use gentoo cblas infrastructure
559 - epatch "${FILESDIR}"/${PN}-0.14.1-system-cblas.patch
560 -
561 - distutils-r1_python_prepare_all
562 -}
563 -
564 -python_compile() {
565 - distutils-r1_python_compile ${SCIPY_FCONFIG}
566 -}
567 -
568 -python_compile_all() {
569 - if use doc; then
570 - cd "${S}/doc" || die
571 - local d="${BUILD_DIR}"/lib
572 - ln -s "${S}"/sklearn/datasets/{data,descr,images} \
573 - "${d}"/sklearn/datasets
574 - VARTEXFONTS="${T}"/fonts \
575 - MPLCONFIGDIR="${BUILD_DIR}" \
576 - PYTHONPATH="${d}" \
577 - emake html
578 - rm -r "${d}"/sklearn/datasets/{data,desr,images} || die
579 - fi
580 -}
581 -
582 -python_test() {
583 - # doc builds and runs tests
584 - use doc && return
585 - distutils_install_for_testing ${SCIPY_FCONFIG}
586 - esetup.py \
587 - install --root="${T}/test-${EPYTHON}" \
588 - --no-compile ${SCIPY_FCONFIG}
589 - pushd "${T}/test-${EPYTHON}/$(python_get_sitedir)" || die > /dev/null
590 - nosetests -v sklearn --exe || die
591 - popd > /dev/null
592 -}
593 -
594 -python_install() {
595 - distutils-r1_python_install ${SCIPY_FCONFIG}
596 -}
597 -
598 -python_install_all() {
599 - find "${S}" -name \*LICENSE.txt -delete
600 - use doc && HTML_DOCS=( doc/_build/html/. )
601 - distutils-r1_python_install_all
602 - if use examples; then
603 - insinto /usr/share/doc/${PF}
604 - doins -r examples
605 - fi
606 -}