diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-10-18 15:45:30 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-10-18 15:45:30 -0200 |
commit | f9be9424232f831d7a9a157bf81e6b7921b8522e (patch) | |
tree | 0e9a9893ce0adeadad91f15d2fd14ff91ec234f3 /libre/python2-reportlab-libre/PKGBUILD | |
parent | ec09dc6551376ef2a28d9ed0136337797b66d99b (diff) | |
download | abslibre-f9be9424232f831d7a9a157bf81e6b7921b8522e.tar.gz abslibre-f9be9424232f831d7a9a157bf81e6b7921b8522e.tar.bz2 abslibre-f9be9424232f831d7a9a157bf81e6b7921b8522e.zip |
python2-reportlab-libre: changing name folder
Diffstat (limited to 'libre/python2-reportlab-libre/PKGBUILD')
-rwxr-xr-x | libre/python2-reportlab-libre/PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libre/python2-reportlab-libre/PKGBUILD b/libre/python2-reportlab-libre/PKGBUILD new file mode 100755 index 000000000..7ead18cba --- /dev/null +++ b/libre/python2-reportlab-libre/PKGBUILD @@ -0,0 +1,41 @@ +# $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> + +pkgname=python-reportlab-libre +_origname=reportlab +pkgver=2.5 +pkgrel=2 +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.com/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 --optimize=1 + install -D -m644 LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/license.txt +} |