1 |
bicatali 08/11/06 00:04:43 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: numpy-1.2.1.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.68 dev-python/numpy/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.68&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.68&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/ChangeLog?r1=1.67&r2=1.68 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v |
19 |
retrieving revision 1.67 |
20 |
retrieving revision 1.68 |
21 |
diff -u -r1.67 -r1.68 |
22 |
--- ChangeLog 1 Oct 2008 09:15:31 -0000 1.67 |
23 |
+++ ChangeLog 6 Nov 2008 00:04:43 -0000 1.68 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-python/numpy |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.67 2008/10/01 09:15:31 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.68 2008/11/06 00:04:43 bicatali Exp $ |
29 |
+ |
30 |
+*numpy-1.2.1 (06 Nov 2008) |
31 |
+ |
32 |
+ 06 Nov 2008; Sébastien Fabbro <bicatali@g.o> +numpy-1.2.1.ebuild: |
33 |
+ Version bump |
34 |
|
35 |
01 Oct 2008; Raúl Porcel <armin76@g.o> numpy-1.2.0.ebuild: |
36 |
Add ~alpha wrt #233554 |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-python/numpy/numpy-1.2.1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/numpy-1.2.1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/numpy/numpy-1.2.1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: numpy-1.2.1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2008 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/numpy-1.2.1.ebuild,v 1.1 2008/11/06 00:04:43 bicatali Exp $ |
50 |
|
51 |
NEED_PYTHON=2.4 |
52 |
|
53 |
inherit distutils eutils flag-o-matic fortran |
54 |
|
55 |
DESCRIPTION="Fast array and numerical python library" |
56 |
SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz" |
57 |
HOMEPAGE="http://numeric.scipy.org/" |
58 |
|
59 |
RDEPEND="!dev-python/f2py |
60 |
lapack? ( virtual/cblas virtual/lapack )" |
61 |
|
62 |
DEPEND="${RDEPEND} |
63 |
test? ( >=dev-python/nose-0.10 ) |
64 |
lapack? ( dev-util/pkgconfig )" |
65 |
|
66 |
IUSE="lapack test" |
67 |
SLOT="0" |
68 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~sparc ~x86" |
69 |
LICENSE="BSD" |
70 |
|
71 |
# whatever LDFLAGS set will break linking |
72 |
# see progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
73 |
if [ -n "${LDFLAGS}" ]; then |
74 |
append-ldflags -shared |
75 |
else |
76 |
LDFLAGS="-shared" |
77 |
fi |
78 |
|
79 |
pkg_setup() { |
80 |
# only one fortran to link with: |
81 |
# linking with cblas and lapack library will force |
82 |
# autodetecting and linking to all available fortran compilers |
83 |
use lapack || return |
84 |
FORTRAN="gfortran g77 ifc" |
85 |
fortran_pkg_setup |
86 |
local fc= |
87 |
case ${FORTRANC} in |
88 |
gfortran) fc=gnu95 ;; |
89 |
g77) fc=gnu ;; |
90 |
ifc|ifort) |
91 |
if use ia64; then |
92 |
fc=intele |
93 |
elif use amd64; then |
94 |
fc=intelem |
95 |
else |
96 |
fc=intel |
97 |
fi |
98 |
;; |
99 |
*) eerror "Unknown fortran compiler: ${FORTRANC}" |
100 |
die "numpy_fortran_setup failed" ;; |
101 |
esac |
102 |
|
103 |
# when fortran flags are set, pic is removed. |
104 |
use amd64 && FFLAGS="${FFLAGS} -fPIC" |
105 |
export NUMPY_FCONFIG="config_fc --fcompiler=${fc} --noopt --noarch" |
106 |
} |
107 |
|
108 |
src_unpack() { |
109 |
unpack ${A} |
110 |
cd "${S}" |
111 |
|
112 |
# Fix some paths and docs in f2py |
113 |
epatch "${FILESDIR}"/${PN}-1.1.0-f2py.patch |
114 |
|
115 |
# Gentoo patch for ATLAS library names |
116 |
sed -i \ |
117 |
-e "s:'f77blas':'blas':g" \ |
118 |
-e "s:'ptf77blas':'blas':g" \ |
119 |
-e "s:'ptcblas':'cblas':g" \ |
120 |
-e "s:'lapack_atlas':'lapack':g" \ |
121 |
numpy/distutils/system_info.py \ |
122 |
|| die "sed system_info.py failed" |
123 |
|
124 |
if use lapack; then |
125 |
append-ldflags "$(pkg-config --libs-only-other cblas lapack)" |
126 |
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die |
127 |
cat >> site.cfg <<-EOF |
128 |
[atlas] |
129 |
include_dirs = $(pkg-config --cflags-only-I \ |
130 |
cblas lapack | sed -e 's/^-I//' -e 's/ -I/:/g') |
131 |
library_dirs = $(pkg-config --libs-only-L \ |
132 |
cblas lapack | sed -e \ |
133 |
's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):/usr/$(get_libdir) |
134 |
atlas_libs = $(pkg-config --libs-only-l \ |
135 |
cblas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
136 |
lapack_libs = $(pkg-config --libs-only-l \ |
137 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
138 |
[blas_opt] |
139 |
include_dirs = $(pkg-config --cflags-only-I \ |
140 |
cblas | sed -e 's/^-I//' -e 's/ -I/:/g') |
141 |
library_dirs = $(pkg-config --libs-only-L \ |
142 |
cblas | sed -e 's/^-L//' -e 's/ -L/:/g' \ |
143 |
-e 's/ //g'):/usr/$(get_libdir) |
144 |
libraries = $(pkg-config --libs-only-l \ |
145 |
cblas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
146 |
[lapack_opt] |
147 |
library_dirs = $(pkg-config --libs-only-L \ |
148 |
lapack | sed -e 's/^-L//' -e 's/ -L/:/g' \ |
149 |
-e 's/ //g'):/usr/$(get_libdir) |
150 |
libraries = $(pkg-config --libs-only-l \ |
151 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
152 |
EOF |
153 |
else |
154 |
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
155 |
fi |
156 |
} |
157 |
|
158 |
src_compile() { |
159 |
# when fortran flags are set, pic is removed but unfortunately needed |
160 |
distutils_src_compile ${NUMPY_FCONFIG} |
161 |
} |
162 |
|
163 |
src_test() { |
164 |
"${python}" setup.py ${NUMPY_FCONFIG} install \ |
165 |
--home="${S}"/test \ |
166 |
--no-compile \ |
167 |
|| die "install test failed" |
168 |
pushd "${S}"/test/lib* |
169 |
PYTHONPATH=python "${python}" -c "import numpy; numpy.test()" 2>&1 | tee test.log |
170 |
grep -q '^ERROR' test.log && die "test failed" |
171 |
popd |
172 |
rm -rf test |
173 |
} |
174 |
|
175 |
src_install() { |
176 |
distutils_src_install ${NUMPY_FCONFIG} |
177 |
dodoc THANKS.txt DEV_README.txt COMPATIBILITY |
178 |
rm -f "${D}"/usr/lib/python*/site-packages/numpy/*.txt |
179 |
docinto f2py |
180 |
dodoc numpy/f2py/docs/*.txt || die "dodoc f2py failed" |
181 |
doman numpy/f2py/f2py.1 || die "doman failed" |
182 |
} |
183 |
|
184 |
pkg_postinst() { |
185 |
if ! built_with_use sys-devel/gcc fortran && |
186 |
! has_version dev-lang/ifc |
187 |
then |
188 |
ewarn "To use numpy's f2py you need a fortran compiler." |
189 |
ewarn "You can either set USE=fortran flag and re-install gcc," |
190 |
ewarn "or install dev-lang/ifc" |
191 |
fi |
192 |
} |