2015-07-13 11:27:57 +02:00
|
|
|
# Template file for 'python-reportlab'
|
|
|
|
pkgname=python-reportlab
|
2016-02-20 19:42:00 +01:00
|
|
|
version=3.3.0
|
2015-07-13 11:27:57 +02:00
|
|
|
revision=1
|
|
|
|
wrksrc="reportlab-$version"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
2016-02-20 19:42:00 +01:00
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel freetype-devel libart-devel"
|
|
|
|
depends="python-Pillow"
|
2015-07-13 11:27:57 +02:00
|
|
|
pycompile_module="reportlab"
|
|
|
|
short_desc="Python2 library for generating PDFs and graphics"
|
2016-02-20 19:42:00 +01:00
|
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
|
|
license="3-clause-BSD"
|
|
|
|
homepage="http://www.reportlab.com/"
|
2015-07-13 11:27:57 +02:00
|
|
|
distfiles="${PYPI_SITE}/r/reportlab/reportlab-${version}.tar.gz"
|
2016-02-20 19:42:00 +01:00
|
|
|
checksum=f48900b9321bcb2871a46543993bd995148d769a11a9e24495f25b4ec0bbe267
|
2015-07-13 11:27:57 +02:00
|
|
|
|
2016-02-20 19:42:00 +01:00
|
|
|
pre_build() {
|
|
|
|
sed -i "s|'pip>=1.4.1', 'setuptools>=2.2'||" setup.py
|
|
|
|
find src/reportlab -type f -name '*.py' -exec sed -i '/^#!/d' {} +
|
|
|
|
}
|
2015-07-13 11:27:57 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.txt LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-reportlab_package() {
|
2016-02-20 19:42:00 +01:00
|
|
|
depends="python3.4-Pillow"
|
2015-07-13 11:27:57 +02:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="reportlab"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
vlicense LICENSE.txt LICENSE
|
|
|
|
}
|
|
|
|
}
|