diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-17 22:45:31 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-17 22:45:31 -0300 |
commit | 27a90a9d957b56dac972c9df0febb6262fb90dce (patch) | |
tree | 79251bdfb00539a1ddf1592d80eacd47971dcf24 /libre/python2-reportlab-libre/PKGBUILD | |
parent | 87b9cca463a1dbf2b5026c9dc770b5591b2d3fdc (diff) | |
parent | 8185891e28635bdb83fdf4ba4391030912dae596 (diff) |
Merge branch 'master' of gparabola:abslibre/abslibre-pre-mips64el
Conflicts:
libre/audacious-plugins-libre/PKGBUILD
libre/linux-libre/PKGBUILD
Diffstat (limited to 'libre/python2-reportlab-libre/PKGBUILD')
-rw-r--r-- | libre/python2-reportlab-libre/PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libre/python2-reportlab-libre/PKGBUILD b/libre/python2-reportlab-libre/PKGBUILD new file mode 100644 index 000000000..0f608f7a0 --- /dev/null +++ b/libre/python2-reportlab-libre/PKGBUILD @@ -0,0 +1,52 @@ +# $Id: PKGBUILD 97428 2013-09-19 18:56:42Z jelle $ +# Maintainer: +# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Contributor: William Rea <sillywilly@gmail.com> +# Maintainer (Parabola): fauno <fauno@kiwwwi.com.ar> +# Contributor: borgo <nomail> +# Contributor (Parabola): André Silva <emulatorman@parabola.nu> + +pkgbase=python-reportlab-libre +pkgname=python2-reportlab-libre +_origname=reportlab +pkgver=2.7 +pkgrel=1 +pkgdesc="A proven industry-strength PDF generating solution, without nonfree Adobe T1 fonts support" +arch=('i686' 'x86_64') +url="http://www.reportlab.org/rl_toolkit.html" +depends=('python2' 'freetype2') +conflicts=('python-reportlab<=2.5-2' 'python2-reportlab') +replaces=('python-reportlab<=2.5-2' 'python2-reportlab') +provides=("python2-reportlab=$pkgver") +license=('custom') +source=(http://www.reportlab.com/ftp/reportlab-$pkgver.tar.gz + free-fonts.patch) +md5sums=('78300e6fe8a0d020fc16734a3de80cc4' + '1588b88851711cc6c868db4c7d4f4dea') + +build() { + cd $srcdir/${_origname}-$pkgver + + # remove nonfree Adobe T1 fonts support + patch -p1 -i $srcdir/free-fonts.patch + + # Parabola contains those fonts from the ttf-bitstream-vera package + rm -f src/reportlab/fonts/{bitstream-vera-license.txt,Vera*} + + # python2 fix + for file in src/reportlab/graphics/widgets/table.py src/reportlab/lib/normalDate.py \ + src/reportlab/pdfgen/pycanvas.py; do + sed -i 's_#!.*/usr/bin/env python_#!/usr/bin/env python2_' $file + done +} + +package_python2-reportlab-libre() { + cd $srcdir/${_origname}-$pkgver + python2 setup.py install --root=$pkgdir --optimize=1 + install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt +} + +check() { + cd ${srcdir}/${_origname}-${pkgver} +# python2 setup.py tests +} |