# Template file for 'python3-matplotlib'
pkgname=python3-matplotlib
version=3.2.1
revision=1
wrksrc="matplotlib-${version}"
build_style=python3-module
hostmakedepends="pkg-config python3-setuptools python3-numpy"
# XXX use internal copy of agg, highly patched
makedepends="python3-devel freetype-devel libpng-devel"
depends="python3-matplotlib-data>=${version}_${revision} python3-numpy
 python3-dateutil python3-parsing python3-cycler python3-kiwisolver"
short_desc="Python3 2D/3D plotting library"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="custom:matplotlib, BSD-3-Clause, MIT"
homepage="https://matplotlib.org/"
distfiles="https://github.com/matplotlib/matplotlib/archive/v${version}.tar.gz"
checksum=5462728ed3be60af21bd8a6b33f5f1632dabdb3c1b3cc279cffb05926a48255c

post_install() {
	vdoc "${FILESDIR}/README.voidlinux"
	vlicense LICENSE/LICENSE
}

python3-matplotlib-data_package() {
	archs=noarch
	short_desc+=" - data files"
	pkg_install() {
		vmove "${py3_sitelib}/matplotlib/mpl-data"
	}
}
