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