diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-01 16:51:34 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-08-01 17:05:23 +0200 |
commit | 9d89cb80575529a86751b2dcdca3c98a104c5dfe (patch) | |
tree | e5ae0a6bda5b46b2c63801af824d668a3ba78bf4 /testing | |
parent | d7319f43c552b89d3664b633b0464e2e96a673b1 (diff) | |
download | aports-9d89cb80575529a86751b2dcdca3c98a104c5dfe.tar.bz2 aports-9d89cb80575529a86751b2dcdca3c98a104c5dfe.tar.xz |
testing/py-reportlab: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-reportlab/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/py-reportlab/APKBUILD b/testing/py-reportlab/APKBUILD new file mode 100644 index 0000000000..6ac98bbe66 --- /dev/null +++ b/testing/py-reportlab/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=py-reportlab +pkgver=3.4.0 +pkgrel=0 +pkgdesc="A proven industry-strength PDF generating solution" +url="http://www.reportlab.org/rl_toolkit.html" +arch="all" +license="BSD" +depends="py-pillow ttf-dejavu" +makedepends="python2-dev python3-dev py-setuptools freetype-dev ghostscript" +install="" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="https://pypi.python.org/packages/87/f9/53b34c58d3735a6df7d5c542bf4de60d699cfa6035e113ca08b3ecdcca3f/reportlab-$pkgver.tar.gz" +builddir="$srcdir/reportlab-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="7f00074b93be49e1aa7650e61381e285598599911b12a6b63c0f12d6eb64bc59afb6907b683350740b0a81c99a3164373b27e18cfccc0f9da12405c3dacd1ff7 reportlab-3.4.0.tar.gz" |