Date: Wednesday, October 24, 2018 @ 12:55:28 Author: archange Revision: 398818
Clean/update PKGBUILD Modified: python2-matplotlib/trunk/PKGBUILD ----------+ PKGBUILD | 74 ++++++++++++++++++++++++++++--------------------------------- 1 file changed, 34 insertions(+), 40 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-10-24 12:53:54 UTC (rev 398817) +++ PKGBUILD 2018-10-24 12:55:28 UTC (rev 398818) @@ -1,4 +1,5 @@ # Maintainer: Felix Yan <[email protected]> +# Maintainer: Bruno Pagani <[email protected]> # Contributor: Stéphane Gaudreault <[email protected]> # Contributor: Stefan Husmann <[email protected]> # Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> @@ -6,72 +7,65 @@ pkgname=python2-matplotlib pkgver=2.2.3 -pkgrel=2 +pkgrel=3 pkgdesc="A python plotting library, making publication quality plots" arch=('x86_64') -url='http://matplotlib.org' +url="https://matplotlib.org" license=('custom') -depends=('python2-pytz' 'python2-numpy' 'python2-pyqt5' 'python2-dateutil' 'python2-pyparsing' - 'python2-cycler' 'python2-kiwisolver' 'python2-backports.functools_lru_cache') -optdepends=('pygtk: for GTK/GTKAgg/GTKCairo backend' - 'python2-cairo: for GTKCairo/GTK3Cairo backend' - 'python2-cairocffi: for GTKCairo/GTK3Cairo backend (alternative to python2-cairo)' - 'tk: used by the TkAgg backend' +depends=('python2-numpy' 'python2-dateutil' 'python2-pyparsing' 'python2-pytz' 'libpng' 'freetype2' + 'python2-cycler' 'python2-six' 'python2-backports.functools_lru_cache' 'python2-subprocess32' 'python2-kiwisolver') +optdepends=('tk: Tk{Agg,Cairo} backends' + 'python2-pyqt5: Qt5{Agg,Cairo} backends' + 'pygtk: GTK{,Agg,Cairo} backends' + 'python2-gobject: for GTK3{Agg,Cairo} backend' + 'python2-wxpython3: WX{,Agg,Cairo} backend' + 'python2-cairo: {GTK,GTK3,Qt5,Tk,WX}Cairo backends' + 'python2-cairocffi: alternative for Cairo backends' + 'python2-tornado: WebAgg backend' + 'ffmpeg: for saving movies' + 'imagemagick: for saving animated gifs' + 'python2-pillow: for reading/saving jpeg/bmp/tiff files' 'ghostscript: usetex dependencies' - 'texlive-bin: usetex dependencies' - 'python2-tornado: for webagg backend' - 'python2-gobject: for GTK3Agg/GTK3Cairo backend' - 'wxpython: for WX/WXAgg backend' - 'python2-pillow: for reading/saving .jpg/bmp/tiff files') -checkdepends=('python2-pytest-xdist' - 'python2-pytest-runner' 'python2-mock' 'xorg-server-xvfb' 'texlive-core' - 'texlive-latexextra' 'imagemagick' 'ffmpeg' 'mencoder' 'inkscape' - 'python2-pandas' 'ttf-freefont') -makedepends=('tk' 'python2-cairocffi' - 'python2-gobject' - 'pygtk' 'ghostscript' 'texlive-bin' - 'python2-tornado' 'gtk3' 'wxpython' - 'python2-pillow' - 'python2-setuptools') -source=("$pkgbase-$pkgver.tar.gz::https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz" + 'texlive-bin: usetex dependencies') +makedepends=('python2-setuptools' + 'tk' 'python2-pyqt5' 'pygtk' 'python2-gobject' + 'python2-wxpython3' 'python2-cairocffi' 'python2-tornado' + 'python2-pillow' 'ghostscript' 'texlive-bin') +checkdepends=('python2-pytest-xdist' 'python2-pytest-runner' 'xorg-server-xvfb' + 'texlive-core' 'texlive-latexextra' 'inkscape' 'mencoder' + 'ffmpeg' 'imagemagick' 'ttf-freefont' 'python2-pandas' 'python2-mock') +source=($pkgname-$pkgver.tar.gz::"https://github.com/matplotlib/matplotlib/archive/v$pkgver.tar.gz" setup.cfg) sha512sums=('d118f5d56e2f578031aba22933c0b3a4423a31a04f50f08cc1aa660186546d09692a9cf401bb5f24cb296f94fbfd8707460728d501ac2bd4a624dfa89e92949b' 'f08c0b2e94599fdf2b736b8a655d862209934441d90f20ed872cfc128b8d2a6525763ab7cf64f2b3630e22a90798f4c52aa93b18087e9b48708d9bae34aada0b') prepare() { - cd "$srcdir"/matplotlib-$pkgver + cd matplotlib-$pkgver for file in $(find . -name '*.py' -print); do sed -i -e "s|^#!.*/usr/bin/python|#!/usr/bin/python2|" \ -e "s|^#!.*/usr/bin/env *python|#!/usr/bin/env python2|" $file done + cd .. - cp -a "$srcdir"/matplotlib-$pkgver{,-test} + cp -a matplotlib-$pkgver{,-test} # Configure tests (FS#48175) - cp "$srcdir/setup.cfg" "$srcdir"/matplotlib-$pkgver-test/ + cp setup.cfg matplotlib-$pkgver-test/ } build() { - # this seems to need to be present or gtk/gdk dies - # and hangs the build checking if gtk3cairo is installed - export XDG_RUNTIME_DIR=/tmp - - cd "$srcdir"/matplotlib-$pkgver + cd matplotlib-$pkgver python2 setup.py build } check() { - # Different font rendering details - - cd "$srcdir"/matplotlib-$pkgver-test + cd matplotlib-$pkgver-test xvfb-run -a -s "+extension GLX +extension RANDR +render -screen 0 1280x1024x24" \ - python2 setup.py pytest --addopts="-n auto" || warning "Tests failed" + python2 setup.py pytest --addopts="-n auto" || warning "Tests failed" # Different font rendering details } package() { cd matplotlib-$pkgver - python2 setup.py install -O1 --skip-build --root "$pkgdir" --prefix=/usr - - install -dm755 "$pkgdir"/usr/share/licenses/python2-matplotlib - install -m 644 doc/users/license.rst "$pkgdir"/usr/share/licenses/python2-matplotlib + python2 setup.py install --root "$pkgdir" --prefix=/usr --optimize=1 --skip-build + install -Dm644 doc/users/license.rst -t "$pkgdir"/usr/share/licenses/${pkgname}/ }
