aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-26 01:32:15 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-27 15:01:43 +0000
commitc8e68404acd402f29b141e820464830a3122c311 (patch)
treee145a4376917607d47c86011bc29a66b22986716
parentea2d347066fd8813f468c9609047873b5e7321b1 (diff)
downloadaports-c8e68404acd402f29b141e820464830a3122c311.tar.gz
aports-c8e68404acd402f29b141e820464830a3122c311.tar.bz2
aports-c8e68404acd402f29b141e820464830a3122c311.tar.xz
community/py-zope-hookable: modernize, fix license
-rw-r--r--community/py-zope-hookable/APKBUILD40
1 files changed, 19 insertions, 21 deletions
diff --git a/community/py-zope-hookable/APKBUILD b/community/py-zope-hookable/APKBUILD
index 84aca8d556..caba0c7f36 100644
--- a/community/py-zope-hookable/APKBUILD
+++ b/community/py-zope-hookable/APKBUILD
@@ -3,53 +3,51 @@
pkgname=py-zope-hookable
_pkgname=zope.hookable
pkgver=4.2.0
-pkgrel=1
+pkgrel=2
pkgdesc="Represents the core of the Zope hookable Architecture"
url="https://github.com/zopefoundation/$_pkgname"
arch="all"
-license="ZPL"
+license="ZPL-2.1"
depends="py-setuptools"
-makedepends="python2-dev python3-dev py-setuptools"
+makedepends="python2-dev python3-dev"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
build() {
- cd "$builddir"
- python2 setup.py build
- python3 setup.py build
+ python2 setup.py build
+ python3 setup.py build
}
check() {
- cd "$builddir"
- python2 setup.py test
- python3 setup.py test
+ python2 setup.py test
+ python3 setup.py test
}
package() {
- mkdir -p "$pkgdir"
+ mkdir -p "$pkgdir"
}
_py2() {
- replaces="$pkgname"
- depends="${depends//py-/py2-}"
- _py python2
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
}
_py3() {
- depends="${depends//py-/py3-}"
- _py python3
+ depends="${depends//py-/py3-}"
+ _py python3
}
_py() {
- local python="$1"
- pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
- install_if="$pkgname=$pkgver-r$pkgrel $python"
+ 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"
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
}