Date: Wednesday, January 13, 2016 @ 11:16:25 Author: fyan Revision: 156302
archrelease: copy trunk to community-any Added: python-pygal/repos/community-any/PKGBUILD (from rev 156301, python-pygal/trunk/PKGBUILD) Deleted: python-pygal/repos/community-any/PKGBUILD ----------+ PKGBUILD | 122 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 61 insertions(+), 61 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2016-01-13 10:16:02 UTC (rev 156301) +++ PKGBUILD 2016-01-13 10:16:25 UTC (rev 156302) @@ -1,61 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Chris Warrick <a...@chriswarrick.com> - -pkgbase=python-pygal -pkgname=('python-pygal' 'python2-pygal') -epoch=1 -pkgver=2.0.12 -pkgrel=1 -pkgdesc='A Python SVG graph plotting library' -arch=('any') -url='http://pygal.org/' -license=('LGPL3') -makedepends=('python-setuptools' 'python2-setuptools' 'git') -checkdepends=('python-pytest' 'python2-pytest' 'python-lxml' 'python2-lxml' - 'python-pyquery' 'python2-pyquery' 'python-cairosvg' 'python2-cairosvg' - 'python-flask' 'python2-flask') -source=("git+https://github.com/Kozea/pygal.git#tag=$pkgver") -md5sums=('SKIP') - -prepare() { - cp -a "${srcdir}/pygal"{,-py2} -} - -build() { - cd "$srcdir/pygal" - python setup.py build - - cd "$srcdir/pygal-py2" - python2 setup.py build -} - -check() { - cd "$srcdir/pygal" - LC_CTYPE=en_US.UTF-8 py.test pygal/ - - cd "$srcdir/pygal-py2" - py.test2 pygal/ -} - -package_python-pygal() { - depends=('python-setuptools') - optdepends=('python-lxml: for XML output through lxml instead of xml.etree' - 'python-cairosvg: for PNG output') - - cd "${srcdir}/pygal" - python3 setup.py install --root="${pkgdir}/" --optimize=1 -} - -package_python2-pygal() { - depends=('python2-setuptools') - optdepends=('python2-lxml: for XML output through lxml instead of xml.etree' - 'python2-cairosvg: for PNG output') - - cd "${srcdir}/pygal-py2" - python2 setup.py install --root="${pkgdir}/" --optimize=1 - - mv "${pkgdir}"/usr/bin/pygal_gen{,2}.py -} - -# vim:set ts=2 sw=2 et: Copied: python-pygal/repos/community-any/PKGBUILD (from rev 156301, python-pygal/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2016-01-13 10:16:25 UTC (rev 156302) @@ -0,0 +1,61 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Chris Warrick <a...@chriswarrick.com> + +pkgbase=python-pygal +pkgname=('python-pygal' 'python2-pygal') +epoch=1 +pkgver=2.1.0 +pkgrel=1 +pkgdesc='A Python SVG graph plotting library' +arch=('any') +url='http://pygal.org/' +license=('LGPL3') +makedepends=('python-setuptools' 'python2-setuptools' 'git') +checkdepends=('python-pytest' 'python2-pytest' 'python-lxml' 'python2-lxml' + 'python-pyquery' 'python2-pyquery' 'python-cairosvg' 'python2-cairosvg' + 'python-flask' 'python2-flask') +source=("git+https://github.com/Kozea/pygal.git#tag=$pkgver") +md5sums=('SKIP') + +prepare() { + cp -a "${srcdir}/pygal"{,-py2} +} + +build() { + cd "$srcdir/pygal" + python setup.py build + + cd "$srcdir/pygal-py2" + python2 setup.py build +} + +check() { + cd "$srcdir/pygal" + LC_CTYPE=en_US.UTF-8 py.test pygal/ + + cd "$srcdir/pygal-py2" + py.test2 pygal/ +} + +package_python-pygal() { + depends=('python-setuptools') + optdepends=('python-lxml: for XML output through lxml instead of xml.etree' + 'python-cairosvg: for PNG output') + + cd "${srcdir}/pygal" + python3 setup.py install --root="${pkgdir}/" --optimize=1 +} + +package_python2-pygal() { + depends=('python2-setuptools') + optdepends=('python2-lxml: for XML output through lxml instead of xml.etree' + 'python2-cairosvg: for PNG output') + + cd "${srcdir}/pygal-py2" + python2 setup.py install --root="${pkgdir}/" --optimize=1 + + mv "${pkgdir}"/usr/bin/pygal_gen{,2}.py +} + +# vim:set ts=2 sw=2 et: