void-packages/srcpkgs/python-numpy/template

61 lines
1.6 KiB
Bash

# Template file for 'python-numpy'
pkgname=python-numpy
version=1.11.3
revision=1
wrksrc="numpy-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools
python-Cython python3-Cython gcc-fortran"
makedepends="python-devel python3-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="https://github.com/numpy/numpy/archive/v${version}.tar.gz"
checksum=956afdeb9b5600e873326e410e9379684dac8f8f47ea569151a417984e7799cf
alternatives="
numpy:f2py:/usr/bin/f2py2
numpy:f2py.1:/usr/share/man/man1/f2py2.1"
export ATLAS=None
LDFLAGS="-shared"
post_install() {
# create compat symlinks for .h files
vmkdir ${py2_inc}
ln -sfr ${DESTDIR}/${py2_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py2_inc}
vmkdir ${py3_inc}
ln -sfr ${DESTDIR}/${py3_sitelib}/numpy/core/include/numpy \
${DESTDIR}/${py3_inc}
# create versioned man pages
vman doc/f2py/f2py.1 f2py2.1
vman doc/f2py/f2py.1 f2py3.1
vlicense LICENSE.txt LICENSE
}
python3-numpy_package() {
alternatives="
numpy:f2py:/usr/bin/f2py3
numpy:f2py.1:/usr/share/man/man1/f2py3.1"
pycompile_module="numpy"
replaces="python3.4-numpy>=0"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/f2py3
vmove ${py3_sitelib}
vmove ${py3_inc}
vmove usr/share/man/man1/f2py3.1
vlicense LICENSE.txt LICENSE
}
}
python3.4-numpy_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-numpy>=${version}_${revision}"
}