1 |
markusle 07/10/05 14:01:38 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scipy-0.6.0-r1.ebuild |
5 |
Log: |
6 |
New revision with patch to fix fftw problem (see bug #194708). |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.24 sci-libs/scipy/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.24&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.24&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.23&r2=1.24 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v |
19 |
retrieving revision 1.23 |
20 |
retrieving revision 1.24 |
21 |
diff -u -r1.23 -r1.24 |
22 |
--- ChangeLog 25 Sep 2007 21:54:57 -0000 1.23 |
23 |
+++ ChangeLog 5 Oct 2007 14:01:38 -0000 1.24 |
24 |
@@ -1,6 +1,13 @@ |
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.23 2007/09/25 21:54:57 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.24 2007/10/05 14:01:38 markusle Exp $ |
29 |
+ |
30 |
+*scipy-0.6.0-r1 (05 Oct 2007) |
31 |
+ |
32 |
+ 05 Oct 2007; Markus Dittrich <markusle@g.o> |
33 |
+ +files/scipy-0.6.0-fftw-fix.patch, +scipy-0.6.0-r1.ebuild: |
34 |
+ New revision with patch to fix fftw problem (see bug #194708). |
35 |
+ Thanks much to David Heavens <david.heavens@×××××.com> for his patch. |
36 |
|
37 |
*scipy-0.6.0 (25 Sep 2007) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/scipy/scipy-0.6.0-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.6.0-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.6.0-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: scipy-0.6.0-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2007 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.6.0-r1.ebuild,v 1.1 2007/10/05 14:01:38 markusle Exp $ |
52 |
|
53 |
NEED_PYTHON=2.3 |
54 |
|
55 |
inherit eutils distutils fortran |
56 |
|
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
58 |
DESCRIPTION="Scientific algorithms library for Python" |
59 |
HOMEPAGE="http://www.scipy.org/" |
60 |
LICENSE="BSD" |
61 |
|
62 |
SLOT="0" |
63 |
|
64 |
IUSE="fftw umfpack sandbox" |
65 |
|
66 |
KEYWORDS="~amd64 ~ppc ~x86" |
67 |
|
68 |
DEPEND=">=dev-python/numpy-1.0.3.1 |
69 |
virtual/lapack |
70 |
fftw? ( =sci-libs/fftw-2.1* ) |
71 |
umfpack? ( sci-libs/umfpack dev-lang/swig ) |
72 |
sandbox? ( >=sci-libs/netcdf-3.6 x11-libs/libX11 )" |
73 |
|
74 |
RDEPEND=">=dev-python/numpy-1.0.3.1 |
75 |
dev-python/imaging |
76 |
virtual/lapack |
77 |
fftw? ( =sci-libs/fftw-2.1* ) |
78 |
umfpack? ( sci-libs/umfpack ) |
79 |
sandbox? ( >=sci-libs/netcdf-3.6 x11-libs/libX11 )" |
80 |
|
81 |
# test still buggy on lapack with 2 failures on check_syevr |
82 |
# (lapack float). check every version bump. |
83 |
RESTRICT="test" |
84 |
|
85 |
DOCS="THANKS.txt DEVELOPERS.txt LATEST.txt TOCHANGE.txt FORMAT_GUIDELINES.txt" |
86 |
|
87 |
scipy_fortran_setup() { |
88 |
FORTRAN="gfortran g77 ifc" |
89 |
fortran_pkg_setup |
90 |
local fc= |
91 |
case ${FORTRANC} in |
92 |
gfortran) fc=gnu95 ;; |
93 |
g77) fc=gnu ;; |
94 |
ifc|ifort) |
95 |
if use ia64; then |
96 |
fc=intele |
97 |
elif use amd64; then |
98 |
fc=intelem |
99 |
else |
100 |
fc=intel |
101 |
fi |
102 |
;; |
103 |
*) eerror "Unknown fortran compiler: ${FORTRANC}" |
104 |
die "scipy_fortran_setup failed" ;; |
105 |
esac |
106 |
|
107 |
# when fortran flags are set, pic is removed. |
108 |
use amd64 && [[ -n ${FFLAGS} ]] && FFLAGS="${FFLAGS} -fPIC" |
109 |
export SCIPY_FCONFIG="config_fc --fcompiler=${fc}" |
110 |
} |
111 |
|
112 |
# see numpy ebuild about unsetting LDFLAGS |
113 |
LDFLAGS_sav="${LDFLAGS}" |
114 |
unset LDFLAGS |
115 |
|
116 |
pkg_setup() { |
117 |
[[ -n ${LDFLAGS_sav} ]] && einfo "Ignoring LDFLAGS=${LDFLAGS_sav}" |
118 |
if use umfpack && ! built_with_use dev-lang/swig python; then |
119 |
eerror "With umfpack enabled you need" |
120 |
eerror "dev-lang/swig with python enabled" |
121 |
einfo "Please re-emerge swig with USE=python" |
122 |
die "needs swig with python" |
123 |
fi |
124 |
# scipy automatically detects libraries by default |
125 |
export FFTW=None FFTW3=None UMFPACK=None DJBFFT=None |
126 |
use fftw && unset FFTW |
127 |
use umfpack && unset UMFPACK |
128 |
use sandbox && elog "Warning: using sandbox modules at your own risk!" |
129 |
scipy_fortran_setup |
130 |
} |
131 |
|
132 |
src_unpack() { |
133 |
unpack ${A} |
134 |
cd "${S}" |
135 |
epatch "${FILESDIR}"/${P}-randomkit.patch |
136 |
epatch "${FILESDIR}"/${P}-cdf.patch |
137 |
epatch "${FILESDIR}"/${P}-fftw-fix.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 |