summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2014-09-02 21:10:29 -0700
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-03 12:41:28 +0000
commit45d3761fd275adfc526a8542f19b874d1c9175c1 (patch)
tree60b5ce36ae8e4f6fa31972dfe897c007758e76fe /testing
parent5bc265ef454ba0f8d82e8298c3246999fb11a9c8 (diff)
downloadaports-45d3761fd275adfc526a8542f19b874d1c9175c1.tar.bz2
aports-45d3761fd275adfc526a8542f19b874d1c9175c1.tar.xz
testing/py-scipy: add new aport
A python module for scientific computing.
Diffstat (limited to 'testing')
-rw-r--r--testing/py-scipy/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/py-scipy/APKBUILD b/testing/py-scipy/APKBUILD
new file mode 100644
index 000000000..c9097bec4
--- /dev/null
+++ b/testing/py-scipy/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Isaac Dunham <ibid.ag@gmail.com>
+# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
+pkgname=py-scipy
+_pkgname=scipy
+pkgver=0.14.0
+pkgrel=0
+pkgdesc="Python library for scientific computing"
+url="http://www.scipy.org"
+arch="all"
+license="BSD"
+depends="python"
+depends_dev=""
+makedepends="python-dev gfortran py-numpy-dev openblas-dev py-setuptools"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://sourceforge.net/projects/scipy/files/scipy/$pkgver/scipy-$pkgver.tar.gz"
+
+_builddir="$srcdir"/scipy-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ export LDFLAGS="$LDFLAGS -shared"
+ python setup.py config_fc --fcompiler=gnu95 config || return 1
+ python setup.py config_fc --fcompiler=gnu95 build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -pm 0755 "$pkgdir"/usr/share/licenses/$package && \
+ cp LICENSE.txt "$pkgdir"/usr/share/licenses/$package || return 1
+}
+
+md5sums="d7c7f4ccf8b07b08d6fe49d5cd51f85d scipy-0.14.0.tar.gz"
+sha256sums="4b41a3e6bf178df1c7f0ef3bfeabf1f56610329aca5dbd7b6d64da8ac9af6b14 scipy-0.14.0.tar.gz"
+sha512sums="ad1278740c1dc44c5e1b15335d61c4552b66c0439325ed6eeebc5872a1c0ba3fce1dd8509116b318d01e2d41da2ee49ec168da330a7fafd22511138b29f7235d scipy-0.14.0.tar.gz"