void-packages/srcpkgs/python3-reportlab/template

33 lines
902 B
Bash

# Template file for 'python3-reportlab'
pkgname=python3-reportlab
version=3.6.11
revision=3
build_style=python3-module
make_build_args="--use-system-libart"
hostmakedepends="python3-setuptools"
makedepends="python3-devel freetype-devel libart-devel"
depends="python3-Pillow"
short_desc="Python3 library for generating PDFs and graphics"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="BSD-3-Clause"
homepage="https://www.reportlab.com/"
distfiles="${PYPI_SITE}/r/reportlab/reportlab-${version}.tar.gz"
checksum=04fc4420f0548815d0623e031c86a1f7f3f3003e699d9af7148742e2d72b024a
do_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i -e "
s,'/usr/include/libart,'$XBPS_CROSS_BASE/usr/include/libart,
" setup.py
fi
cat <<-EOF >local-setup.cfg
[FREETYPE_PATHS]
lib = ${XBPS_CROSS_BASE}/usr/lib
inc = ${XBPS_CROSS_BASE}/usr/include/freetype2
EOF
}
post_install() {
vlicense LICENSE.txt
}