diff options
author | Martell Malone <martellmalone@gmail.com> | 2018-02-12 16:19:22 -0800 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-02 17:29:31 +0000 |
commit | 75d334a13070bd1e91d0f38c1e1358a8b220acb7 (patch) | |
tree | e4d42a55b1e80e5d8438995426833e220a923ef3 /community/py-scipy | |
parent | 0bb7508216fc422635036f64ad7db750ce01fc16 (diff) | |
download | aports-75d334a13070bd1e91d0f38c1e1358a8b220acb7.tar.bz2 aports-75d334a13070bd1e91d0f38c1e1358a8b220acb7.tar.xz |
community/py-scipy: upgrade to 1.0.0
move from testing to community
Diffstat (limited to 'community/py-scipy')
-rw-r--r-- | community/py-scipy/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/py-scipy/APKBUILD b/community/py-scipy/APKBUILD new file mode 100644 index 0000000000..a52e8c2370 --- /dev/null +++ b/community/py-scipy/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Martell Malone <martellmalone@gmail.com> +# Maintainer: Isaac Dunham <ibid.ag@gmail.com> +pkgname=py-scipy +pkgver=1.0.0 +pkgrel=1 +pkgdesc="Python library for scientific computing" +url="http://www.scipy.org" +arch="all !s390x" +license="BSD" +depends="py-numpy-f2py" +makedepends="python2-dev python3-dev py-setuptools gfortran py-numpy-dev openblas-dev cython-dev" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname#py-}/${pkgname#py-}/archive/v$pkgver.tar.gz" +builddir="$srcdir"/${pkgname#py-}-$pkgver + +build() { + cd "$builddir" + export LDFLAGS="$LDFLAGS -shared" + python2 setup.py config_fc --fcompiler=gnu95 build + python3 setup.py config_fc --fcompiler=gnu95 build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//^py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//^py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + + +sha512sums="7d55c5660ac606933d517171a229b288fd0ea8d9fdd8e30fac3d294545a26b2700c7b100b014a93231c4122dee0f1ddd741c00f5902643a6ccc287cdf581da7a py-scipy-1.0.0.tar.gz" |