aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-matplotlib/APKBUILD
blob: c45720dd1f3babd0c6164f73a36beaaa3b907d62 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
pkgname=py3-matplotlib
_pyname=matplotlib
pkgver=3.3.3
pkgrel=0
pkgdesc="Python3 library for plots"
url="https://matplotlib.org"
# mips blocked due to py3-numpy
arch="all !mips !mips64"
license="Python-2.0"
depends="
	py3-cairo
	py3-certifi
	py3-cycler
	py3-dateutil
	py3-kiwisolver
	py3-numpy
	py3-parsing
	py3-pillow
	py3-tz
	python3-tkinter
	"
makedepends="
	python3-dev
	gfortran
	py3-numpy-dev
	freetype-dev
	libpng-dev
	tk-dev
	py3-setuptools
	qhull-dev
	"
checkdepends="py3-pytest xvfb"
source="https://github.com/matplotlib/$_pyname/archive/v$pkgver/matplotlib-v$pkgver.tar.gz
	"
builddir="$srcdir/$_pyname-$pkgver"
# matplotlib provides unit tests, but they need to be run post installation :-(
options="!check"

replaces="py-matplotlib" # Backwards compatibility
provides="py-matplotlib=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare

	# Use system freetype and qhull
	sed -e 's|#system_freetype = False|system_freetype = True|' -e 's|#system_qhull = False|system_qhull = True|' setup.cfg.template > setup.cfg
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="11477e9afe15b8c1e7eea3c889187d9ab704c727578c3a1c5dcfbc6bbabf89d964f03bc17e739ee76df4758931e33bd5555587b533f14d7a553c9ff7a5743960  matplotlib-v3.3.3.tar.gz"