diff options
author | prspkt <prspkt@protonmail.com> | 2019-06-06 17:14:52 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-06-07 00:09:03 +0300 |
commit | 57541c4b9224072b25f6586c34d3c48790efdbcd (patch) | |
tree | e97be640bc177b4ed3cd8356f863834524b5d632 | |
parent | 9a8755704952504149112846f160a9866ed4f1a4 (diff) | |
download | aports-57541c4b9224072b25f6586c34d3c48790efdbcd.tar.bz2 aports-57541c4b9224072b25f6586c34d3c48790efdbcd.tar.xz |
testing/py-sphinxcontrib-seqdiag: drop python2
-rw-r--r-- | testing/py3-sphinxcontrib-seqdiag/APKBUILD (renamed from testing/py-sphinxcontrib-seqdiag/APKBUILD) | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/testing/py-sphinxcontrib-seqdiag/APKBUILD b/testing/py3-sphinxcontrib-seqdiag/APKBUILD index 8d26d5b435..0f96b3d833 100644 --- a/testing/py-sphinxcontrib-seqdiag/APKBUILD +++ b/testing/py3-sphinxcontrib-seqdiag/APKBUILD @@ -1,6 +1,6 @@ # Contributor: Fabian Affolter <fabian@affolter-engineering.ch> # Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> -pkgname=py-sphinxcontrib-seqdiag +pkgname=py3-sphinxcontrib-seqdiag _pkgname=sphinxcontrib-seqdiag pkgver=0.8.5 pkgrel=2 @@ -8,9 +8,8 @@ pkgdesc="Sphinx "seqdiag" extension" url="https://pypi.python.org/pypi/sphinxcontrib-seqdiag" arch="noarch" license="BSD" -depends="py-sphinx py-seqdiag" -makedepends="python2-dev python3-dev py-setuptools" -subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +depends="py3-seqdiag py3-sphinx" +makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver @@ -24,6 +23,9 @@ prepare() { done } +replaces="py-sphinxcontrib-seqdiag" # for backwards compatibility +provides="py-sphinxcontrib-seqdiag=$pkgver-r$pkgrel" # for backwards compatibility + build() { cd "$builddir" python2 setup.py build || return 1 @@ -31,28 +33,8 @@ 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)" - 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" } |