template 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # Template file for 'python-reportlab'
  2. pkgname=python-reportlab
  3. version=3.5.42
  4. revision=2
  5. wrksrc="reportlab-${version}"
  6. build_style=python-module
  7. hostmakedepends="python-setuptools python3-setuptools freetype-devel"
  8. makedepends="python-devel python3-devel freetype-devel libart-devel"
  9. depends="python-Pillow"
  10. short_desc="Python2 library for generating PDFs and graphics"
  11. maintainer="Alessio Sergi <al3hex@gmail.com>"
  12. license="BSD-3-Clause"
  13. homepage="https://www.reportlab.com/"
  14. distfiles="${PYPI_SITE}/r/reportlab/reportlab-${version}.tar.gz"
  15. checksum=9c21f202697a6cea57b9d716288fc919d99cbabeb30222eebfc7ff77eac32744
  16. # Liberation
  17. # Some code has been taken from:
  18. # https://git.parabola.nu/abslibre.git/tree/libre/python-reportlab/PKGBUILD
  19. post_patch() {
  20. # Parabola contains those fonts from the ttf-bitstream-vera package
  21. rm -fv src/reportlab/fonts/{bitstream-vera-license.txt,Vera*}
  22. }
  23. post_install() {
  24. vlicense LICENSE.txt
  25. }
  26. python3-reportlab_package() {
  27. depends="python3-Pillow"
  28. short_desc="${short_desc/Python2/Python3}"
  29. pkg_install() {
  30. vmove usr/lib/python3*
  31. vlicense LICENSE.txt
  32. }
  33. }