commit: 0c30e019f37c1039c111ad5f28c0480fc2356e38 Author: Justin Lecher <jlec <AT> gentoo <DOT> org> AuthorDate: Thu Oct 22 06:50:53 2015 +0000 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> CommitDate: Thu Oct 22 08:31:52 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c30e019
dev-python/pyfits: Correctly block astropy Add missing die Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=537250 Package-Manager: portage-2.2.23 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> dev-python/pyfits/pyfits-3.3.ebuild | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/dev-python/pyfits/pyfits-3.3.ebuild b/dev-python/pyfits/pyfits-3.3.ebuild index 5d014f3..a7e69f4 100644 --- a/dev-python/pyfits/pyfits-3.3.ebuild +++ b/dev-python/pyfits/pyfits-3.3.ebuild @@ -4,7 +4,7 @@ EAPI=5 -PYTHON_COMPAT=( python{2_7,3_3,3_4} ) +PYTHON_COMPAT=( python2_7 python3_{3,4} ) inherit distutils-r1 eutils multilib DESCRIPTION="Provides an interface to FITS formatted files under python" @@ -18,7 +18,7 @@ IUSE="doc test" RDEPEND=" dev-python/numpy[${PYTHON_USEDEP}] - !<dev-python/astropy-0.3 + !dev-python/astropy sci-libs/cfitsio:0=" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] @@ -26,7 +26,7 @@ DEPEND="${RDEPEND} >=dev-python/stsci-distutils-0.3[${PYTHON_USEDEP}] doc? ( dev-python/matplotlib[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' python2_7 'python{3_3,3_4}') + $(python_gen_cond_dep 'dev-python/numpydoc[${PYTHON_USEDEP}]' 'python*') dev-python/sphinxcontrib-programoutput[${PYTHON_USEDEP}] dev-python/stsci-sphinxext[${PYTHON_USEDEP}] ) @@ -40,7 +40,9 @@ python_prepare_all() { "${S}"/setup.cfg || die # https://github.com/spacetelescope/PyFITS/issues/95 - sed -e "s/except UserWarning, w/except UserWarning as w/" -i lib/pyfits/scripts/fitscheck.py + sed \ + -e "s/except UserWarning, w/except UserWarning as w/" \ + -i lib/pyfits/scripts/fitscheck.py || die distutils-r1_python_prepare_all } @@ -51,17 +53,16 @@ python_compile_all() { python_test() { cd "${BUILD_DIR}"/lib* || die - nosetests || die + nosetests --verbose || die } python_install_all() { - use doc && local HTML_DOCS=( docs/build/html ) + use doc && local HTML_DOCS=( docs/build/html/. ) + DOCS=( FAQ.txt CHANGES.txt ) distutils-r1_python_install_all - dodoc FAQ.txt CHANGES.txt rename_binary() { local binary - for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/* - do + for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do mv ${binary}{,-${PN}} || die "failed renaming" done }
