aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-scipy/APKBUILD
blob: b1fb0f1e8e18c4142f597df97fcf342449532f63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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=1
pkgdesc="Python library for scientific computing"
url="http://www.scipy.org"
arch="all"
license="BSD"
depends="python"
depends_dev="python-dev gfortran py-numpy-dev openblas-dev"
makedepends="$depends_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"