aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-11-19 15:20:22 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-19 15:35:37 +0100
commitdc628472fd1cae2a7b723ceaca2f6dcb007b6938 (patch)
treec98643400527d9da6fe734d0c29be370d801b823
parenta0583e1d99129fe747951aa9059a6f3ad6e48a01 (diff)
downloadaports-dc628472fd1cae2a7b723ceaca2f6dcb007b6938.tar.gz
aports-dc628472fd1cae2a7b723ceaca2f6dcb007b6938.tar.bz2
aports-dc628472fd1cae2a7b723ceaca2f6dcb007b6938.tar.xz
main/py3-funcsigs: drop python2
-rw-r--r--main/py3-funcsigs/APKBUILD41
1 files changed, 10 insertions, 31 deletions
diff --git a/main/py3-funcsigs/APKBUILD b/main/py3-funcsigs/APKBUILD
index b315068fc4..bd293955a2 100644
--- a/main/py3-funcsigs/APKBUILD
+++ b/main/py3-funcsigs/APKBUILD
@@ -1,48 +1,27 @@
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
-pkgname=py-funcsigs
+pkgname=py3-funcsigs
_pkgname=funcsigs
pkgver=1.0.2
-pkgrel=3
-pkgdesc="Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+"
+pkgrel=4
+pkgdesc="Python3 function signatures from PEP362 for Python 3.2+"
url="http://funcsigs.readthedocs.org"
arch="noarch"
license="Apache-2.0"
-depends=""
-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-funcsigs" # Backwards compatibility
+provides="py-funcsigs=$pkgver-r$pkgrel" # Backwards compatibility
+
build() {
- cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python3 setup.py build
}
package() {
- mkdir -p "$pkgdir"
-}
-
-_py2() {
- replaces="$pkgname"
- _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="7e583285b1fb8a76305d6d68f4ccc14e funcsigs-1.0.2.tar.gz"
-sha256sums="a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50 funcsigs-1.0.2.tar.gz"
sha512sums="4e583bb7081bb1d6c0fe5a6935ca03032d562b93ef5c11b51a72ce9e7ac12902451cc2233c7e6f70440629d88d8e6e9625965ee408100b80b0024f3a6204afda funcsigs-1.0.2.tar.gz"