1 |
jlec 15/03/03 15:18:59 |
2 |
|
3 |
Modified: scipy-0.15.0.ebuild ChangeLog |
4 |
Added: scipy-0.15.1.ebuild |
5 |
Log: |
6 |
Version Bump |
7 |
|
8 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.2 sci-libs/scipy/scipy-0.15.0.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild?rev=1.2&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild?rev=1.2&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild?r1=1.1&r2=1.2 |
16 |
|
17 |
Index: scipy-0.15.0.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild,v |
20 |
retrieving revision 1.1 |
21 |
retrieving revision 1.2 |
22 |
diff -u -r1.1 -r1.2 |
23 |
--- scipy-0.15.0.ebuild 19 Feb 2015 08:25:29 -0000 1.1 |
24 |
+++ scipy-0.15.0.ebuild 3 Mar 2015 15:18:59 -0000 1.2 |
25 |
@@ -1,12 +1,12 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild,v 1.1 2015/02/19 08:25:29 jlec Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.15.0.ebuild,v 1.2 2015/03/03 15:18:59 jlec Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
|
33 |
PYTHON_COMPAT=( python2_7 python3_{3,4} ) |
34 |
|
35 |
-DOC_PV=0.13.0 |
36 |
+DOC_PV=0.15.0 |
37 |
|
38 |
inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs |
39 |
|
40 |
@@ -15,8 +15,8 @@ |
41 |
SRC_URI=" |
42 |
mirror://sourceforge/${PN}/${P}.tar.gz |
43 |
doc? ( |
44 |
- http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html.zip -> ${PN}-${DOC_PV}-html.zip |
45 |
- http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref.pdf -> ${PN}-${DOC_PV}-ref.pdf |
46 |
+ http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
47 |
+ http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
48 |
)" |
49 |
|
50 |
LICENSE="BSD LGPL-2" |
51 |
|
52 |
|
53 |
|
54 |
1.122 sci-libs/scipy/ChangeLog |
55 |
|
56 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.122&view=markup |
57 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.122&content-type=text/plain |
58 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.121&r2=1.122 |
59 |
|
60 |
Index: ChangeLog |
61 |
=================================================================== |
62 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v |
63 |
retrieving revision 1.121 |
64 |
retrieving revision 1.122 |
65 |
diff -u -r1.121 -r1.122 |
66 |
--- ChangeLog 19 Feb 2015 08:58:02 -0000 1.121 |
67 |
+++ ChangeLog 3 Mar 2015 15:18:59 -0000 1.122 |
68 |
@@ -1,6 +1,12 @@ |
69 |
# ChangeLog for sci-libs/scipy |
70 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
71 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.121 2015/02/19 08:58:02 jlec Exp $ |
72 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.122 2015/03/03 15:18:59 jlec Exp $ |
73 |
+ |
74 |
+*scipy-0.15.1 (03 Mar 2015) |
75 |
+ |
76 |
+ 03 Mar 2015; Justin Lecher <jlec@g.o> +scipy-0.15.1.ebuild, |
77 |
+ scipy-0.15.0.ebuild: |
78 |
+ Version Bump |
79 |
|
80 |
19 Feb 2015; Justin Lecher <jlec@g.o> -scipy-0.12.1.ebuild, |
81 |
-scipy-0.13.2.ebuild, -scipy-0.13.3.ebuild, -scipy-0.14.0.ebuild: |
82 |
|
83 |
|
84 |
|
85 |
1.1 sci-libs/scipy/scipy-0.15.1.ebuild |
86 |
|
87 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.15.1.ebuild?rev=1.1&view=markup |
88 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.15.1.ebuild?rev=1.1&content-type=text/plain |
89 |
|
90 |
Index: scipy-0.15.1.ebuild |
91 |
=================================================================== |
92 |
# Copyright 1999-2015 Gentoo Foundation |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.15.1.ebuild,v 1.1 2015/03/03 15:18:59 jlec Exp $ |
95 |
|
96 |
EAPI=5 |
97 |
|
98 |
PYTHON_COMPAT=( python2_7 python3_{3,4} ) |
99 |
|
100 |
DOC_PV=0.15.1 |
101 |
|
102 |
inherit eutils fortran-2 distutils-r1 flag-o-matic multilib toolchain-funcs |
103 |
|
104 |
DESCRIPTION="Scientific algorithms library for Python" |
105 |
HOMEPAGE="http://www.scipy.org/" |
106 |
SRC_URI=" |
107 |
mirror://sourceforge/${PN}/${P}.tar.gz |
108 |
doc? ( |
109 |
http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-html-${PV}.zip -> ${PN}-${DOC_PV}-html.zip |
110 |
http://docs.scipy.org/doc/${PN}-${DOC_PV}/${PN}-ref-${PV}.pdf -> ${PN}-${DOC_PV}-ref.pdf |
111 |
)" |
112 |
|
113 |
LICENSE="BSD LGPL-2" |
114 |
SLOT="0" |
115 |
IUSE="doc sparse test" |
116 |
KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
117 |
|
118 |
CDEPEND=" |
119 |
dev-python/numpy[lapack,${PYTHON_USEDEP}] |
120 |
sci-libs/arpack:0= |
121 |
virtual/cblas |
122 |
virtual/lapack |
123 |
sparse? ( sci-libs/umfpack:0= )" |
124 |
DEPEND="${CDEPEND} |
125 |
dev-lang/swig |
126 |
>=dev-python/cython-0.19.1[${PYTHON_USEDEP}] |
127 |
virtual/pkgconfig |
128 |
doc? ( app-arch/unzip ) |
129 |
test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
130 |
" |
131 |
|
132 |
RDEPEND="${CDEPEND} |
133 |
virtual/python-imaging[${PYTHON_USEDEP}]" |
134 |
|
135 |
DOCS=( HACKING.rst.txt THANKS.txt ) |
136 |
|
137 |
DISTUTILS_IN_SOURCE_BUILD=1 |
138 |
|
139 |
src_unpack() { |
140 |
unpack ${P}.tar.gz |
141 |
if use doc; then |
142 |
unzip -qo "${DISTDIR}"/${PN}-${DOC_PV}-html.zip -d html || die |
143 |
fi |
144 |
} |
145 |
|
146 |
pc_incdir() { |
147 |
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \ |
148 |
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||' |
149 |
} |
150 |
|
151 |
pc_libdir() { |
152 |
$(tc-getPKG_CONFIG) --libs-only-L $@ | \ |
153 |
sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||' |
154 |
} |
155 |
|
156 |
pc_libs() { |
157 |
$(tc-getPKG_CONFIG) --libs-only-l $@ | \ |
158 |
sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \ |
159 |
-e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \ |
160 |
| tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||' |
161 |
} |
162 |
|
163 |
python_prepare_all() { |
164 |
# scipy automatically detects libraries by default |
165 |
export {FFTW,FFTW3,UMFPACK}=None |
166 |
use sparse && unset UMFPACK |
167 |
# the missing symbols are in -lpythonX.Y, but since the version can |
168 |
# differ, we just introduce the same scaryness as on Linux/ELF |
169 |
[[ ${CHOST} == *-darwin* ]] \ |
170 |
&& append-ldflags -bundle "-undefined dynamic_lookup" \ |
171 |
|| append-ldflags -shared |
172 |
[[ -z ${FC} ]] && export FC="$(tc-getFC)" |
173 |
# hack to force F77 to be FC until bug #278772 is fixed |
174 |
[[ -z ${F77} ]] && export F77="$(tc-getFC)" |
175 |
export F90="${FC}" |
176 |
export SCIPY_FCONFIG="config_fc --noopt --noarch" |
177 |
append-fflags -fPIC |
178 |
|
179 |
local libdir="${EPREFIX}"/usr/$(get_libdir) |
180 |
cat >> site.cfg <<-EOF |
181 |
[blas] |
182 |
include_dirs = $(pc_incdir cblas) |
183 |
library_dirs = $(pc_libdir cblas blas):${libdir} |
184 |
blas_libs = $(pc_libs cblas blas) |
185 |
[lapack] |
186 |
library_dirs = $(pc_libdir lapack):${libdir} |
187 |
lapack_libs = $(pc_libs lapack) |
188 |
EOF |
189 |
|
190 |
# Drop hashes to force rebuild of cython based .c code |
191 |
rm cythonize.dat || die |
192 |
|
193 |
local PATCHES=( |
194 |
"${FILESDIR}"/${PN}-0.12.0-blitz.patch |
195 |
"${FILESDIR}"/${PN}-0.12.0-restore-sys-argv.patch |
196 |
) |
197 |
distutils-r1_python_prepare_all |
198 |
} |
199 |
|
200 |
python_compile() { |
201 |
${EPYTHON} tools/cythonize.py || die |
202 |
distutils-r1_python_compile ${SCIPY_FCONFIG} |
203 |
} |
204 |
|
205 |
python_test() { |
206 |
# fails with bdist_egg. should it be fixed in distutils-r1 eclass? |
207 |
distutils_install_for_testing ${SCIPY_FCONFIG} |
208 |
cd "${TEST_DIR}" || die "no ${TEST_DIR} available" |
209 |
"${EPYTHON}" -c " |
210 |
import scipy, sys |
211 |
r = scipy.test('fast',verbose=2) |
212 |
sys.exit(0 if r.wasSuccessful() else 1)" || die "Tests fail with ${EPYTHON}" |
213 |
} |
214 |
|
215 |
python_install_all() { |
216 |
if use doc; then |
217 |
dodoc "${DISTDIR}"/${PN}*pdf |
218 |
docinto html |
219 |
dodoc -r "${WORKDIR}"/html/. |
220 |
fi |
221 |
distutils-r1_python_install_all |
222 |
} |
223 |
|
224 |
python_install() { |
225 |
distutils-r1_python_install ${SCIPY_FCONFIG} |
226 |
} |
227 |
|
228 |
pkg_postinst() { |
229 |
elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
230 |
elog "to your prefered image viewer. Example:" |
231 |
elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
232 |
} |