1 |
commit: 1722770334dd66d6d560dea77681814e86324b4a |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 29 08:06:58 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 29 08:20:15 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17227703 |
7 |
|
8 |
sci-libs/scipy: Add live ebuild for testing |
9 |
|
10 |
Package-Manager: portage-2.2.23 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
sci-libs/scipy/scipy-0.16.1.ebuild | 1 + |
14 |
.../{scipy-0.16.1.ebuild => scipy-9999.ebuild} | 25 ++++------------------ |
15 |
2 files changed, 5 insertions(+), 21 deletions(-) |
16 |
|
17 |
diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild b/sci-libs/scipy/scipy-0.16.1.ebuild |
18 |
index de2289b..7e74f6e 100644 |
19 |
--- a/sci-libs/scipy/scipy-0.16.1.ebuild |
20 |
+++ b/sci-libs/scipy/scipy-0.16.1.ebuild |
21 |
@@ -103,6 +103,7 @@ python_prepare_all() { |
22 |
"${FILESDIR}"/${PN}-0.12.0-blitz.patch |
23 |
"${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch |
24 |
"${FILESDIR}"/${P}-glibc-2.22-backport.patch |
25 |
+ "${FILESDIR}"/${P}-test-fix-backport.patch |
26 |
) |
27 |
distutils-r1_python_prepare_all |
28 |
} |
29 |
|
30 |
diff --git a/sci-libs/scipy/scipy-0.16.1.ebuild b/sci-libs/scipy/scipy-9999.ebuild |
31 |
similarity index 82% |
32 |
copy from sci-libs/scipy/scipy-0.16.1.ebuild |
33 |
copy to sci-libs/scipy/scipy-9999.ebuild |
34 |
index de2289b..43f0f3e 100644 |
35 |
--- a/sci-libs/scipy/scipy-0.16.1.ebuild |
36 |
+++ b/sci-libs/scipy/scipy-9999.ebuild |
37 |
@@ -8,21 +8,16 @@ PYTHON_COMPAT=( python2_7 python3_{3,4,5} ) |
38 |
|
39 |
DOC_PV=${PV} |
40 |
|
41 |
-inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs |
42 |
+inherit eutils fortran-2 distutils-r1 flag-o-matic git-r3 multilib toolchain-funcs |
43 |
|
44 |
DESCRIPTION="Scientific algorithms library for Python" |
45 |
HOMEPAGE="https://www.scipy.org/" |
46 |
-SRC_URI=" |
47 |
- mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz |
48 |
- doc? ( |
49 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
50 |
- https://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
51 |
- )" |
52 |
+EGIT_REPO_URI="https://github.com/scipy/scipy.git" |
53 |
|
54 |
LICENSE="BSD LGPL-2" |
55 |
SLOT="0" |
56 |
-IUSE="doc sparse test" |
57 |
-KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
58 |
+KEYWORDS="" |
59 |
+IUSE="sparse test" |
60 |
|
61 |
CDEPEND=" |
62 |
>=dev-python/numpy-1.6.2[lapack,${PYTHON_USEDEP}] |
63 |
@@ -34,7 +29,6 @@ DEPEND="${CDEPEND} |
64 |
dev-lang/swig |
65 |
>=dev-python/cython-0.22[${PYTHON_USEDEP}] |
66 |
virtual/pkgconfig |
67 |
- doc? ( app-arch/unzip ) |
68 |
test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
69 |
" |
70 |
|
71 |
@@ -45,13 +39,6 @@ DOCS=( HACKING.rst.txt THANKS.txt ) |
72 |
|
73 |
DISTUTILS_IN_SOURCE_BUILD=1 |
74 |
|
75 |
-src_unpack() { |
76 |
- unpack ${P}.tar.gz |
77 |
- if use doc; then |
78 |
- unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
79 |
- fi |
80 |
-} |
81 |
- |
82 |
pc_incdir() { |
83 |
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
84 |
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
85 |
@@ -96,13 +83,9 @@ python_prepare_all() { |
86 |
lapack_libs = $(pc_libs lapack) |
87 |
EOF |
88 |
|
89 |
- # Drop hashes to force rebuild of cython based .c code |
90 |
- rm cythonize.dat || die |
91 |
- |
92 |
local PATCHES=( |
93 |
"${FILESDIR}"/${PN}-0.12.0-blitz.patch |
94 |
"${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch |
95 |
- "${FILESDIR}"/${P}-glibc-2.22-backport.patch |
96 |
) |
97 |
distutils-r1_python_prepare_all |
98 |
} |