Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/nipy/
Date: Tue, 31 Jul 2018 12:20:53
Message-Id: 1533039633.3cbee5be144730e605f7f483a6a535b7bacbe9d2.chymera@gentoo
1 commit: 3cbee5be144730e605f7f483a6a535b7bacbe9d2
2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com>
3 AuthorDate: Tue Jul 31 12:20:33 2018 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Tue Jul 31 12:20:33 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3cbee5be
7
8 sci-libs/nipy: Version bump and removed deprecated version
9
10 Package-Manager: Portage-2.3.44, Repoman-2.3.10
11
12 sci-libs/nipy/nipy-0.3.0.ebuild | 35 ---------------------------
13 sci-libs/nipy/nipy-0.4.2.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+), 35 deletions(-)
15
16 diff --git a/sci-libs/nipy/nipy-0.3.0.ebuild b/sci-libs/nipy/nipy-0.3.0.ebuild
17 deleted file mode 100644
18 index 7303490c9..000000000
19 --- a/sci-libs/nipy/nipy-0.3.0.ebuild
20 +++ /dev/null
21 @@ -1,35 +0,0 @@
22 -# Copyright 1999-2015 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=5
26 -
27 -PYTHON_COMPAT=( python2_7 )
28 -
29 -inherit distutils-r1 eutils multilib flag-o-matic
30 -
31 -DESCRIPTION="Neuroimaging tools for Python"
32 -HOMEPAGE="http://nipy.org/"
33 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
34 -
35 -LICENSE="BSD"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38 -IUSE=""
39 -
40 -RDEPEND="
41 - sci-libs/scipy[${PYTHON_USEDEP}]
42 - dev-python/sympy[${PYTHON_USEDEP}]
43 - >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}]
44 - dev-python/numpy[${PYTHON_USEDEP}]"
45 -DEPEND="${RDEPEND}
46 - dev-python/setuptools[${PYTHON_USEDEP}]"
47 -
48 -python_prepare_all() {
49 - distutils-r1_python_prepare_all
50 - # bug #397605
51 - [[ ${CHOST} == *-darwin* ]] \
52 - && append-ldflags -bundle "-undefined dynamic_lookup" \
53 - || append-ldflags -shared
54 -
55 - # nipy uses the horrible numpy.distutils automagic
56 -}
57
58 diff --git a/sci-libs/nipy/nipy-0.4.2.ebuild b/sci-libs/nipy/nipy-0.4.2.ebuild
59 new file mode 100644
60 index 000000000..6da963822
61 --- /dev/null
62 +++ b/sci-libs/nipy/nipy-0.4.2.ebuild
63 @@ -0,0 +1,53 @@
64 +# Copyright 1999-2018 Gentoo Foundation
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=7
68 +
69 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
70 +
71 +inherit distutils-r1 eutils multilib flag-o-matic
72 +
73 +DESCRIPTION="Neuroimaging tools for Python"
74 +HOMEPAGE="http://nipy.org/"
75 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
76 +
77 +LICENSE="BSD"
78 +SLOT="0"
79 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
80 +IUSE=""
81 +
82 +RDEPEND="
83 + dev-python/prov[${PYTHON_USEDEP}]
84 + sci-libs/scipy[${PYTHON_USEDEP}]
85 + dev-python/sympy[${PYTHON_USEDEP}]
86 + >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}]
87 + dev-python/numpy[${PYTHON_USEDEP}]
88 + "
89 +
90 +DEPEND="
91 + ${RDEPEND}
92 + dev-python/setuptools[${PYTHON_USEDEP}]
93 + "
94 +
95 +python_prepare_all() {
96 + distutils-r1_python_prepare_all
97 + # bug #397605
98 + [[ ${CHOST} == *-darwin* ]] \
99 + && append-ldflags -bundle "-undefined dynamic_lookup" \
100 + || append-ldflags -shared
101 +
102 + # nipy uses the horrible numpy.distutils automagic
103 +}
104 +
105 +python_test() {
106 + distutils-r1_install_for_testing
107 + cp nipy/testing/*.nii.gz "${BUILD_DIR}/lib/nipy/testing/"
108 + cp nipy/modalities/fmri/tests/*.{mat,npz,txt} "${BUILD_DIR}/lib/nipy/modalities/fmri/tests/"
109 + cp nipy/algorithms/statistics/models/tests/test_data.bin "${BUILD_DIR}/lib/nipy/algorithms/statistics/models/tests"
110 + cp nipy/labs/spatial_models/tests/some_blobs.nii "${BUILD_DIR}/lib/nipy/labs/spatial_models/tests/some_blobs.nii"
111 + mkdir "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/"
112 + cp nipy/algorithms/diagnostics/tests/data/tsdiff_results.mat "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/"
113 + cd "${BUILD_DIR}" || die
114 + echo "backend : agg" > matplotlibrc
115 + nosetests || die
116 +}