aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-01 21:31:20 +0300
committerprspkt <prspkt@protonmail.com>2019-07-01 21:31:23 +0300
commita092eeb40da91c958cba2cbe8206e1f0b757e1d2 (patch)
tree9e2b6d44e7519b5c4a66cd21cc4643201c9ae62c
parentf4ef4ab26a08059096cc5d4e5d6d0547b7769b31 (diff)
downloadaports-a092eeb40da91c958cba2cbe8206e1f0b757e1d2.tar.bz2
aports-a092eeb40da91c958cba2cbe8206e1f0b757e1d2.tar.xz
testing/py-transitions: drop python2
-rw-r--r--testing/py3-transitions/APKBUILD (renamed from testing/py-transitions/APKBUILD)33
1 files changed, 7 insertions, 26 deletions
diff --git a/testing/py-transitions/APKBUILD b/testing/py3-transitions/APKBUILD
index 874dd6fb9b..dbdef3b3b1 100644
--- a/testing/py-transitions/APKBUILD
+++ b/testing/py3-transitions/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-transitions
+pkgname=py3-transitions
_pkgname=transitions
pkgver=0.4.2
pkgrel=2
@@ -8,41 +8,22 @@ pkgdesc="A lightweight, object-oriented Python state machine implementation"
url="https://github.com/tyarkoni/transitions"
arch="noarch"
license="MIT"
-depends="py-six"
-makedepends="python2-dev py-setuptools python3-dev"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="py3-six"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces=py-transitions # Backwards compatibility
+provides=py-transitions=$pkgver-r$pkgrel # 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 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="47c77f7ee61a997e297251a55e4e3019 transitions-0.4.2.tar.gz"