diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-10-18 18:35:11 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-10-18 18:35:11 -0200 |
commit | 0a81fcccebc741a2cbb6b9211f389838e5dd6c97 (patch) | |
tree | 308053750d904aa855b8e1cb1460e15421bc2a3e /libre/python2-reportlab-libre/PKGBUILD | |
parent | 206fe44d98c5e965c07646e096e1cccd4b947aab (diff) | |
parent | d60a9156b2f57259a8479c98232a2cc9e913f569 (diff) | |
download | abslibre-0a81fcccebc741a2cbb6b9211f389838e5dd6c97.tar.gz abslibre-0a81fcccebc741a2cbb6b9211f389838e5dd6c97.tar.bz2 abslibre-0a81fcccebc741a2cbb6b9211f389838e5dd6c97.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/python2-reportlab-libre/PKGBUILD')
-rwxr-xr-x | libre/python2-reportlab-libre/PKGBUILD | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/libre/python2-reportlab-libre/PKGBUILD b/libre/python2-reportlab-libre/PKGBUILD new file mode 100755 index 000000000..2adbbc234 --- /dev/null +++ b/libre/python2-reportlab-libre/PKGBUILD @@ -0,0 +1,49 @@ +# $Id: PKGBUILD 67753 2012-03-14 10:35:58Z giovanni $ +# 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@lavabit.com> + +pkgbase=python-reportlab-libre +pkgname=python2-reportlab-libre +_origname=reportlab +pkgver=2.6 +pkgrel=1 +pkgdesc="A proven industry-strength PDF generating solution (without non-free Adobe T1 fonts)" +arch=('i686' 'x86_64') +url="http://www.reportlab.org/rl_toolkit.html" +depends=('python2' 'freetype2' 'ttf-bitstream-vera' 'gsfonts' 'python-imaging') +conflicts=('python2-reportlab' 'python-reportlab<=2.5-2') +replaces=('python2-reportlab' 'python-reportlab<=2.5-2') +provides=("python2-reportlab=$pkgver") +license=('custom') +source=(http://www.reportlab.com/ftp/${_origname}-$pkgver.tar.gz + free-fonts.patch) +md5sums=('e5d27a24a2c8456b168913242aa1940f' + 'd3abd11dfee7d1cf2edbcc786792e3cd') +optdepends=('ghostscript') + +build() { + cd $srcdir/${_origname}-$pkgver + + # remove non-free Adobe T1 fonts + 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 +} |