void-packages/srcpkgs/python3-matplotlib/template

37 lines
1.2 KiB
Bash

# Template file for 'python3-matplotlib'
pkgname=python3-matplotlib
version=3.8.2
revision=1
build_style=python3-pep517
build_helper="numpy"
hostmakedepends="pkg-config python3-setuptools_scm python3-certifi
python3-numpy python3-pybind11 python3-wheel"
makedepends="python3-devel freetype-devel libpng-devel libqhull-devel python3-pybind11"
depends="python3-cycler fonttools python3-kiwisolver python3-numpy
python3-packaging python3-Pillow python3-parsing python3-dateutil
python3-contourpy"
short_desc="Python3 2D/3D plotting library"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="custom:matplotlib, BSD-3-Clause, MIT"
homepage="https://matplotlib.org/"
changelog="https://github.com/matplotlib/matplotlib/releases"
distfiles="${PYPI_SITE}/m/matplotlib/matplotlib-${version}.tar.gz"
checksum=01a978b871b881ee76017152f1f1a0cbf6bd5f7b8ff8c96df0df1bd57d8755a1
replaces="python3-matplotlib-data>=0"
# Comparison of images is too frail for validation
make_check="no"
pre_build() {
cat <<-EOF > mplsetup.cfg
[libs]
system_freetype = true
system_qhull = true
EOF
vsed -e "s|'-flto'|'-flto=auto'|" -i setup.py
}
post_install() {
vdoc "${FILESDIR}/README.voidlinux"
vlicense LICENSE/LICENSE
}