aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-zope-proxy
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@alpinelinux.org>2019-01-26 15:27:45 +0000
committerCarlo Landmeter <clandmeter@alpinelinux.org>2019-01-26 21:12:19 +0000
commitab6a09a6a57a5d4df60fbe9c7fd5a4a3e7087359 (patch)
tree5d25c8a6ec471dde46f6b85ab488644262544433 /community/py-zope-proxy
parent496f5ff6044886990b372eb0715d8b415f602ebc (diff)
downloadaports-ab6a09a6a57a5d4df60fbe9c7fd5a4a3e7087359.tar.bz2
aports-ab6a09a6a57a5d4df60fbe9c7fd5a4a3e7087359.tar.xz
community/py-zope-proxy: new aport
This is added to community for certbot.
Diffstat (limited to 'community/py-zope-proxy')
-rw-r--r--community/py-zope-proxy/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/community/py-zope-proxy/APKBUILD b/community/py-zope-proxy/APKBUILD
new file mode 100644
index 0000000000..1b29b3c574
--- /dev/null
+++ b/community/py-zope-proxy/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
+pkgname=py-zope-proxy
+_pkgname=zope.proxy
+pkgver=4.3.1
+pkgrel=0
+pkgdesc="Generic transparent proxies via a C extension module"
+url="https://github.com/zopefoundation/$_pkgname"
+arch="all"
+license="ZPL"
+depends="py-setuptools py-zope-interface"
+makedepends="python2-dev python3-dev py-setuptools"
+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
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/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"
+}
+
+
+sha512sums="1072258c35bf23162c4f347060ea79979cbfc551c308e809b7e63f1d9434f566b665954edf3d2ab0b72161fb74b0e707c5904775876188306411ed0401424612 zope.proxy-4.3.1.tar.gz"