diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:21:56 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-07 07:31:49 -0300 |
commit | 9bb49ef950938559fbca6cff7d23b7572b962e18 (patch) | |
tree | e556d8f7f92f5ef3e3c5a812e2287d182382b54e /community/py3-zope-proxy | |
parent | 73cdf09251eb092f395638fed16a0068dc34f408 (diff) | |
download | aports-9bb49ef950938559fbca6cff7d23b7572b962e18.tar.bz2 aports-9bb49ef950938559fbca6cff7d23b7572b962e18.tar.xz |
community/py3-zope-proxy: rename from py-zope-proxy
Diffstat (limited to 'community/py3-zope-proxy')
-rw-r--r-- | community/py3-zope-proxy/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/community/py3-zope-proxy/APKBUILD b/community/py3-zope-proxy/APKBUILD new file mode 100644 index 0000000000..70ff9a1a7b --- /dev/null +++ b/community/py3-zope-proxy/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org> +# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org> +pkgname=py-zope-proxy +_pkgname=zope.proxy +pkgver=4.3.2 +pkgrel=0 +pkgdesc="Generic transparent proxies via a C extension module" +url="https://github.com/zopefoundation/$_pkgname" +arch="all" +license="ZPL-2.1" +depends="py-setuptools py-zope-interface" +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() { + python2 setup.py build + python3 setup.py build +} + +check() { + 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="4a42a4989775f01f1b663d71058aae9852690d713269b5d58c6e10784ed2ca6ca056be5261bb009f230e198818b92d4e1014961f1144dcfacb47202064a8a666 zope.proxy-4.3.2.tar.gz" |