aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-kiwisolver
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-07 12:44:26 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-07 13:07:51 -0300
commit34e7dcecefda82743745a61e8f49afe8f04d094d (patch)
tree83a240cd67a990ff67549f0e96474608a76b3662 /testing/py3-kiwisolver
parenta048a64c5219310ea72dbfce62574e126835e3f1 (diff)
downloadaports-34e7dcecefda82743745a61e8f49afe8f04d094d.tar.bz2
aports-34e7dcecefda82743745a61e8f49afe8f04d094d.tar.xz
testing/py3-kiwisolver: drop py2
Diffstat (limited to 'testing/py3-kiwisolver')
-rw-r--r--testing/py3-kiwisolver/APKBUILD47
1 files changed, 14 insertions, 33 deletions
diff --git a/testing/py3-kiwisolver/APKBUILD b/testing/py3-kiwisolver/APKBUILD
index bf6f5b212a..374d9be5bd 100644
--- a/testing/py3-kiwisolver/APKBUILD
+++ b/testing/py3-kiwisolver/APKBUILD
@@ -1,51 +1,32 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
-pkgname=py-kiwisolver
+pkgname=py3-kiwisolver
_pkgname=kiwisolver
pkgver=1.1.0
-pkgrel=0
-pkgdesc="An efficient implementation of the Cassowary constraint solving algorithm"
+pkgrel=1
+pkgdesc="Efficient implementation of the Cassowary constraint solving algorithm"
url="https://github.com/nucleic/kiwi"
arch="all"
-license="BSD-3-Clause"
-makedepends="python2-dev python3-dev py-setuptools py3-setuptools"
+license="BSD-3-Clause-Attribution"
+depends="py3-setuptools"
+makedepends="python3-dev"
checkdepends="py3-pytest"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$pkgname-$pkgver.tar.gz::https://github.com/nucleic/kiwi/archive/$pkgver.tar.gz"
builddir="$srcdir"/kiwi-$pkgver
+replaces="py-kiwisolver" # Backwards compatibility
+provides="py-kiwisolver=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- python2 setup.py build
python3 setup.py build
}
-package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- depends="py2-setuptools"
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- depends="py3-setuptools"
- _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"
-}
-
check() {
PYTHONPATH="$(echo $PWD/build/lib.*-3*)" py.test-3
}
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
-sha512sums="e26a951fdba2fb221effe7ed785010d5795695b30e19fb67a30dc2ac883ee21b1daec967ad89734309c101513cd17bb5971118591270f402b8d46098178aff25 py-kiwisolver-1.1.0.tar.gz"
+sha512sums="e26a951fdba2fb221effe7ed785010d5795695b30e19fb67a30dc2ac883ee21b1daec967ad89734309c101513cd17bb5971118591270f402b8d46098178aff25 py3-kiwisolver-1.1.0.tar.gz"