1 |
bicatali 09/02/02 16:50:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: scipy-0.7.0_rc2.ebuild |
5 |
Removed: scipy-0.6.0-r4.ebuild scipy-0.6.0-r5.ebuild |
6 |
scipy-0.7.0_beta1.ebuild |
7 |
Log: |
8 |
Version bump, removed older revisions |
9 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.39 sci-libs/scipy/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.39&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?rev=1.39&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/ChangeLog?r1=1.38&r2=1.39 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v |
21 |
retrieving revision 1.38 |
22 |
retrieving revision 1.39 |
23 |
diff -u -r1.38 -r1.39 |
24 |
--- ChangeLog 14 Jan 2009 18:11:57 -0000 1.38 |
25 |
+++ ChangeLog 2 Feb 2009 16:50:21 -0000 1.39 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for sci-libs/scipy |
28 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.38 2009/01/14 18:11:57 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/ChangeLog,v 1.39 2009/02/02 16:50:21 bicatali Exp $ |
31 |
+ |
32 |
+*scipy-0.7.0_rc2 (02 Feb 2009) |
33 |
+ |
34 |
+ 02 Feb 2009; Sébastien Fabbro <bicatali@g.o> |
35 |
+ -scipy-0.6.0-r4.ebuild, -scipy-0.6.0-r5.ebuild, -scipy-0.7.0_beta1.ebuild, |
36 |
+ +scipy-0.7.0_rc2.ebuild: |
37 |
+ Version bump, removed older revisions |
38 |
|
39 |
*scipy-0.6.0-r6 (14 Jan 2009) |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
1.1 sci-libs/scipy/scipy-0.7.0_rc2.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.7.0_rc2.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/scipy/scipy-0.7.0_rc2.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: scipy-0.7.0_rc2.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/scipy/scipy-0.7.0_rc2.ebuild,v 1.1 2009/02/02 16:50:21 bicatali Exp $ |
54 |
|
55 |
EAPI=1 |
56 |
NEED_PYTHON=2.4 |
57 |
MYP=${P/_rc/rc} |
58 |
inherit eutils distutils fortran flag-o-matic |
59 |
|
60 |
SRC_URI="mirror://sourceforge/${PN}/${MYP}.tar.gz" |
61 |
DESCRIPTION="Scientific algorithms library for Python" |
62 |
HOMEPAGE="http://www.scipy.org/" |
63 |
LICENSE="BSD" |
64 |
|
65 |
SLOT="0" |
66 |
|
67 |
IUSE="test umfpack" |
68 |
|
69 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
70 |
|
71 |
CDEPEND=">=dev-python/numpy-1.2 |
72 |
virtual/cblas |
73 |
virtual/lapack |
74 |
umfpack? ( sci-libs/umfpack )" |
75 |
|
76 |
DEPEND="${CDEPEND} |
77 |
dev-util/pkgconfig |
78 |
test? ( dev-python/nose ) |
79 |
umfpack? ( dev-lang/swig )" |
80 |
|
81 |
RDEPEND="${CDEPEND} |
82 |
dev-python/imaging" |
83 |
|
84 |
DOCS="THANKS.txt LATEST.txt TOCHANGE.txt" |
85 |
|
86 |
S="${WORKDIR}/${MYP}" |
87 |
|
88 |
scipy_fortran_setup() { |
89 |
append-ldflags -shared |
90 |
FORTRAN="gfortran g77 ifc" |
91 |
fortran_pkg_setup |
92 |
local fc= |
93 |
case ${FORTRANC} in |
94 |
gfortran) fc=gnu95 ;; |
95 |
g77) fc=gnu ;; |
96 |
ifc|ifort) |
97 |
if use ia64; then |
98 |
fc=intele |
99 |
elif use amd64; then |
100 |
fc=intelem |
101 |
else |
102 |
fc=intel |
103 |
fi |
104 |
;; |
105 |
*) eerror "Unknown fortran compiler: ${FORTRANC}" |
106 |
die "scipy_fortran_setup failed" ;; |
107 |
esac |
108 |
export SCIPY_FCONFIG="config_fc --fcompiler=${fc} --noopt --noarch" |
109 |
} |
110 |
|
111 |
pkg_setup() { |
112 |
if use umfpack && ! built_with_use dev-lang/swig python; then |
113 |
eerror "With umfpack enabled you need" |
114 |
eerror "dev-lang/swig with python enabled" |
115 |
einfo "Please re-emerge swig with USE=python" |
116 |
die "needs swig with python" |
117 |
fi |
118 |
# scipy automatically detects libraries by default |
119 |
export {FFTW,FFTW3,UMFPACK}=None |
120 |
use umfpack && unset UMFPACK |
121 |
scipy_fortran_setup |
122 |
} |
123 |
|
124 |
src_unpack() { |
125 |
unpack ${A} |
126 |
cd "${S}" |
127 |
epatch "${FILESDIR}"/${PN}-0.7.0_beta1-implicit.patch |
128 |
epatch "${FILESDIR}"/${PN}-0.6.0-stsci.patch |
129 |
cat > site.cfg <<-EOF |
130 |
[DEFAULT] |
131 |
library_dirs = /usr/$(get_libdir) |
132 |
include_dirs = /usr/include |
133 |
[atlas] |
134 |
include_dirs = $(pkg-config --cflags-only-I \ |
135 |
cblas | sed -e 's/^-I//' -e 's/ -I/:/g') |
136 |
library_dirs = $(pkg-config --libs-only-L \ |
137 |
cblas blas lapack| sed -e \ |
138 |
's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):/usr/$(get_libdir) |
139 |
atlas_libs = $(pkg-config --libs-only-l \ |
140 |
cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
141 |
lapack_libs = $(pkg-config --libs-only-l \ |
142 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
143 |
[blas_opt] |
144 |
include_dirs = $(pkg-config --cflags-only-I \ |
145 |
cblas | sed -e 's/^-I//' -e 's/ -I/:/g') |
146 |
library_dirs = $(pkg-config --libs-only-L \ |
147 |
cblas blas | sed -e 's/^-L//' -e 's/ -L/:/g' \ |
148 |
-e 's/ //g'):/usr/$(get_libdir) |
149 |
libraries = $(pkg-config --libs-only-l \ |
150 |
cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
151 |
[lapack_opt] |
152 |
library_dirs = $(pkg-config --libs-only-L \ |
153 |
lapack | sed -e 's/^-L//' -e 's/ -L/:/g' \ |
154 |
-e 's/ //g'):/usr/$(get_libdir) |
155 |
libraries = $(pkg-config --libs-only-l \ |
156 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
157 |
EOF |
158 |
} |
159 |
|
160 |
src_compile() { |
161 |
# when fortran flags are set, pic is removed. |
162 |
use amd64 && [[ -n ${FFLAGS} ]] && FFLAGS="${FFLAGS} -fPIC" |
163 |
distutils_src_compile ${SCIPY_FCONFIG} |
164 |
} |
165 |
|
166 |
src_test() { |
167 |
"${python}" setup.py install \ |
168 |
--home="${S}"/test \ |
169 |
--no-compile \ |
170 |
${SCIPY_FCONFIG} || die "install test failed" |
171 |
pushd "${S}"/test/lib*/python |
172 |
PYTHONPATH=. "${python}" -c "import scipy; scipy.test('full')" 2>&1 | tee test.log |
173 |
grep -q ^ERROR test.log && die "test failed" |
174 |
popd |
175 |
rm -rf test |
176 |
} |
177 |
|
178 |
src_install() { |
179 |
distutils_src_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 if you don't like the default one. Ex:" |
185 |
elog "\t echo \"export SCIPY_PIL_IMAGE_VIEWER=display\" >> ~/.bashrc" |
186 |
} |