blob: 27014d1004ca7990da9f12f03c20728e5153fa86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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'
'1588b88851711cc6c868db4c7d4f4dea')
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
}
|