42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'python-scipy'
|
|
pkgname=python-scipy
|
|
version=0.16.1
|
|
revision=1
|
|
wrksrc="scipy-${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 python-numpy-devel
|
|
python3.4-numpy-devel blas-devel 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="${PYPI_SITE}/s/scipy/scipy-${version}.tar.gz"
|
|
checksum=ecd1efbb1c038accb0516151d1e6679809c6010288765eb5da6051550bf52260
|
|
|
|
export ATLAS=None
|
|
export FFLAGS="-fPIC"
|
|
LDFLAGS="-shared"
|
|
|
|
pre_build() {
|
|
# remove shebangs
|
|
find scipy -type f -name '*.py' -exec sed -i '/^#!.*python$/d' {} +
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3.4-scipy_package() {
|
|
pycompile_version="3.4"
|
|
pycompile_module="scipy"
|
|
depends="python3.4-numpy"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|