40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'python-reportlab'
|
|
pkgname=python-reportlab
|
|
version=3.4.0
|
|
revision=2
|
|
wrksrc="reportlab-$version"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python-devel python3-devel freetype-devel libart-devel"
|
|
depends="python-Pillow"
|
|
pycompile_module="reportlab"
|
|
short_desc="Python2 library for generating PDFs and graphics"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="3-clause-BSD"
|
|
homepage="http://www.reportlab.com/"
|
|
distfiles="${PYPI_SITE}/r/reportlab/reportlab-${version}.tar.gz"
|
|
checksum=5beaf35e59dfd5ebd814fdefd76908292e818c982bd7332b5d347dfd2f01c343
|
|
|
|
pre_build() {
|
|
sed -i "s|'pip>=1.4.1', 'setuptools>=2.2'||" setup.py
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-reportlab_package() {
|
|
depends="python3-Pillow"
|
|
pycompile_module="reportlab"
|
|
replaces="python3.4-reportlab>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
}
|
|
python3.4-reportlab_package() {
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-reportlab>=${version}_${revision}"
|
|
}
|