aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-dnspython
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-08 08:48:17 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-08 10:45:44 -0300
commitb9a3dd4e0613f09f3353b7c90bc9b73893a3a3de (patch)
tree140c9395ac12736dab6fd269358ada5327b0c17d /community/py3-dnspython
parent2861ff088e16a763a83cad71da9d5efe430cf8d0 (diff)
downloadaports-b9a3dd4e0613f09f3353b7c90bc9b73893a3a3de.tar.bz2
aports-b9a3dd4e0613f09f3353b7c90bc9b73893a3a3de.tar.xz
community/py3-dnspython: drop py2, enable cython extensions
Diffstat (limited to 'community/py3-dnspython')
-rw-r--r--community/py3-dnspython/APKBUILD46
1 files changed, 12 insertions, 34 deletions
diff --git a/community/py3-dnspython/APKBUILD b/community/py3-dnspython/APKBUILD
index 0f13ad0a9b..a7befb6396 100644
--- a/community/py3-dnspython/APKBUILD
+++ b/community/py3-dnspython/APKBUILD
@@ -1,51 +1,29 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-dnspython
+pkgname=py3-dnspython
_pkgname=dnspython
pkgver=1.16.0
-pkgrel=1
-pkgdesc="A DNS toolkit for Python"
+pkgrel=2
+pkgdesc="A DNS toolkit for Python3"
url="http://www.dnspython.org"
-arch="noarch"
-license="BSD"
-makedepends="python2-dev py-setuptools python3-dev"
-subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+arch="all"
+license="ISC"
+makedepends="py3-setuptools python3-dev cython3"
source="http://www.dnspython.org/kits/$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
+replaces="py-dnspython" # Backwards compatibility
+provides="py-dnspython=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build
- python3 setup.py build
+ python3 setup.py build --cython-compile
}
check() {
- cd "$builddir"
- python2 setup.py check
- python3 setup.py check
+ python3 setup.py check --cython-compile
}
package() {
- mkdir -p "$pkgdir"
+ python3 setup.py install --cython-compile --prefix=/usr --root="$pkgdir"
}
-
-_py() {
- local python="$1"
- pkgdesc="$pkgdesc ${python:6:1}"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
-
- cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- _py python2
-}
-
-_py3() {
- _py python3
-}
-
sha512sums="41ddca2faf696d5d682551f517efd90c007011c1f6d9355d297d71a3fe84222a1e528945343d8c2276ad3957ceaab578f3df7c2c1709418ffcca01ccbb379359 dnspython-1.16.0.tar.gz"