1 |
djc 10/09/02 13:25:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: numpy-1.5.0.ebuild |
5 |
Log: |
6 |
Version bump numpy to 1.5.0 (bug 335602). |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.116 dev-python/numpy/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.116&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?rev=1.116&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/ChangeLog?r1=1.115&r2=1.116 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v |
19 |
retrieving revision 1.115 |
20 |
retrieving revision 1.116 |
21 |
diff -u -r1.115 -r1.116 |
22 |
--- ChangeLog 25 Jul 2010 17:06:03 -0000 1.115 |
23 |
+++ ChangeLog 2 Sep 2010 13:25:02 -0000 1.116 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for dev-python/numpy |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.115 2010/07/25 17:06:03 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/numpy/ChangeLog,v 1.116 2010/09/02 13:25:02 djc Exp $ |
29 |
+ |
30 |
+*numpy-1.5.0 (02 Sep 2010) |
31 |
+ |
32 |
+ 02 Sep 2010; Dirkjan Ochtman <djc@g.o> +numpy-1.5.0.ebuild: |
33 |
+ Version bump to 1.5.0 (bug 335602). |
34 |
|
35 |
25 Jul 2010; Raúl Porcel <armin76@g.o> numpy-1.4.1.ebuild: |
36 |
ia64/s390/sh/sparc stable wrt #326251 |
37 |
|
38 |
|
39 |
|
40 |
1.1 dev-python/numpy/numpy-1.5.0.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.5.0.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/numpy/numpy-1.5.0.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: numpy-1.5.0.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 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.5.0.ebuild,v 1.1 2010/09/02 13:25:02 djc Exp $ |
50 |
|
51 |
EAPI="3" |
52 |
PYTHON_DEPEND="2" |
53 |
SUPPORT_PYTHON_ABIS="1" |
54 |
RESTRICT_PYTHON_ABIS="3.*" |
55 |
|
56 |
inherit distutils eutils flag-o-matic toolchain-funcs versionator |
57 |
|
58 |
NP="${PN}-1.3" |
59 |
|
60 |
DESCRIPTION="Fast array and numerical python library" |
61 |
HOMEPAGE="http://numpy.scipy.org/ http://pypi.python.org/pypi/numpy" |
62 |
SRC_URI="mirror://sourceforge/numpy/${P}.tar.gz |
63 |
doc? ( |
64 |
http://docs.scipy.org/doc/${NP}.x/numpy-html.zip -> ${NP}-html.zip |
65 |
http://docs.scipy.org/doc/${NP}.x/numpy-ref.pdf -> ${NP}-ref.pdf |
66 |
http://docs.scipy.org/doc/${NP}.x/numpy-user.pdf -> ${NP}-user.pdf |
67 |
)" |
68 |
|
69 |
LICENSE="BSD" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 -ppc -ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
72 |
IUSE="doc lapack test" |
73 |
|
74 |
RDEPEND="dev-python/setuptools |
75 |
lapack? ( virtual/cblas virtual/lapack )" |
76 |
DEPEND="${RDEPEND} |
77 |
lapack? ( dev-util/pkgconfig ) |
78 |
test? ( >=dev-python/nose-0.10 ) |
79 |
doc? ( app-arch/unzip )" |
80 |
|
81 |
pkg_setup() { |
82 |
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573 |
83 |
# with the subtle difference that we don't want to break Darwin where |
84 |
# -shared is not a valid linker argument |
85 |
if [[ ${CHOST} != *-darwin* ]] ; then |
86 |
append-ldflags -shared |
87 |
fi |
88 |
|
89 |
# only one fortran to link with: |
90 |
# linking with cblas and lapack library will force |
91 |
# autodetecting and linking to all available fortran compilers |
92 |
use lapack || return |
93 |
[[ -z ${FC} ]] && FC=$(tc-getFC) |
94 |
# when fortran flags are set, pic is removed. |
95 |
FFLAGS="${FFLAGS} -fPIC" |
96 |
export NUMPY_FCONFIG="config_fc --noopt --noarch" |
97 |
} |
98 |
|
99 |
src_unpack() { |
100 |
unpack ${P}.tar.gz |
101 |
if use doc; then |
102 |
unzip -qo "${DISTDIR}"/${NP}-html.zip -d html || die |
103 |
fi |
104 |
} |
105 |
|
106 |
src_prepare() { |
107 |
epatch "${FILESDIR}"/${PN}-1.1.0-f2py.patch |
108 |
epatch "${FILESDIR}"/${PN}-1.3.0-fenv-freebsd.patch # bug 279487 |
109 |
|
110 |
# Gentoo patch for ATLAS library names |
111 |
sed -i \ |
112 |
-e "s:'f77blas':'blas':g" \ |
113 |
-e "s:'ptf77blas':'blas':g" \ |
114 |
-e "s:'ptcblas':'cblas':g" \ |
115 |
-e "s:'lapack_atlas':'lapack':g" \ |
116 |
numpy/distutils/system_info.py \ |
117 |
|| die "sed system_info.py failed" |
118 |
|
119 |
if use lapack; then |
120 |
append-ldflags "$(pkg-config --libs-only-other cblas lapack)" |
121 |
sed -i -e '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py || die |
122 |
local libdir="${EPREFIX}"/usr/$(get_libdir) |
123 |
cat >> site.cfg <<-EOF |
124 |
[atlas] |
125 |
include_dirs = $(pkg-config --cflags-only-I \ |
126 |
cblas | sed -e 's/^-I//' -e 's/ -I/:/g') |
127 |
library_dirs = $(pkg-config --libs-only-L \ |
128 |
cblas blas lapack | sed -e 's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir} |
129 |
atlas_libs = $(pkg-config --libs-only-l \ |
130 |
cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
131 |
lapack_libs = $(pkg-config --libs-only-l \ |
132 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
133 |
[blas_opt] |
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 | sed -e 's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir} |
138 |
libraries = $(pkg-config --libs-only-l \ |
139 |
cblas blas | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
140 |
[lapack_opt] |
141 |
library_dirs = $(pkg-config --libs-only-L \ |
142 |
lapack | sed -e 's/^-L//' -e 's/ -L/:/g' -e 's/ //g'):${libdir} |
143 |
libraries = $(pkg-config --libs-only-l \ |
144 |
lapack | sed -e 's/^-l//' -e 's/ -l/, /g' -e 's/,.pthread//g') |
145 |
EOF |
146 |
else |
147 |
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None |
148 |
fi |
149 |
|
150 |
epatch "${FILESDIR}"/${PN}-1.4.0-interix.patch |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
distutils_src_compile ${NUMPY_FCONFIG} |
155 |
} |
156 |
|
157 |
src_test() { |
158 |
testing() { |
159 |
"$(PYTHON)" setup.py ${NUMPY_FCONFIG} build -b "build-${PYTHON_ABI}" install \ |
160 |
--home="${S}/test-${PYTHON_ABI}" --no-compile || die "install test failed" |
161 |
pushd "${S}/test-${PYTHON_ABI}/"lib* > /dev/null |
162 |
PYTHONPATH=python "$(PYTHON)" -c "import numpy; numpy.test()" 2>&1 | tee test.log |
163 |
grep -q '^ERROR' test.log && die "test failed" |
164 |
popd > /dev/null |
165 |
rm -fr test-${PYTHON_ABI} |
166 |
} |
167 |
python_execute_function testing |
168 |
} |
169 |
|
170 |
src_install() { |
171 |
[[ -z ${ED} ]] && local ED=${D} |
172 |
distutils_src_install ${NUMPY_FCONFIG} |
173 |
dodoc THANKS.txt DEV_README.txt COMPATIBILITY |
174 |
rm -f "${ED}"/usr/lib/python*/site-packages/numpy/*.txt || die |
175 |
docinto f2py |
176 |
dodoc numpy/f2py/docs/*.txt || die "dodoc f2py failed" |
177 |
doman numpy/f2py/f2py.1 || die "doman failed" |
178 |
if use doc; then |
179 |
insinto /usr/share/doc/${PF} |
180 |
doins -r "${WORKDIR}"/html || die |
181 |
doins "${DISTDIR}"/${NP}*pdf || die |
182 |
fi |
183 |
} |