diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-20 18:48:48 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-02-20 20:59:40 +0100 |
commit | 589a28b5117ef06cc1ec1f6e3b4195965fdb0c72 (patch) | |
tree | 492a9c90d7417b1a83ef3b4a3d4d778d3d2460d5 /community/py-numpy | |
parent | 98161d4544a11e0eb898a787aad44fcb73c8a6b3 (diff) | |
download | aports-589a28b5117ef06cc1ec1f6e3b4195965fdb0c72.tar.bz2 aports-589a28b5117ef06cc1ec1f6e3b4195965fdb0c72.tar.xz |
community/py-numpy: upgrade to 1.12.0
Diffstat (limited to 'community/py-numpy')
-rw-r--r-- | community/py-numpy/APKBUILD | 28 |
1 files changed, 8 insertions, 20 deletions
diff --git a/community/py-numpy/APKBUILD b/community/py-numpy/APKBUILD index aad9f3b994..4535c6c3e2 100644 --- a/community/py-numpy/APKBUILD +++ b/community/py-numpy/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-numpy _pkgname=numpy -pkgver=1.11.2 +pkgver=1.12.0 pkgrel=0 pkgdesc="Scientific tools for Python" url="http://numpy.scipy.org/" @@ -13,24 +13,18 @@ depends_dev="python2-dev openblas-dev py-setuptools py-nose cython-dev py-numpy" makedepends="$depends_dev" install="" subpackages="$pkgname-dev $pkgname-doc" -source="http://downloads.sourceforge.net/$_pkgname/$_pkgname-$pkgver.tar.gz +source="https://github.com/numpy/numpy/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz numpy-1.11.0-musl.patch site.cfg" +builddir="$srcdir/$_pkgname-$pkgver" -_builddir="$srcdir"/$_pkgname-$pkgver prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - site.cfg) msg $i; cp "$srcdir"/$i ./ || return 1;; - esac - done + default_prepare || return 1 + cp "$srcdir"/site.cfg "$builddir"/ } build() { - cd "$_builddir" + cd "$builddir" export Atlas=None LDFLAGS="$LDFLAGS -shared" python2 setup.py build config_fc --fcompiler=gnu95 || return 1 @@ -38,18 +32,12 @@ build() { package() { - cd "$_builddir" + cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" config_fc --fcompiler=gnu95 || return 1 install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname install -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/custom/$pkgname/LICENSE } -md5sums="03bd7927c314c43780271bf1ab795ebc numpy-1.11.2.tar.gz -a1ad56975b7d307d7c62cfb06963322b numpy-1.11.0-musl.patch -6f15bb8fe3d12faa8983a9e18bbea2a9 site.cfg" -sha256sums="04db2fbd64e2e7c68e740b14402b25af51418fc43a59d9e54172b38b906b0f69 numpy-1.11.2.tar.gz -e94f8d85b08de300a7402c8f4c7f6badbeb88964f45890c6c1aabfed9e3e1b88 numpy-1.11.0-musl.patch -8aa71c1aec2a9fdf6ab6167c92e86bdaf27f9a263b6b9849097ec7dcdf6d91a3 site.cfg" -sha512sums="c1818de5c8b92cc2a673149f090cc863b484afd29e8a014ffcf8d0f5e70cf8886c7662dbe45847712dec8ae0412d1cb48b13cceefe3e4ec0e85bb20e4beaa46e numpy-1.11.2.tar.gz +sha512sums="f2474088dbb2bc40e0f2cde06592173a1fdfad53307d430c07eb6bd3bcf3ce4a3c10c0321000d6f3de8d9b818e18f2a0962fbdc9d08a491ab698929a7d1fceb7 numpy-1.12.0.tar.gz f8820c08754b5521e1a30b602bf87667459c96c1abfa78a4f54331c19ceec5e2f3108a20ba09fdf8089087296a4836dc32b2b47022efd90ade3de568aef9a1a7 numpy-1.11.0-musl.patch 21ca8db304cbbf5949f07702f2a42bb5e5a0d641921e36649555a41b0e48f04e96f53760417823177ac27f6de24b2191e6e1d5f0eb393beafa29f7484e23284f site.cfg" |