1 |
bicatali 12/01/08 16:59:11 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scipy-0.10.0.ebuild |
5 |
Removed: scipy-0.9.0-r2.ebuild scipy-0.9.0.ebuild |
6 |
scipy-0.8.0.ebuild |
7 |
Log: |
8 |
Version bump |
9 |
|
10 |
(Portage version: 2.1.10.41/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.73 sci-libs/scipy/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.73&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.73&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.72&r2=1.73 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v |
22 |
retrieving revision 1.72 |
23 |
retrieving revision 1.73 |
24 |
diff -u -r1.72 -r1.73 |
25 |
--- ChangeLog 13 Dec 2011 14:16:08 -0000 1.72 |
26 |
+++ ChangeLog 8 Jan 2012 16:59:11 -0000 1.73 |
27 |
@@ -1,6 +1,14 @@ |
28 |
# ChangeLog for sci-libs/scipy |
29 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.72 2011/12/13 14:16:08 jlec Exp $ |
31 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
32 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.73 2012/01/08 16:59:11 bicatali Exp $ |
33 |
+ |
34 |
+*scipy-0.10.0 (08 Jan 2012) |
35 |
+ |
36 |
+ 08 Jan 2012; Sébastien Fabbro <bicatali@g.o> |
37 |
+ -files/scipy-0.6.0-stsci.patch, -scipy-0.8.0.ebuild, |
38 |
+ -files/scipy-0.8.0-python2.7.patch, -scipy-0.9.0.ebuild, |
39 |
+ -scipy-0.9.0-r2.ebuild, +scipy-0.10.0.ebuild: |
40 |
+ Version bump |
41 |
|
42 |
*scipy-0.9.0-r3 (13 Dec 2011) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 sci-libs/scipy/scipy-0.10.0.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.10.0.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/scipy/scipy-0.10.0.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: scipy-0.10.0.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2012 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.10.0.ebuild,v 1.1 2012/01/08 16:59:11 bicatali Exp $ |
57 |
|
58 |
EAPI=4 |
59 |
|
60 |
SUPPORT_PYTHON_ABIS="1" |
61 |
RESTRICT_PYTHON_ABIS="*-jython" |
62 |
|
63 |
inherit eutils fortran-2 distutils flag-o-matic toolchain-funcs versionator |
64 |
|
65 |
DISTUTILS_SRC_TEST=nosetests |
66 |
|
67 |
DESCRIPTION="Scientific algorithms library for Python" |
68 |
HOMEPAGE="http://www.scipy.org/ http://pypi.python.org/pypi/scipy" |
69 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
70 |
doc? ( |
71 |
http://docs.scipy.org/doc/${P}/${PN}-html.zip -> ${P}-html.zip |
72 |
http://docs.scipy.org/doc/${P}/${PN}-ref.pdf -> ${P}-ref.pdf |
73 |
)" |
74 |
|
75 |
LICENSE="BSD LGPL-2" |
76 |
SLOT="0" |
77 |
IUSE="doc umfpack" |
78 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
79 |
|
80 |
CDEPEND="dev-python/numpy |
81 |
media-libs/qhull |
82 |
sci-libs/arpack |
83 |
sci-libs/superlu |
84 |
virtual/cblas |
85 |
virtual/lapack |
86 |
umfpack? ( sci-libs/umfpack )" |
87 |
|
88 |
DEPEND="${CDEPEND} |
89 |
dev-util/pkgconfig |
90 |
doc? ( app-arch/unzip ) |
91 |
umfpack? ( dev-lang/swig )" |
92 |
|
93 |
RDEPEND="virtual/fortran |
94 |
${CDEPEND} |
95 |
dev-python/imaging" |
96 |
|
97 |
DOCS="THANKS.txt LATEST.txt TOCHANGE.txt" |
98 |
|
99 |
pkg_setup() { |
100 |
fortran-2_pkg_setup |
101 |
# scipy automatically detects libraries by default |
102 |
export {FFTW,FFTW3,UMFPACK}=None |
103 |
use umfpack && unset UMFPACK |
104 |
# the missing symbols are in -lpythonX.Y, but since the version can |
105 |
# differ, we just introduce the same scaryness as on Linux/ELF |
106 |
[[ ${CHOST} == *-darwin* ]] \ |
107 |
&& append-ldflags -bundle "-undefined dynamic_lookup" \ |
108 |
|| append-ldflags -shared |
109 |
[[ -z ${FC} ]] && export FC="$(tc-getFC)" |
110 |
# hack to force F77 to be FC until bug #278772 is fixed |
111 |
[[ -z ${F77} ]] && export F77="$(tc-getFC)" |
112 |
export F90="${FC}" |
113 |
export SCIPY_FCONFIG="config_fc --noopt --noarch" |
114 |
append-fflags -fPIC |
115 |
python_pkg_setup |
116 |
} |
117 |
|
118 |
src_unpack() { |
119 |
unpack ${P}.tar.gz |
120 |
if use doc; then |
121 |
unzip -qo "${DISTDIR}"/${P}-html.zip -d html || die |
122 |
fi |
123 |
} |
124 |
|
125 |
src_prepare() { |
126 |
# remove bundled libs |
127 |
epatch \ |
128 |
"${FILESDIR}"/${PN}-0.9.0-superlu.patch \ |
129 |
"${FILESDIR}"/${PN}-0.9.0-superlu-4.3.patch \ |
130 |
"${FILESDIR}"/${PN}-0.9.0-qhull.patch |
131 |
rm -rf ./scipy/sparse/linalg/dsolve/SuperLU ./scipy/spatial/qhull |
132 |
local libdir="${EPREFIX}"/usr/$(get_libdir) |
133 |
cat >> site.cfg <<-EOF |
134 |
[blas] |
135 |
include_dirs = $(pkg-config --cflags-only-I \ |
136 |
cblas | sed -e 's/^-I//' -e 's/ -I/:/g') |
137 |
library_dirs = $(pkg-config --libs-only-L \ |
138 |
cblas blas | sed -e 's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir} |
139 |
blas_libs = $(pkg-config --libs-only-l \ |
140 |
cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
141 |
[lapack] |
142 |
library_dirs = $(pkg-config --libs-only-L \ |
143 |
lapack | sed -e 's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir} |
144 |
lapack_libs = $(pkg-config --libs-only-l \ |
145 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
146 |
EOF |
147 |
} |
148 |
|
149 |
src_compile() { |
150 |
distutils_src_compile ${SCIPY_FCONFIG} |
151 |
} |
152 |
|
153 |
src_test() { |
154 |
testing() { |
155 |
"$(PYTHON)" setup.py build -b "build-${PYTHON_ABI}" install \ |
156 |
--home="${S}/test-${PYTHON_ABI}" --no-compile ${SCIPY_FCONFIG} \ |
157 |
|| die "install test failed" |
158 |
pushd "${S}/test-${PYTHON_ABI}/"lib*/python > /dev/null |
159 |
PYTHONPATH=. "$(PYTHON)" -c "import scipy; scipy.test('full')" \ |
160 |
2>&1 | tee test.log |
161 |
grep -q ^ERROR test.log && die "test failed" |
162 |
popd > /dev/null |
163 |
rm -fr test-${PYTHON_ABI} |
164 |
} |
165 |
python_execute_function testing |
166 |
} |
167 |
|
168 |
src_install() { |
169 |
distutils_src_install ${SCIPY_FCONFIG} |
170 |
use doc && dohtml -r "${WORKDIR}"/html/* && dodoc "${DISTDIR}"/${P}*pdf |
171 |
} |
172 |
|
173 |
pkg_postinst() { |
174 |
distutils_pkg_postinst |
175 |
elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
176 |
elog "to your prefered image viewer if you don't like the default one. Ex:" |
177 |
elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
178 |
} |