1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 18:25:41 +03:00
aports/testing/py-matplotlib/APKBUILD
Tuan M. Hoang 934d43aaca testing/[various]: fixes on s390x
need py-numpy   : py-cpuinfo, websockify, py-gnuplot, py-scipy,
                  py-fonttools, py-matplotlib, py-opengl
need openblas   : harminv
no jit support  : texlive
no arch support : tcc, nim, perl-sys-syscall

radare2         : need disabling debugger
thermald        : seems to be intel-only thing
lazperf         : io tests hang
2018-02-13 14:28:40 +00:00

43 lines
1.5 KiB
Text

# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py-matplotlib
_pkgname=matplotlib
pkgver=1.5.1
pkgrel=2
pkgdesc="A Python library for plots"
url="http://matplotlib.org"
arch="all !s390x"
license="custom"
depends="python2 py-numpy python2-tkinter py-dateutil py-parsing py-tz py-cycler"
makedepends="python2-dev gfortran py-numpy-dev freetype-dev libpng-dev tk-dev
py-setuptools"
subpackages="$pkgname-doc $pkgname-tests"
source="$_pkgname-$pkgver.tar.gz::https://github.com/matplotlib/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
}
package() {
cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
install -m755 -d "$pkgdir"/usr/share/licenses/custom/$pkgname
install -m644 LICENSE/* "$pkgdir"/usr/share/licenses/custom/$pkgname/
}
tests() {
pkgdesc="$pkgdesc (tests)"
arch="noarch"
depends="$depends py-nose"
local sitepath="$(python2 -c 'import site; print(site.getsitepackages()[0])')/$_pkgname"
mkdir -p "$subpkgdir"$sitepath
mv "$pkgdir"$sitepath/tests "$subpkgdir"$sitepath/
}
md5sums="b22dc4962f36aab919a7125b3b35953b matplotlib-1.5.1.tar.gz"
sha256sums="64c9f7cce4075d05c2602108ee1795aa6455c2c1d8e4329c95c83465e3806887 matplotlib-1.5.1.tar.gz"
sha512sums="da99fffcb4fb600ed4386ce89e61725768d4209f3bd4ab174e0d8474c24b2736516a4299ceaa0714b276d7d02c3e33e39a6204e014569ec3f6249085b1ba7a0d matplotlib-1.5.1.tar.gz"