From f2f0284b5678202e5cdf3fe2aef8a0eee4495f3a Mon Sep 17 00:00:00 2001 From: Francesco Colista Date: Sat, 29 Jul 2017 11:32:06 +0000 Subject: testing/py-scipy: upgrade to 0.19.1, fixes #7609 --- testing/py-scipy/APKBUILD | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'testing/py-scipy/APKBUILD') diff --git a/testing/py-scipy/APKBUILD b/testing/py-scipy/APKBUILD index 242ecb4807..562db089dd 100644 --- a/testing/py-scipy/APKBUILD +++ b/testing/py-scipy/APKBUILD @@ -1,32 +1,48 @@ # Contributor: Isaac Dunham # Maintainer: Isaac Dunham pkgname=py-scipy -pkgver=0.19.0 +pkgver=0.19.1 pkgrel=0 pkgdesc="Python library for scientific computing" url="http://www.scipy.org" arch="all" license="BSD" -depends="python2 py-numpy-f2py" -depends_dev="python2-dev gfortran py-numpy-dev openblas-dev" -makedepends="$depends_dev py-setuptools" -install="" -subpackages="$pkgname-dev" -source="https://files.pythonhosted.org/packages/source/s/scipy/scipy-$pkgver.zip" -builddir="$srcdir"/scipy-$pkgver +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 config || return 1 - python2 setup.py config_fc \ - --fcompiler=gnu95 build || return 1 + 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" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + $python setup.py install --prefix=/usr --root="$subpkgdir" } -sha512sums="3144bc14155ae790f2aba5ca6b22cbe5e7170ae1ad305774601ac22e479e1377197e47e3cd7033a5ca3464f5e944db91d3c4615111eb3369cbdd3f9079ae8c54 scipy-0.19.0.zip" + +sha512sums="a9717bc42d5812f6929ceb330717be612c85d436d0134a0a6f5a9f802accb78090ace36e8b90759023a56e665dc95c439a1e0b51e4965bb51139ee0c9da1b695 py-scipy-0.19.1.tar.gz" -- cgit v1.2.3