diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-27 04:50:57 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2011-01-27 04:50:57 -0300 |
commit | 836d54e6d946f70102dfbdb3c39bf7028d6d0463 (patch) | |
tree | ea9911db825de5cb40f54b96a43dbb3ba2f4d3c1 /libre/python-reportlab-libre/PKGBUILD | |
parent | d197539acb2abe3a2cf23fbdbede80cab9d59d7d (diff) | |
download | abslibre-836d54e6d946f70102dfbdb3c39bf7028d6d0463.tar.gz abslibre-836d54e6d946f70102dfbdb3c39bf7028d6d0463.tar.bz2 abslibre-836d54e6d946f70102dfbdb3c39bf7028d6d0463.zip |
updated abs tree
Diffstat (limited to 'libre/python-reportlab-libre/PKGBUILD')
-rw-r--r-- | libre/python-reportlab-libre/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/libre/python-reportlab-libre/PKGBUILD b/libre/python-reportlab-libre/PKGBUILD new file mode 100644 index 000000000..e0dfc9d9c --- /dev/null +++ b/libre/python-reportlab-libre/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 29478 2010-10-14 14:58:41Z angvp $ +# Maintainer: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve> +# Contributor: William Rea <sillywilly@gmail.com> +# Maintainer (Parabola): fauno <fauno@kiwwwi.com.ar> +# Contributor: borgo <nomail> + +pkgname=python-reportlab-libre +_origname=reportlab +pkgver=2.5 +pkgrel=1 +pkgdesc="A proven industry-strength PDF generating solution" +arch=('i686' 'x86_64') +depends=('python2' 'freetype2' 'ttf-bitstream-vera' 'gsfonts' 'python-imaging') +license=('custom') +source=(http://www.reportlab.org/ftp/${_origname}-$pkgver.tar.gz + free-fonts.patch) +url="http://www.reportlab.org/rl_toolkit.html" +md5sums=('cdf8b87a6cf1501de1b0a8d341a217d3' + '1fc63857754cf3e2987d2400d94e7cd7') +provides=("python-reportlab=$pkgver") +conflicts=('python-reportlab') +replaces=('python-reportlab') +optdepends=('ghostscript') + +build() { + cd $srcdir/${_origname}-$pkgver + + # 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 + + rm -f reportlab/fonts/Vera* reportlab/fonts/bitstream-vera-license.txt + patch -p1 -i $srcdir/free-fonts.patch + + python2 setup.py install --root=$pkgdir + install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt +} |