Skip to content

Commit

Permalink
dev-python/pyfits: Fix app renamin and
Browse files Browse the repository at this point in the history
Release Blocker against astropy

Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Oct 23, 2015
1 parent d4296a8 commit 24ca06f
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ IUSE="doc test"

RDEPEND="
dev-python/numpy[${PYTHON_USEDEP}]
!dev-python/astropy
sci-libs/cfitsio:0="
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
Expand Down Expand Up @@ -57,15 +56,17 @@ python_test() {
nosetests --verbose || die
}

python_install() {
distutils-r1_python_install
local binary
for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do
einfo "Renaming ${binary} to ${binary}-${PN}"
mv ${binary}{,-${PN}} || die "failed renaming"
done
}

python_install_all() {
use doc && local HTML_DOCS=( docs/build/html/. )
DOCS=( FAQ.txt CHANGES.txt )
distutils-r1_python_install_all
rename_binary() {
local binary
for binary in "${ED}"/usr/bin/* "${D}$(python_get_scriptdir)"/*; do
mv ${binary}{,-${PN}} || die "failed renaming"
done
}
python_foreach_impl rename_binary
}

0 comments on commit 24ca06f

Please sign in to comment.