void-packages/srcpkgs/python-scipy/template
2017-06-22 11:06:18 +02:00

39 lines
1.1 KiB
Bash

# Template file for 'python-scipy'
pkgname=python-scipy
version=0.19.1
revision=1
wrksrc="scipy-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools
python-Cython python3-Cython gcc-fortran"
makedepends="python-devel python3-devel python-numpy python3-numpy lapack-devel"
depends="python-numpy"
pycompile_module="scipy"
short_desc="Scientific library for Python2"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="http://www.scipy.org/"
license="3-clause-BSD"
distfiles="https://github.com/scipy/scipy/archive/v${version}.tar.gz"
checksum=4f3c65d325c6208d0718b07b0e000a832d6ed50e3bd2211e77b3d0d5b9f198a9
LDFLAGS="-shared"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-scipy_package() {
replaces="python3.4-scipy>=0"
pycompile_module="scipy"
depends="python3-numpy"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}
python3.4-scipy_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-scipy>=${version}_${revision}"
}