commit: 1722770334dd66d6d560dea77681814e86324b4a
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 29 08:06:58 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Oct 29 08:20:15 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17227703
sci-libs/scipy: Add live ebuild for testing
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
sci-libs/scipy/scipy-0.16.1.ebuild | 1 +
.../{scipy-0.16.1.ebuild => scipy-9999.ebuild} | 25 ++++------------------
2 files changed, 5 insertions(+), 21 deletions(-)
diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild
b/sci-libs/scipy/scipy-0.16.1.ebuild
index de2289b..7e74f6e 100644
--- a/sci-libs/scipy/scipy-0.16.1.ebuild
+++ b/sci-libs/scipy/scipy-0.16.1.ebuild
@@ -103,6 +103,7 @@ python_prepare_all() {
"${FILESDIR}"/${PN}-0.12.0-blitz.patch
"${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch
"${FILESDIR}"/${P}-glibc-2.22-backport.patch
+ "${FILESDIR}"/${P}-test-fix-backport.patch
)
distutils-r1_python_prepare_all
}
diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild
b/sci-libs/scipy/scipy-9999.ebuild
similarity index 82%
copy from sci-libs/scipy/scipy-0.16.1.ebuild
copy to sci-libs/scipy/scipy-9999.ebuild
index de2289b..43f0f3e 100644
--- a/sci-libs/scipy/scipy-0.16.1.ebuild
+++ b/sci-libs/scipy/scipy-9999.ebuild
@@ -8,21 +8,16 @@ PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
DOC_PV=${PV}
-inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs
+inherit eutils fortran-2 distutils-r1 flag-o-matic git-r3 multilib
toolchain-funcs
DESCRIPTION="Scientific algorithms library for Python"
HOMEPAGE="https://www.scipy.org/"
-SRC_URI="
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz
- doc? (
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip
-> ${PN}-${DOC_PV}-html.zip
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf
-> ${PN}-${DOC_PV}-ref.pdf
- )"
+EGIT_REPO_URI="https://github.com/scipy/scipy.git"
LICENSE="BSD LGPL-2"
SLOT="0"
-IUSE="doc sparse test"
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos
~x86-macos"
+KEYWORDS=""
+IUSE="sparse test"
CDEPEND="
>=dev-python/numpy-1.6.2[lapack,${PYTHON_USEDEP}]
@@ -34,7 +29,6 @@ DEPEND="${CDEPEND}
dev-lang/swig
>=dev-python/cython-0.22[${PYTHON_USEDEP}]
virtual/pkgconfig
- doc? ( app-arch/unzip )
test? ( dev-python/nose[${PYTHON_USEDEP}] )
"
@@ -45,13 +39,6 @@ DOCS=( HACKING.rst.txt THANKS.txt )
DISTUTILS_IN_SOURCE_BUILD=1
-src_unpack() {
- unpack ${P}.tar.gz
- if use doc; then
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die
- fi
-}
-
pc_incdir() {
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
@@ -96,13 +83,9 @@ python_prepare_all() {
lapack_libs = $(pc_libs lapack)
EOF
- # Drop hashes to force rebuild of cython based .c code
- rm cythonize.dat || die
-
local PATCHES=(
"${FILESDIR}"/${PN}-0.12.0-blitz.patch
"${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch
- "${FILESDIR}"/${P}-glibc-2.22-backport.patch
)
distutils-r1_python_prepare_all
}