aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-zope-event
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-zope-event')
-rw-r--r--community/py-zope-event/APKBUILD48
1 files changed, 39 insertions, 9 deletions
diff --git a/community/py-zope-event/APKBUILD b/community/py-zope-event/APKBUILD
index 1067f03d2a..3411c31754 100644
--- a/community/py-zope-event/APKBUILD
+++ b/community/py-zope-event/APKBUILD
@@ -1,25 +1,55 @@
-# Contributor: Carlo Landmeter <clandmeter@gmail.com>
-# Maintainer:
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py-zope-event
-pkgver=4.3.0
+pkgver=4.4
pkgrel=0
pkgdesc="Event publishing / dispatch, used by Zope Component Architecture"
url="https://github.com/zopefoundation/zope.event"
arch="noarch"
license="ZPL"
-makedepends="py-setuptools"
+depends="py-setuptools"
+makedepends="python2-dev python3-dev py-setuptools"
+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
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
}
package() {
- cd "$builddir"
- python2 setup.py install --prefix=/usr --root="$pkgdir"
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/py3-}"
+ _py python3
}
-sha512sums="7c42074023f56395156ef7bb120b00972dca8dfa2c80dd0387cb6f58b22380e34f8a2bf7b2fe717941cbcf1997e1aaea9f500f124fceb1c664c90e6c55150ffa zope.event-4.3.0.tar.gz"
+_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"
+}
+
+
+sha512sums="653273d021a43dca6d77900a3e2928f1621fd9c47a536ddd186e00b601670a4ac72042a1eadf18cf9912609025b491cee41508e8eb53bf2dc2ada2c5d3d5bb70 zope.event-4.4.tar.gz"