community/python-matplotlib: fix

This commit is contained in:
Kevin Mihelich 2021-11-16 22:51:12 +00:00
parent a62b91564f
commit 4cd265058e

View file

@ -54,7 +54,7 @@ prepare() {
rm -r .git
echo "Version: ${pkgver}" > PKG-INFO
# Use system freetype and qhull, disable LTO
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
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|' mplsetup.cfg.template > mplsetup.cfg
patch -p1 < ../freetype.patch # From Fedora/upstream
# Install tests for check()
sed -i 's|#tests = False|tests = True|' mplsetup.cfg