python-numpy: update to 1.9.0

This commit is contained in:
Alessio Sergi 2014-09-12 13:31:00 +02:00
parent e5fdbaf91f
commit 7e7ca05064

View file

@ -1,6 +1,6 @@
# Template file for 'python-numpy' # Template file for 'python-numpy'
pkgname=python-numpy pkgname=python-numpy
version=1.8.2 version=1.9.0
revision=1 revision=1
wrksrc="numpy-${version}" wrksrc="numpy-${version}"
build_style=python-module build_style=python-module
@ -13,7 +13,7 @@ maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
homepage="http://www.numpy.org/" homepage="http://www.numpy.org/"
license="3-clause-BSD" license="3-clause-BSD"
distfiles="${SOURCEFORGE_SITE}/numpy/NumPy/${version}/numpy-${version}.tar.gz" distfiles="${SOURCEFORGE_SITE}/numpy/NumPy/${version}/numpy-${version}.tar.gz"
checksum=ce5743a3a24bf13e0373faeb240b08e48d139e6313f1b5fbfd771057c7a49dbd checksum=f7e6cede959ec7d26dc242150839f3193b4ec16d733f1a4bff623c4ed0d27ff5
export ATLAS=None export ATLAS=None
LDFLAGS="-shared" LDFLAGS="-shared"
@ -22,10 +22,8 @@ pre_build() {
# make sure _dotblas.so gets built # make sure _dotblas.so gets built
sed -i '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py sed -i '/NO_ATLAS_INFO/,+1d' numpy/core/setup.py
# no tests & docs as installed by default # no tests
sed -i "/config.add_subpackage('doc')/d;/config.add_data_dir('doc')/d" numpy/setup.py
sed -i "/config.add_data_dir('tests\/data')/d" numpy/core/setup.py sed -i "/config.add_data_dir('tests\/data')/d" numpy/core/setup.py
sed -i "/config.add_data_dir('docs')/d" numpy/f2py/setup.py
sed -i "/config.add_data_dir('tests')/d" numpy/setup.py numpy/*/setup.py sed -i "/config.add_data_dir('tests')/d" numpy/setup.py numpy/*/setup.py
# remove *.c source files # remove *.c source files
@ -49,8 +47,8 @@ post_install() {
ln -sf /usr/lib/python3.4/site-packages/numpy/core/include/numpy ${DESTDIR}/usr/include/python3.4/numpy ln -sf /usr/lib/python3.4/site-packages/numpy/core/include/numpy ${DESTDIR}/usr/include/python3.4/numpy
# install f2py*.1 man pages # install f2py*.1 man pages
vman ${wrksrc}/numpy/f2py/f2py.1 vman ${wrksrc}/doc/f2py/f2py.1
vman ${wrksrc}/numpy/f2py/f2py.1 f2py3.1 vman ${wrksrc}/doc/f2py/f2py.1 f2py3.1
vlicense ${wrksrc}/LICENSE.txt LICENSE vlicense ${wrksrc}/LICENSE.txt LICENSE
} }
@ -73,7 +71,6 @@ python-numpy-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include/python2.7/numpy vmove usr/include/python2.7/numpy
vmove usr/lib/python2.7/site-packages/numpy/core/include/numpy vmove usr/lib/python2.7/site-packages/numpy/core/include/numpy
vmove usr/lib/python2.7/site-packages/numpy/numarray/include/numpy
vmove usr/lib/python2.7/site-packages/numpy/random/randomkit.h vmove usr/lib/python2.7/site-packages/numpy/random/randomkit.h
} }
} }
@ -84,7 +81,6 @@ python3.4-numpy-devel_package() {
pkg_install() { pkg_install() {
vmove usr/include/python3.4/numpy vmove usr/include/python3.4/numpy
vmove usr/lib/python3.4/site-packages/numpy/core/include/numpy vmove usr/lib/python3.4/site-packages/numpy/core/include/numpy
vmove usr/lib/python3.4/site-packages/numpy/numarray/include/numpy
vmove usr/lib/python3.4/site-packages/numpy/random/randomkit.h vmove usr/lib/python3.4/site-packages/numpy/random/randomkit.h
} }
} }