aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-cliapp
diff options
context:
space:
mode:
authordai9ah <dai9ah@protonmail.com>2018-02-22 19:41:36 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-05 11:56:19 +0000
commit9f6704d36ad14acd7a602d921d930874a69c306b (patch)
tree135ea3b5a254c7adad5bd7875ade75006d7e86fe /main/py-cliapp
parent89b03a46de2b60f36e101fbdf0e211ccf7dc25ae (diff)
downloadaports-9f6704d36ad14acd7a602d921d930874a69c306b.tar.bz2
aports-9f6704d36ad14acd7a602d921d930874a69c306b.tar.xz
main/py-cliapp: upgrade to 1.20170823, add python3, fix license
Diffstat (limited to 'main/py-cliapp')
-rw-r--r--main/py-cliapp/APKBUILD54
1 files changed, 35 insertions, 19 deletions
diff --git a/main/py-cliapp/APKBUILD b/main/py-cliapp/APKBUILD
index 2fc32960c4..f4dd4c2d51 100644
--- a/main/py-cliapp/APKBUILD
+++ b/main/py-cliapp/APKBUILD
@@ -1,31 +1,47 @@
# Maintainer:
pkgname=py-cliapp
_pkgname=${pkgname#py-}
-pkgver=1.20150829
-pkgrel=1
+pkgver=1.20170823
+pkgrel=0
pkgdesc="Framework for Unix-like command line programs"
-url="http://liw.fi/cliapp/"
+url="http://liw.fi/cliapp"
arch="noarch"
-license="GPL-3.0-or-later"
-depends="python2"
-depends_dev=""
-makedepends="py-setuptools"
-install=""
-subpackages="$pkgname-doc"
-source="http://code.liw.fi/debian/pool/main/p/python-cliapp/python-cliapp_$pkgver.orig.tar.xz"
-
-_builddir="$srcdir"/python-$_pkgname-$pkgver
+license="GPL-2.0-or-later"
+depends="python2 python3"
+makedepends="py-setuptools py-yaml"
+subpackages="$pkgname-doc py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+source="http://code.liw.fi/debian/pool/main/p/python-${_pkgname}/python-${_pkgname}_$pkgver.orig.tar.xz"
+builddir="$srcdir/python-$_pkgname-$pkgver"
build() {
- cd "$_builddir"
- python2 setup.py build || return 1
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
}
package() {
- cd "$_builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ mkdir -p "$pkgdir" \
+ "$startdir/pkg/$pkgname-doc/usr"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+ mv "$subpkgdir"/usr/share "$startdir/pkg/$pkgname-doc/usr"
+}
+
+_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"
}
-md5sums="32ed6af694fe0ce06a62f0ef1ffc7387 python-cliapp_1.20150829.orig.tar.xz"
-sha256sums="28bc06e8c810e8c392768d2c60b73445dd7f15efc85f124537e4ac16c2265586 python-cliapp_1.20150829.orig.tar.xz"
-sha512sums="1d5147e5527b46707e9d7bb38f72584ba58790c97ea25f173644db10ddeea5e1ed03452729a9a0d28473761960079670f8906cd4ea9fbe70ced4ce45369cf5a9 python-cliapp_1.20150829.orig.tar.xz"
+sha512sums="2b42cd981633791c98c33c968169c4d8bdf0448cc73872d4173e756b7aa390eee46c04c55e87675d27b4aae9e77613cbc574ecb2c0924c549a977aed60ff1924 python-cliapp_1.20170823.orig.tar.xz"