commit: 3cbee5be144730e605f7f483a6a535b7bacbe9d2 Author: Horea Christian <horea.christ <AT> yandex <DOT> com> AuthorDate: Tue Jul 31 12:20:33 2018 +0000 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com> CommitDate: Tue Jul 31 12:20:33 2018 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=3cbee5be
sci-libs/nipy: Version bump and removed deprecated version Package-Manager: Portage-2.3.44, Repoman-2.3.10 sci-libs/nipy/nipy-0.3.0.ebuild | 35 --------------------------- sci-libs/nipy/nipy-0.4.2.ebuild | 53 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+), 35 deletions(-) diff --git a/sci-libs/nipy/nipy-0.3.0.ebuild b/sci-libs/nipy/nipy-0.3.0.ebuild deleted file mode 100644 index 7303490c9..000000000 --- a/sci-libs/nipy/nipy-0.3.0.ebuild +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python2_7 ) - -inherit distutils-r1 eutils multilib flag-o-matic - -DESCRIPTION="Neuroimaging tools for Python" -HOMEPAGE="http://nipy.org/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" -IUSE="" - -RDEPEND=" - sci-libs/scipy[${PYTHON_USEDEP}] - dev-python/sympy[${PYTHON_USEDEP}] - >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}] - dev-python/numpy[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" - -python_prepare_all() { - distutils-r1_python_prepare_all - # bug #397605 - [[ ${CHOST} == *-darwin* ]] \ - && append-ldflags -bundle "-undefined dynamic_lookup" \ - || append-ldflags -shared - - # nipy uses the horrible numpy.distutils automagic -} diff --git a/sci-libs/nipy/nipy-0.4.2.ebuild b/sci-libs/nipy/nipy-0.4.2.ebuild new file mode 100644 index 000000000..6da963822 --- /dev/null +++ b/sci-libs/nipy/nipy-0.4.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) + +inherit distutils-r1 eutils multilib flag-o-matic + +DESCRIPTION="Neuroimaging tools for Python" +HOMEPAGE="http://nipy.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +RDEPEND=" + dev-python/prov[${PYTHON_USEDEP}] + sci-libs/scipy[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + >=sci-libs/nibabel-1.2[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + " + +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + " + +python_prepare_all() { + distutils-r1_python_prepare_all + # bug #397605 + [[ ${CHOST} == *-darwin* ]] \ + && append-ldflags -bundle "-undefined dynamic_lookup" \ + || append-ldflags -shared + + # nipy uses the horrible numpy.distutils automagic +} + +python_test() { + distutils-r1_install_for_testing + cp nipy/testing/*.nii.gz "${BUILD_DIR}/lib/nipy/testing/" + cp nipy/modalities/fmri/tests/*.{mat,npz,txt} "${BUILD_DIR}/lib/nipy/modalities/fmri/tests/" + cp nipy/algorithms/statistics/models/tests/test_data.bin "${BUILD_DIR}/lib/nipy/algorithms/statistics/models/tests" + cp nipy/labs/spatial_models/tests/some_blobs.nii "${BUILD_DIR}/lib/nipy/labs/spatial_models/tests/some_blobs.nii" + mkdir "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" + cp nipy/algorithms/diagnostics/tests/data/tsdiff_results.mat "${BUILD_DIR}/lib/nipy/algorithms/diagnostics/tests/data/" + cd "${BUILD_DIR}" || die + echo "backend : agg" > matplotlibrc + nosetests || die +}