Date: Wednesday, October 24, 2018 @ 22:17:08 Author: archange Revision: 398893
Fix FS#41820 Added: python2-matplotlib/trunk/python2-matplotlib.install Modified: python2-matplotlib/trunk/PKGBUILD ----------------------------+ PKGBUILD | 3 +++ python2-matplotlib.install | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-24 21:51:42 UTC (rev 398892) +++ PKGBUILD 2018-10-24 22:17:08 UTC (rev 398893) @@ -34,6 +34,7 @@ checkdepends=('python2-pytest-xdist' 'python2-pytest-runner' 'xorg-server-xvfb' 'texlive-core' 'texlive-latexextra' 'inkscape' 'mencoder' 'ffmpeg' 'imagemagick' 'ttf-freefont' 'python2-pandas' 'python2-mock') +install=$pkgname.install source=($pkgname-$pkgver.tar.gz::"https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz" setup.cfg) sha512sums=('d118f5d56e2f578031aba22933c0b3a4423a31a04f50f08cc1aa660186546d09692a9cf401bb5f24cb296f94fbfd8707460728d501ac2bd4a624dfa89e92949b' @@ -67,5 +68,7 @@ package() { cd matplotlib-$pkgver python2 setup.py install --root "$pkgdir" --prefix=/usr --optimize=1 --skip-build + # FS#41820 - unset default backend + sed -i 's/backend : qt5agg/#backend : agg/' $pkgdir/usr/lib/python2.7/site-packages/matplotlib/mpl-data/matplotlibrc install -Dm644 doc/users/license.rst -t "$pkgdir"/usr/share/licenses/${pkgname}/ } Added: python2-matplotlib.install =================================================================== --- python2-matplotlib.install (rev 0) +++ python2-matplotlib.install 2018-10-24 22:17:08 UTC (rev 398893) @@ -0,0 +1,16 @@ +post_install() { + cat << EOF + +Starting with python2-matplotlib 2.2.3-3, the Python 2.7 version of matplotlib +now defaults to 'Agg' backend. This is a rendering only backend with no GUI. +If you want to use a GUI backend, install the required optdepends and set the +backend value in your matplotlibrc. + +EOF +} + +post_upgrade() { + if [ $(vercmp $2 2.2.3-3) -lt 0 ] ; then + post_install + fi +}