diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-22 21:19:32 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-22 22:01:06 +0300 |
commit | 5abe542325c245ccb00a94c08a0d9306c1ddada5 (patch) | |
tree | 1feb890d291bac2fe7134f029dafbd2dc6d21139 | |
parent | 879b37c6ac7879dc417498fcd14d39c1d2eb947d (diff) | |
download | aports-5abe542325c245ccb00a94c08a0d9306c1ddada5.tar.bz2 aports-5abe542325c245ccb00a94c08a0d9306c1ddada5.tar.xz |
community/py-reportlab: drop python2
-rw-r--r-- | community/py3-reportlab/APKBUILD (renamed from community/py-reportlab/APKBUILD) | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/community/py-reportlab/APKBUILD b/community/py3-reportlab/APKBUILD index 18cba4f455..43cae40775 100644 --- a/community/py-reportlab/APKBUILD +++ b/community/py3-reportlab/APKBUILD @@ -1,47 +1,30 @@ # Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> # Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> -pkgname=py-reportlab +pkgname=py3-reportlab +_pkgname=reportlab pkgver=3.4.0 pkgrel=1 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" +depends="py3-pillow ttf-dejavu" +makedepends="freetype-dev py3-setuptools python3-dev" 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" +replaces="py-reportlab" # Backwards compatibility +provides="py-reportlab=$pkgver-r$pkgrel" # Backwards compatibility + 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" + python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="7f00074b93be49e1aa7650e61381e285598599911b12a6b63c0f12d6eb64bc59afb6907b683350740b0a81c99a3164373b27e18cfccc0f9da12405c3dacd1ff7 reportlab-3.4.0.tar.gz" |