commit:     78aa9e4e86c5addd59780e88072c8e3fe9d34b3d
Author:     Mark Wright <gienah <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 15 03:53:14 2015 +0000
Commit:     Mark Wright <gienah <AT> gentoo <DOT> org>
CommitDate: Thu Oct 15 03:55:17 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78aa9e4e

dev-python/numpy: Fix Bug 563068 - dev-python/numpy-1.10.0_p2 -

unpack numpy-ref-1.9.1.pdf: file format not recognized -
mv: target ?/var/tmp/portage/dev-python/numpy-1.10.0_p2/work/numpy-1.10.0_p2? 
is not a directory
Thanks to Juergen Rose for reporting.

 dev-python/numpy/numpy-1.10.0_p2.ebuild | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/dev-python/numpy/numpy-1.10.0_p2.ebuild 
b/dev-python/numpy/numpy-1.10.0_p2.ebuild
index 1174f3a..301e0be 100644
--- a/dev-python/numpy/numpy-1.10.0_p2.ebuild
+++ b/dev-python/numpy/numpy-1.10.0_p2.ebuild
@@ -10,12 +10,15 @@ FORTRAN_NEEDED=lapack
 
 inherit distutils-r1 eutils flag-o-matic fortran-2 multilib multiprocessing 
toolchain-funcs versionator
 
+MY_PV="${PV/_p/.post}"
+MY_P="${PN}-${MY_PV}"
+
 DOC_PV="1.9.1"
 DOC_P="${PN}-${DOC_PV}"
 
 DESCRIPTION="Fast array and numerical python library"
 HOMEPAGE="http://www.numpy.org/";
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P/_p/.post}.tar.gz
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz
        doc? (
                http://docs.scipy.org/doc/${DOC_P}/${PN}-html-${DOC_PV}.zip
                http://docs.scipy.org/doc/${DOC_P}/${PN}-ref-${DOC_PV}.pdf
@@ -42,10 +45,10 @@ PATCHES=(
        "${FILESDIR}"/${PN}-1.9.2-no-hardcode-blas.patch
 )
 
+S="${WORKDIR}/${MY_P}"
+
 src_unpack() {
        default
-       mv "${WORKDIR}"/* "${S}" || die
-
        if use doc; then
                unzip -qo "${DISTDIR}"/${PN}-html-${DOC_PV}.zip -d html || die
        fi

Reply via email to