aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 17:37:14 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 17:45:02 +0100
commitc3e9493226c806d95de6eca7e04666855be70ac1 (patch)
tree397d7b6803c427f6362b43b5a6b2b58f9829a377
parent96b70b0356cc6b75ca5d9d98b94e3a6d14f5ed0a (diff)
downloadaports-c3e9493226c806d95de6eca7e04666855be70ac1.tar.gz
aports-c3e9493226c806d95de6eca7e04666855be70ac1.tar.bz2
aports-c3e9493226c806d95de6eca7e04666855be70ac1.tar.xz
main/py3-django-tables2: drop python2
-rw-r--r--main/py3-django-tables2/APKBUILD43
1 files changed, 8 insertions, 35 deletions
diff --git a/main/py3-django-tables2/APKBUILD b/main/py3-django-tables2/APKBUILD
index e29cfab9c3..18f9f491c3 100644
--- a/main/py3-django-tables2/APKBUILD
+++ b/main/py3-django-tables2/APKBUILD
@@ -1,51 +1,24 @@
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
-pkgname=py-django-tables2
+pkgname=py3-django-tables2
pkgver=1.21.2
-pkgrel=2
+pkgrel=3
pkgdesc="Table/data-grid framework for Django"
-url=https://github.com/bradleyayers/django-tables2/
-arch=noarch
-license=BSD
-depends="py-django py-six"
-makedepends="py-setuptools"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
+url="https://github.com/bradleyayers/django-tables2/"
+arch="noarch"
+license="BSD-2-Clause"
+depends="python3 py3-django py3-six"
+makedepends="py3-setuptools"
options="!check" #no testsuite
source="https://files.pythonhosted.org/packages/source/d/django-tables2/django-tables2-$pkgver.tar.gz"
builddir="$srcdir"/django-tables2-$pkgver
build() {
- cd "$_builddir"
- python2 setup.py --quiet build
python3 setup.py --quiet build
}
package() {
- cd "$_builddir"
- mkdir -p "$pkgdir"/usr/bin
-}
-
-_py2() {
- depends="${depends//py-/py2-}"
- replaces=$pkgname
- provides="$pkgname-r$pkgver"
- _py python2
-}
-
-_py3() {
- depends="${depends//py-/py3-}"
- _py python3
-}
-
-_py() {
- local python="$1"
- local pyver="${1:6:1}"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
+ python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}