aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-05-26 01:34:32 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-27 15:00:46 +0000
commitdd0656bd14b6c940bcdcbcba87b7bd3c6019d252 (patch)
tree95553e164c6c4ad64f1156f1fdce609901ce2c93
parent26543eb06351c44aa6bf8153322f4dc3eb87defe (diff)
downloadaports-dd0656bd14b6c940bcdcbcba87b7bd3c6019d252.tar.gz
aports-dd0656bd14b6c940bcdcbcba87b7bd3c6019d252.tar.bz2
aports-dd0656bd14b6c940bcdcbcba87b7bd3c6019d252.tar.xz
community/py-zope-event: modernize, fix license
-rw-r--r--community/py-zope-event/APKBUILD40
1 files changed, 19 insertions, 21 deletions
diff --git a/community/py-zope-event/APKBUILD b/community/py-zope-event/APKBUILD
index 9d485cdc60..fdf6fe13af 100644
--- a/community/py-zope-event/APKBUILD
+++ b/community/py-zope-event/APKBUILD
@@ -2,53 +2,51 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py-zope-event
pkgver=4.4
-pkgrel=1
+pkgrel=2
pkgdesc="Event publishing / dispatch, used by Zope Component Architecture"
url="https://github.com/zopefoundation/zope.event"
arch="noarch"
-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="zope.event-$pkgver.tar.gz::https://github.com/zopefoundation/zope.event/archive/$pkgver.tar.gz"
builddir="$srcdir"/zope.event-$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"
}