mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-10-26 14:02:00 +01:00
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
|
|
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
|
|
pkgname=py-scipy
|
|
_pkgname=scipy
|
|
pkgver=0.15.1
|
|
pkgrel=0
|
|
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="be56cd8e60591d6332aac792a5880110 scipy-0.15.1.tar.gz"
|
|
sha256sums="a212cbc3b79e9a563aa45fc5c517b3499198bd7eb7e7be1e047568a5f48c259a scipy-0.15.1.tar.gz"
|
|
sha512sums="fff4412d850c431a1b4e6ee3b17958ee5ab3beb81e6cb8a8e7d56d368751eaa8781d7c3e69d932dc002d718fddc66a72098acfe74cfe29ec80b24e6736317275 scipy-0.15.1.tar.gz"
|