aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-reportlab/APKBUILD
blob: b7dcdd4df0497eeb01db4ad41dfe115d35bc9e92 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                           
                     
                 
             
        

                                                         
          
                      
                                       
                                                                     

                                                                                                       
 


                                                                  









                                                                   
         

                                                         


           


                                                                   

 
                                                                                                                                                                      
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-reportlab
_pyname=reportlab
pkgver=3.5.50
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 python3 ttf-dejavu"
makedepends="freetype-dev libart-lgpl-dev py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$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() {
	export CFLAGS="$CFLAGS -I/usr/include/libart-2.0"
	python3 setup.py build --use-system-libart
}

package() {
	export CFLAGS="$CFLAGS -I/usr/include/libart-2.0"
	python3 setup.py install --use-system-libart --skip-build \
		--prefix=/usr --root="$pkgdir"
}

sha512sums="afe67fa12d58eb8f566915c0a2a49832aef7e789ad9d4d6b81acaa00fbe8ad27bfdcd9b08e0c67fbcedfc2e5fd85dddd4f5cbe2a9119936ff96cffa06f6ef422  reportlab-3.5.50.tar.gz"