diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-22 21:24:47 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-22 22:01:07 +0300 |
commit | f836cebd11291aa48d44be1b5aa0f025173b4f24 (patch) | |
tree | 20c951f81de3d02466ba9a2e37db895b081354ae /community/py3-reportlab | |
parent | 6581371b1d2a78cfa6eb5b1692186c30c6e5109b (diff) | |
download | aports-f836cebd11291aa48d44be1b5aa0f025173b4f24.tar.bz2 aports-f836cebd11291aa48d44be1b5aa0f025173b4f24.tar.xz |
community/py3-reportlab: upgrade to 3.5.23
Diffstat (limited to 'community/py3-reportlab')
-rw-r--r-- | community/py3-reportlab/APKBUILD | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/community/py3-reportlab/APKBUILD b/community/py3-reportlab/APKBUILD index b77ec12a31..928dd73916 100644 --- a/community/py3-reportlab/APKBUILD +++ b/community/py3-reportlab/APKBUILD @@ -2,26 +2,39 @@ # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> pkgname=py3-reportlab _pkgname=reportlab -pkgver=3.4.0 -pkgrel=1 +pkgver=3.5.23 +pkgrel=0 pkgdesc="Python library for generating PDFs and graphics" url="https://www.reportlab.com/opensource" arch="all" license="BSD-3-Clause" depends="py3-pillow ttf-dejavu" -makedepends="freetype-dev py3-setuptools python3-dev" +makedepends="freetype-dev libart-lgpl-dev py3-setuptools python3-dev" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-reportlab" # Backwards compatibility provides="py-reportlab=$pkgver-r$pkgrel" # Backwards compatibility +prepare() { + default_prepare + + # use installed (system) libart + rm -rf src/rl_addons/renderPM/libart_lgpl + + # remove interpreter line from libraries + find src -type f -name "*.py" -exec sed -i '/^#!\//d' {} \; +} + build() { - python3 setup.py build + export CFLAGS="$CFLAGS -I/usr/include/libart-2.0" + python3 setup.py build --use-system-libart } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + export CFLAGS="$CFLAGS -I/usr/include/libart-2.0" + python3 setup.py install --use-system-libart --skip-build \ + --prefix=/usr --root="$pkgdir" } -sha512sums="7f00074b93be49e1aa7650e61381e285598599911b12a6b63c0f12d6eb64bc59afb6907b683350740b0a81c99a3164373b27e18cfccc0f9da12405c3dacd1ff7 reportlab-3.4.0.tar.gz" +sha512sums="825d8fe92e0c8bf963b2e7ea9b91b7abd3cad059106b99ae40ffec8df34ead7a5de10a493f085456297faaab27f850491ff2bb9f914086ff4c511783b53285da reportlab-3.5.23.tar.gz" |