diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-06 17:42:36 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-06 19:03:10 +0300 |
commit | e6445739fc6af8b62a85acf1cf0cb6c613658303 (patch) | |
tree | 1a5abde3435ecc0084644cbe5a6a9b7617549a8c | |
parent | 2a301372c42379b30ad53386ac6cf9b682b00335 (diff) | |
download | aports-e6445739fc6af8b62a85acf1cf0cb6c613658303.tar.bz2 aports-e6445739fc6af8b62a85acf1cf0cb6c613658303.tar.xz |
testing/py-blockdiag: drop python2
-rw-r--r-- | testing/py3-blockdiag/APKBUILD (renamed from testing/py-blockdiag/APKBUILD) | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/testing/py-blockdiag/APKBUILD b/testing/py3-blockdiag/APKBUILD index deb06c454f..96a38d08eb 100644 --- a/testing/py-blockdiag/APKBUILD +++ b/testing/py3-blockdiag/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-blockdiag +pkgname=py3-blockdiag _pkgname=blockdiag pkgver=1.5.3 pkgrel=3 @@ -8,9 +8,8 @@ pkgdesc="A python tool to generate block-diagram" url="http://blockdiag.com" arch="noarch" license="Apache-2.0" -depends="py-pillow py-funcparserlib py-webcolors" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-funcparserlib py3-pillow py3-webcolors" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver @@ -24,35 +23,17 @@ prepare() { done } +replaces="py-blockdiag" # for backwards compatibility +provides="py-blockdiag=$pkgver-r$pkgrel" # for backwards compatibility + build() { cd "$builddir" - python2 setup.py build || return 1 python3 setup.py build || return 1 } package() { - mkdir -p "$pkgdir" -} - -_py2() { - replaces="$pkgname" - depends="${depends//py-/py2-} py-setuptools" - _py python2 -} - -_py3() { - depends="${depends//py-/py3-}" - _py python3 -} - -_py() { - local python="$1" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $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" } md5sums="24c1de40066687a6e0f401a97197f43c blockdiag-1.5.3.tar.gz" |