55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
# Template file for 'python-numpy'
|
|
pkgname=python-numpy
|
|
version=1.11.0
|
|
revision=1
|
|
wrksrc="numpy-${version}"
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools gcc-fortran"
|
|
makedepends="python-devel python3.4-devel lapack-devel cblas-devel"
|
|
pycompile_module="numpy"
|
|
short_desc="Fast and sophisticated array facility to Python2"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="http://www.numpy.org/"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/n/numpy/numpy-${version}.tar.gz"
|
|
checksum=a1d1268d200816bfb9727a7a27b78d8e37ecec2e4d5ebd33eb64e2789e0db43e
|
|
|
|
alternatives="
|
|
numpy:f2py:/usr/bin/f2py2.7
|
|
numpy:f2py.1:/usr/share/man/man1/f2py2.7.1"
|
|
|
|
export ATLAS=None
|
|
LDFLAGS="-shared"
|
|
|
|
post_install() {
|
|
# create compat symlinks for .h files
|
|
vmkdir usr/include/python2.7
|
|
ln -sfr ${DESTDIR}/usr/lib/python2.7/site-packages/numpy/core/include/numpy \
|
|
${DESTDIR}/usr/include/python2.7
|
|
vmkdir usr/include/python3.4m
|
|
ln -sfr ${DESTDIR}/usr/lib/python3.4/site-packages/numpy/core/include/numpy \
|
|
${DESTDIR}/usr/include/python3.4m
|
|
|
|
# create versioned man pages
|
|
vman doc/f2py/f2py.1 f2py2.7.1
|
|
vman doc/f2py/f2py.1 f2py3.4.1
|
|
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-numpy_package() {
|
|
alternatives="
|
|
numpy:f2py:/usr/bin/f2py3.4
|
|
numpy:f2py.1:/usr/share/man/man1/f2py3.4.1"
|
|
pycompile_version="3.4"
|
|
pycompile_module="numpy"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/f2py3.4
|
|
vmove usr/lib/python3.4
|
|
vmove usr/include/python3.4m
|
|
vmove usr/share/man/man1/f2py3.4.1
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|