aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
Diffstat (limited to 'community')
-rw-r--r--community/py-scipy/APKBUILD48
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"