1 |
bicatali 07/09/25 21:54:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scipy-0.6.0.ebuild |
5 |
Log: |
6 |
Version bump. Added dev-python/imaging in RDEPEND. Re-organize sandbox modules building |
7 |
(Portage version: 2.1.3.9) |
8 |
|
9 |
Revision Changes Path |
10 |
1.23 sci-libs/scipy/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.23&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.23&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.22&r2=1.23 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v |
19 |
retrieving revision 1.22 |
20 |
retrieving revision 1.23 |
21 |
diff -u -r1.22 -r1.23 |
22 |
--- ChangeLog 11 Sep 2007 17:32:38 -0000 1.22 |
23 |
+++ ChangeLog 25 Sep 2007 21:54:57 -0000 1.23 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for sci-libs/scipy |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.22 2007/09/11 17:32:38 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.23 2007/09/25 21:54:57 bicatali Exp $ |
29 |
+ |
30 |
+*scipy-0.6.0 (25 Sep 2007) |
31 |
+ |
32 |
+ 25 Sep 2007; Sébastien Fabbro <bicatali@g.o> |
33 |
+ +files/scipy-0.6.0-cdf.patch, +files/scipy-0.6.0-randomkit.patch, |
34 |
+ +files/enabled_packages-0.6.0.txt, +scipy-0.6.0.ebuild: |
35 |
+ Version bump. Added dev-python/imaging in RDEPEND. Re-organize |
36 |
+ sandbox modules building. |
37 |
|
38 |
11 Sep 2007; Sébastien Fabbro <bicatali@g.o> |
39 |
+files/scipy-0.5.2-cdf.patch, -files/scipy-0.5.2-getpath.patch, |
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-libs/scipy/scipy-0.6.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.6.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.6.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: scipy-0.6.0.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2007 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.6.0.ebuild,v 1.1 2007/09/25 21:54:57 bicatali Exp $ |
53 |
|
54 |
NEED_PYTHON=2.3 |
55 |
|
56 |
inherit eutils distutils fortran |
57 |
|
58 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
59 |
DESCRIPTION="Scientific algorithms library for Python" |
60 |
HOMEPAGE="http://www.scipy.org/" |
61 |
LICENSE="BSD" |
62 |
|
63 |
SLOT="0" |
64 |
|
65 |
IUSE="fftw umfpack sandbox" |
66 |
|
67 |
KEYWORDS="~amd64 ~ppc ~x86" |
68 |
|
69 |
DEPEND=">=dev-python/numpy-1.0.3.1 |
70 |
virtual/lapack |
71 |
fftw? ( =sci-libs/fftw-2.1* ) |
72 |
umfpack? ( sci-libs/umfpack dev-lang/swig ) |
73 |
sandbox? ( >=sci-libs/netcdf-3.6 x11-libs/libX11 )" |
74 |
|
75 |
RDEPEND=">=dev-python/numpy-1.0.3.1 |
76 |
dev-python/imaging |
77 |
virtual/lapack |
78 |
fftw? ( =sci-libs/fftw-2.1* ) |
79 |
umfpack? ( sci-libs/umfpack ) |
80 |
sandbox? ( >=sci-libs/netcdf-3.6 x11-libs/libX11 )" |
81 |
|
82 |
# test still buggy on lapack with 2 failures on check_syevr |
83 |
# (lapack float). check every version bump. |
84 |
RESTRICT="test" |
85 |
|
86 |
DOCS="THANKS.txt DEVELOPERS.txt LATEST.txt TOCHANGE.txt FORMAT_GUIDELINES.txt" |
87 |
|
88 |
scipy_fortran_setup() { |
89 |
FORTRAN="gfortran g77 ifc" |
90 |
fortran_pkg_setup |
91 |
local fc= |
92 |
case ${FORTRANC} in |
93 |
gfortran) fc=gnu95 ;; |
94 |
g77) fc=gnu ;; |
95 |
ifc|ifort) |
96 |
if use ia64; then |
97 |
fc=intele |
98 |
elif use amd64; then |
99 |
fc=intelem |
100 |
else |
101 |
fc=intel |
102 |
fi |
103 |
;; |
104 |
*) eerror "Unknown fortran compiler: ${FORTRANC}" |
105 |
die "scipy_fortran_setup failed" ;; |
106 |
esac |
107 |
|
108 |
# when fortran flags are set, pic is removed. |
109 |
use amd64 && [[ -n ${FFLAGS} ]] && FFLAGS="${FFLAGS} -fPIC" |
110 |
export SCIPY_FCONFIG="config_fc --fcompiler=${fc}" |
111 |
} |
112 |
|
113 |
# see numpy ebuild about unsetting LDFLAGS |
114 |
LDFLAGS_sav="${LDFLAGS}" |
115 |
unset LDFLAGS |
116 |
|
117 |
pkg_setup() { |
118 |
[[ -n ${LDFLAGS_sav} ]] && einfo "Ignoring LDFLAGS=${LDFLAGS_sav}" |
119 |
if use umfpack && ! built_with_use dev-lang/swig python; then |
120 |
eerror "With umfpack enabled you need" |
121 |
eerror "dev-lang/swig with python enabled" |
122 |
einfo "Please re-emerge swig with USE=python" |
123 |
die "needs swig with python" |
124 |
fi |
125 |
# scipy automatically detects libraries by default |
126 |
export FFTW=None FFTW3=None UMFPACK=None DJBFFT=None |
127 |
use fftw && unset FFTW |
128 |
use umfpack && unset UMFPACK |
129 |
use sandbox && elog "Warning: using sandbox modules at your own risk!" |
130 |
scipy_fortran_setup |
131 |
} |
132 |
|
133 |
src_unpack() { |
134 |
unpack ${A} |
135 |
cd "${S}" |
136 |
epatch "${FILESDIR}"/${P}-randomkit.patch |
137 |
epatch "${FILESDIR}"/${P}-cdf.patch |
138 |
|
139 |
if use sandbox; then |
140 |
cd scipy/sandbox |
141 |
ls -1 */__init__.py \ |
142 |
| sed -e 's:/__init__.py::' \ |
143 |
| grep -v exmplpackage \ |
144 |
> enabled_packages.txt \ |
145 |
|| die "sandbox listing failed" |
146 |
fi |
147 |
} |
148 |
|
149 |
src_compile() { |
150 |
distutils_src_compile ${SCIPY_FCONFIG} |
151 |
} |
152 |
|
153 |
src_test() { |
154 |
"${python}" setup.py install \ |
155 |
--home="${S}"/test \ |
156 |
--no-compile \ |
157 |
${SCIPY_FCONFIG} || die "install test failed" |
158 |
pushd "${S}"/test/lib*/python |
159 |
PYTHONPATH=. "${python}" -c \ |
160 |
"import scipy as s;import sys;sys.exit(s.test(10,3))" \ |
161 |
2>&1 | tee test.log |
162 |
grep -q OK test.log || die "test failed" |
163 |
popd |
164 |
rm -rf test |
165 |
} |
166 |
|
167 |
src_install() { |
168 |
distutils_src_install ${SCIPY_FCONFIG} |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
elog "You might want to set the variable SCIPY_PIL_IMAGE_VIEWER" |
173 |
elog "to your prefered image viewer if you don't like the default one. Ex:" |
174 |
elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
175 |
} |
176 |
|
177 |
|
178 |
|
179 |
-- |
180 |
gentoo-commits@g.o mailing list |