1 |
bicatali 08/09/26 20:05:52 |
2 |
|
3 |
Modified: ChangeLog metadata.xml |
4 |
Added: numpy-1.2.0.ebuild |
5 |
Log: |
6 |
Version bump. New test framework dependent on dev-python/nose. |
7 |
Re-added gentoo names for ATLAS libraries. Dropped alpha hppa mips ppc |
8 |
ppc64 x86-fbsd until nose is keyworded. |
9 |
(Portage version: 2.2_rc9/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.64 dev-python/numpy/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.64&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.64&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?r1=1.63&r2=1.64 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v |
21 |
retrieving revision 1.63 |
22 |
retrieving revision 1.64 |
23 |
diff -u -r1.63 -r1.64 |
24 |
--- ChangeLog 25 Sep 2008 09:54:21 -0000 1.63 |
25 |
+++ ChangeLog 26 Sep 2008 20:05:51 -0000 1.64 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-python/numpy |
28 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.63 2008/09/25 09:54:21 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.64 2008/09/26 20:05:51 bicatali Exp $ |
31 |
+ |
32 |
+*numpy-1.2.0 (26 Sep 2008) |
33 |
+ |
34 |
+ 26 Sep 2008; Sébastien Fabbro <bicatali@g.o> +numpy-1.2.0.ebuild: |
35 |
+ Version bump. New test framework dependent on dev-python/nose. Re-added |
36 |
+ gentoo names for ATLAS libraries. Dropped alpha hppa mips ppc ppc64 |
37 |
+ x86-fbsd until nose is keyworded. |
38 |
|
39 |
25 Sep 2008; Sébastien Fabbro <bicatali@g.o> -numpy-1.1.0.ebuild, |
40 |
numpy-1.1.1.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.5 dev-python/numpy/metadata.xml |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/metadata.xml?rev=1.5&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/metadata.xml?rev=1.5&content-type=text/plain |
48 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/metadata.xml?r1=1.4&r2=1.5 |
49 |
|
50 |
Index: metadata.xml |
51 |
=================================================================== |
52 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/metadata.xml,v |
53 |
retrieving revision 1.4 |
54 |
retrieving revision 1.5 |
55 |
diff -u -r1.4 -r1.5 |
56 |
--- metadata.xml 5 Mar 2007 10:39:09 -0000 1.4 |
57 |
+++ metadata.xml 26 Sep 2008 20:05:51 -0000 1.5 |
58 |
@@ -3,16 +3,12 @@ |
59 |
<pkgmetadata> |
60 |
<herd>sci</herd> |
61 |
<herd>python</herd> |
62 |
-<longdescription> |
63 |
-NumPy is a general-purpose array-processing package designed to |
64 |
-efficiently manipulate large multi-dimensional arrays of arbitrary |
65 |
-records without sacrificing too much speed for small multi-dimensional |
66 |
-arrays. NumPy is built on the Numeric code base and adds features |
67 |
-introduced by numarray as well as an extended C-API and the ability to |
68 |
-create arrays of arbitrary type. |
69 |
- |
70 |
-There are also basic facilities for discrete fourier transform, |
71 |
-basic linear algebra and random number generation. |
72 |
-It is the successor of Numeric and numarray. |
73 |
+<longdescription lang="en"> |
74 |
+ NumPy is a general-purpose array-processing Python package designed to |
75 |
+ efficiently manipulate large multi-dimensional arrays of arbitrary |
76 |
+ records without sacrificing too much speed for small multi-dimensional |
77 |
+ arrays. There are also basic facilities for discrete fourier transform, |
78 |
+ basic linear algebra and random number generation. |
79 |
+ It is the successor of Numeric and numarray. |
80 |
</longdescription> |
81 |
</pkgmetadata> |
82 |
|
83 |
|
84 |
|
85 |
1.1 dev-python/numpy/numpy-1.2.0.ebuild |
86 |
|
87 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/numpy-1.2.0.ebuild?rev=1.1&view=markup |
88 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/numpy-1.2.0.ebuild?rev=1.1&content-type=text/plain |
89 |
|
90 |
Index: numpy-1.2.0.ebuild |
91 |
=================================================================== |
92 |
# Copyright 1999-2008 Gentoo Foundation |
93 |
# Distributed under the terms of the GNU General Public License v2 |
94 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.2.0.ebuild,v 1.1 2008/09/26 20:05:51 bicatali Exp $ |
95 |
|
96 |
NEED_PYTHON=2.4 |
97 |
|
98 |
inherit distutils eutils flag-o-matic fortran |
99 |
|
100 |
DESCRIPTION="Fast array and numerical python library" |
101 |
SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz" |
102 |
HOMEPAGE="http://numeric.scipy.org/" |
103 |
|
104 |
RDEPEND="!dev-python/f2py |
105 |
lapack? ( virtual/cblas virtual/lapack )" |
106 |
|
107 |
DEPEND="${RDEPEND} |
108 |
test? ( >=dev-python/nose-0.10 ) |
109 |
lapack? ( dev-util/pkgconfig )" |
110 |
|
111 |
IUSE="lapack test" |
112 |
SLOT="0" |
113 |
KEYWORDS="~amd64 ~ia64 ~sparc ~x86" |
114 |
LICENSE="BSD" |
115 |
|
116 |
# whatever LDFLAGS set will break linking |
117 |
# see progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
118 |
if [ -n "${LDFLAGS}" ]; then |
119 |
append-ldflags -shared |
120 |
else |
121 |
LDFLAGS="-shared" |
122 |
fi |
123 |
|
124 |
pkg_setup() { |
125 |
# only one fortran to link with: |
126 |
# linking with cblas and lapack library will force |
127 |
# autodetecting and linking to all available fortran compilers |
128 |
use lapack || return |
129 |
FORTRAN="gfortran g77 ifc" |
130 |
fortran_pkg_setup |
131 |
local fc= |
132 |
case ${FORTRANC} in |
133 |
gfortran) fc=gnu95 ;; |
134 |
g77) fc=gnu ;; |
135 |
ifc|ifort) |
136 |
if use ia64; then |
137 |
fc=intele |
138 |
elif use amd64; then |
139 |
fc=intelem |
140 |
else |
141 |
fc=intel |
142 |
fi |
143 |
;; |
144 |
*) eerror "Unknown fortran compiler: ${FORTRANC}" |
145 |
die "numpy_fortran_setup failed" ;; |
146 |
esac |
147 |
|
148 |
# when fortran flags are set, pic is removed. |
149 |
use amd64 && FFLAGS="${FFLAGS} -fPIC" |
150 |
export NUMPY_FCONFIG="config_fc --fcompiler=${fc} --noopt --noarch" |
151 |
} |
152 |
|
153 |
src_unpack() { |
154 |
unpack ${A} |
155 |
cd "${S}" |
156 |
|
157 |
# Fix some paths and docs in f2py |
158 |
epatch "${FILESDIR}"/${PN}-1.1.0-f2py.patch |
159 |
|
160 |
# Gentoo patch for ATLAS library names |
161 |
sed -i \ |
162 |
-e "s:'f77blas':'blas':g" \ |
163 |
-e "s:'ptf77blas':'blas':g" \ |
164 |
-e "s:'ptcblas':'cblas':g" \ |
165 |
-e "s:'lapack_atlas':'lapack':g" \ |
166 |
numpy/distutils/system_info.py \ |
167 |
|| die "sed system_info.py failed" |
168 |
|
169 |
if use lapack; then |
170 |
append-ldflags "$(pkg-config --libs-only-other cblas lapack)" |
171 |
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die |
172 |
cat >> site.cfg <<-EOF |
173 |
[blas_opt] |
174 |
include_dirs = $(pkg-config --cflags-only-I cblas \ |
175 |
| sed -e 's/^-I//' -e 's/ -I/:/g') |
176 |
library_dirs = $(pkg-config --libs-only-L cblas \ |
177 |
| sed -e 's/^-L//' -e 's/ -L/:/g') |
178 |
libraries = $(pkg-config --libs-only-l cblas \ |
179 |
| sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
180 |
[lapack_opt] |
181 |
library_dirs = $(pkg-config --libs-only-L lapack \ |
182 |
| sed -e 's/^-L//' -e 's/ -L/:/g') |
183 |
libraries = $(pkg-config --libs-only-l lapack \ |
184 |
| sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
185 |
EOF |
186 |
else |
187 |
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
188 |
fi |
189 |
} |
190 |
|
191 |
src_compile() { |
192 |
# when fortran flags are set, pic is removed but unfortunately needed |
193 |
distutils_src_compile ${NUMPY_FCONFIG} |
194 |
} |
195 |
|
196 |
src_test() { |
197 |
"${python}" setup.py ${NUMPY_FCONFIG} install \ |
198 |
--home="${S}"/test \ |
199 |
--no-compile \ |
200 |
|| die "install test failed" |
201 |
pushd "${S}"/test/lib* |
202 |
PYTHONPATH=python "${python}" -c "import numpy; numpy.test()" 2>&1 | tee test.log |
203 |
grep -q '^ERROR' test.log && die "test failed" |
204 |
popd |
205 |
rm -rf test |
206 |
} |
207 |
|
208 |
src_install() { |
209 |
distutils_src_install ${NUMPY_FCONFIG} |
210 |
dodoc THANKS.txt DEV_README.txt COMPATIBILITY |
211 |
rm -f "${D}"/usr/lib/python*/site-packages/numpy/*.txt |
212 |
docinto f2py |
213 |
dodoc numpy/f2py/docs/*.txt || die "dodoc f2py failed" |
214 |
doman numpy/f2py/f2py.1 || die "doman failed" |
215 |
} |
216 |
|
217 |
pkg_postinst() { |
218 |
if ! built_with_use sys-devel/gcc fortran && |
219 |
! has_version dev-lang/ifc |
220 |
then |
221 |
ewarn "To use numpy's f2py you need a fortran compiler." |
222 |
ewarn "You can either set USE=fortran flag and re-install gcc," |
223 |
ewarn "or install dev-lang/ifc" |
224 |
fi |
225 |
} |