[arch-commits] Commit in python-matplotlib/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Fri Jul 24 07:16:29 UTC 2020


    Date: Friday, July 24, 2020 @ 07:16:28
  Author: arojas
Revision: 665134

Use system freetype and qhull, backport a patch to fix Sage testsuite

Modified:
  python-matplotlib/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-24 04:49:30 UTC (rev 665133)
+++ PKGBUILD	2020-07-24 07:16:28 UTC (rev 665134)
@@ -7,12 +7,12 @@
 
 pkgname=python-matplotlib
 pkgver=3.3.0
-pkgrel=1
+pkgrel=2
 pkgdesc="A python plotting library, making publication quality plots"
 arch=(x86_64)
 url="https://matplotlib.org"
 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'
             'python-pyqt5: Qt5{Agg,Cairo} backends'
             'python-gobject: for GTK3{Agg,Cairo} backend'
@@ -30,14 +30,23 @@
              tk python-pyqt5 python-gobject
              python-wxpython python-cairocffi python-tornado
              python-pillow ghostscript texlive-bin)
-             # qhull missing pkg-config file
              # agg missing some non-upstreamed patches?
 checkdepends=(python-pytest-xdist python-pytest-runner xorg-server-xvfb
               texlive-core texlive-latexextra inkscape mencoder
               ffmpeg imagemagick python-pandas)
-source=("https://github.com/matplotlib/matplotlib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
-sha512sums=('79555a175ef1e63da4f3d2457dc44dd825dbe4b5833696fa9ba57bfc654dc4df286ede4357ee276f19d674be1cb622e8718000a74c1f122cc13641f4d3ad0ada')
+source=("https://github.com/matplotlib/matplotlib/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz"
+         matplotlib-fix-path-of-degenerate-polygons.patch::"https://github.com/matplotlib/matplotlib/commit/07847dd2.patch")
+sha512sums=('79555a175ef1e63da4f3d2457dc44dd825dbe4b5833696fa9ba57bfc654dc4df286ede4357ee276f19d674be1cb622e8718000a74c1f122cc13641f4d3ad0ada'
+            'b16c4af737a08004ad83f5eb058ffd1470f6cb522114ef8ef74e211887a6c00809b7f475cdb83cceb46aaaff6acfd0c25c8ba1fbcbf2fd536e09efde35e80e2a')
 
+prepare() {
+  cd matplotlib-${pkgver}
+  patch -p1 -i ../matplotlib-fix-path-of-degenerate-polygons.patch # Fix path of degenerate polygons
+
+# 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() {
   cd matplotlib-${pkgver}
   python setup.py build



More information about the arch-commits mailing list