aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-06-20 09:41:29 +0300
committerprspkt <prspkt@protonmail.com>2019-06-20 09:41:32 +0300
commitc3b55f5da27c55a93d29ca58d9526ed9c7166baf (patch)
tree515292032b0762a9db21bc1a09da68fe8bcd6d51
parentd1b7da637c0964e874055ed1cb522dfb28fbb613 (diff)
downloadaports-c3b55f5da27c55a93d29ca58d9526ed9c7166baf.tar.bz2
aports-c3b55f5da27c55a93d29ca58d9526ed9c7166baf.tar.xz
testing/py-infinity: drop python2
-rw-r--r--testing/py3-infinity/APKBUILD (renamed from testing/py-infinity/APKBUILD)31
1 files changed, 7 insertions, 24 deletions
diff --git a/testing/py-infinity/APKBUILD b/testing/py3-infinity/APKBUILD
index b9696e19fb..0319114620 100644
--- a/testing/py-infinity/APKBUILD
+++ b/testing/py3-infinity/APKBUILD
@@ -1,6 +1,6 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py-infinity
+pkgname=py3-infinity
_pkgname=infinity
pkgver=1.4
pkgrel=2
@@ -8,39 +8,22 @@ pkgdesc="All-in-one infinity value for Python"
url="https://github.com/kvesteri/infinity"
arch="noarch"
license="BSD"
-makedepends="python2-dev python3-dev py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+depends="python3"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-infinity" # Backwards compatibility
+provides="py-infinity=$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-total-ordering"
- _py python2
-}
-
-_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="635a344a05c37c1e005b0f1233ecbda9 infinity-1.4.tar.gz"