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