community/python-matplotlib to 3.3.0-2

This commit is contained in:
Kevin Mihelich 2020-07-24 13:44:44 +00:00
parent 46fdd58fa4
commit 7bc702efd2

View file

@ -11,12 +11,12 @@
pkgname=python-matplotlib pkgname=python-matplotlib
pkgver=3.3.0 pkgver=3.3.0
pkgrel=1 pkgrel=2
pkgdesc="A python plotting library, making publication quality plots" pkgdesc="A python plotting library, making publication quality plots"
arch=(x86_64) arch=(x86_64)
url="https://matplotlib.org" url="https://matplotlib.org"
license=(custom) license=(custom)
depends=(freetype2 libpng python-numpy python-cycler python-dateutil python-kiwisolver python-pyparsing) depends=(freetype2 libpng python-numpy python-cycler python-dateutil python-kiwisolver python-pyparsing qhull)
optdepends=('tk: Tk{Agg,Cairo} backends' optdepends=('tk: Tk{Agg,Cairo} backends'
'python-pyqt5: Qt5{Agg,Cairo} backends' 'python-pyqt5: Qt5{Agg,Cairo} backends'
'python-gobject: for GTK3{Agg,Cairo} backend' 'python-gobject: for GTK3{Agg,Cairo} backend'
@ -33,21 +33,21 @@ makedepends=(git rsync python-setuptools
tk python-pyqt5 python-gobject tk python-pyqt5 python-gobject
python-wxpython python-cairo python-tornado python-wxpython python-cairo python-tornado
python-pillow ghostscript texlive-bin) python-pillow ghostscript texlive-bin)
# qhull missing pkg-config file
# agg missing some non-upstreamed patches? # agg missing some non-upstreamed patches?
checkdepends=(python-pytest-xdist python-pytest-runner xorg-server-xvfb checkdepends=(python-pytest-xdist python-pytest-runner xorg-server-xvfb
texlive-core texlive-latexextra inkscape mencoder texlive-core texlive-latexextra inkscape mencoder
ffmpeg imagemagick ttf-freefont python-pandas) ffmpeg imagemagick ttf-freefont python-pandas)
source=("https://github.com/matplotlib/matplotlib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz") source=("https://github.com/matplotlib/matplotlib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
sha512sums=('79555a175ef1e63da4f3d2457dc44dd825dbe4b5833696fa9ba57bfc654dc4df286ede4357ee276f19d674be1cb622e8718000a74c1f122cc13641f4d3ad0ada') matplotlib-fix-path-of-degenerate-polygons.patch::"https://github.com/matplotlib/matplotlib/commit/07847dd2.patch")
sha512sums=('79555a175ef1e63da4f3d2457dc44dd825dbe4b5833696fa9ba57bfc654dc4df286ede4357ee276f19d674be1cb622e8718000a74c1f122cc13641f4d3ad0ada'
'b16c4af737a08004ad83f5eb058ffd1470f6cb522114ef8ef74e211887a6c00809b7f475cdb83cceb46aaaff6acfd0c25c8ba1fbcbf2fd536e09efde35e80e2a')
prepare() { prepare() {
cd matplotlib-${pkgver} cd matplotlib-${pkgver}
cat > setup.cfg <<END patch -p1 -i ../matplotlib-fix-path-of-degenerate-polygons.patch # Fix path of degenerate polygons
[egg_info]
[libs] # Use system freetype and qhull, disable LTO
enable_lto = False sed -e 's|#system_freetype = False|system_freetype = True|' -e 's|#system_qhull = False|system_qhull = True|' -e 's|#enable_lto = True|enable_lto = False|' setup.cfg.template > setup.cfg
END
} }
build() { build() {