diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 05:55:02 -0300 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-09-08 06:57:56 -0300 |
commit | a26a69fb7df35165d44a9b6b22a6d5022f7b0146 (patch) | |
tree | 2a0e6a707174cd4d2e72ef6e87c0c73554b3a522 /community/py3-gevent | |
parent | 6cdaebd68fff17491b46f0968f56ecb5af268d61 (diff) | |
download | aports-a26a69fb7df35165d44a9b6b22a6d5022f7b0146.tar.bz2 aports-a26a69fb7df35165d44a9b6b22a6d5022f7b0146.tar.xz |
community/py3-gevent: rename from py-gevent
Diffstat (limited to 'community/py3-gevent')
-rw-r--r-- | community/py3-gevent/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/community/py3-gevent/APKBUILD b/community/py3-gevent/APKBUILD new file mode 100644 index 0000000000..b53fc7455b --- /dev/null +++ b/community/py3-gevent/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Michael Zhou <zhoumichaely@gmail.com> +# Contributor: Michael Zhou <zhoumichaely@gmail.com> +pkgname=py-gevent +_pkgname=${pkgname#py-} +pkgver=1.4.0 +pkgrel=0 +pkgdesc="Python library for seamless coroutine-based concurrency" +url="http://gevent.org/" +arch="all" +license="MIT" +depends="py-greenlet" +makedepends="python2-dev py-setuptools python3-dev libevent-dev file cython" +subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" +source="$pkgname-$pkgver.tar.gz::https://github.com/$_pkgname/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python2 setup.py build + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + depends="${depends//py-/py2-}" + _py python2 +} + +_py3() { + depends="${depends//py-/py3-}" + _py python3 +} + + +sha512sums="3cfc9de24a21f544c53aa78314641c8208fb9c7e9a8366a2310e8847982a44b09bee046a24a36fe6ec09aa060ba64c151b7c67bafd740cc510520b8dc6f3b570 py-gevent-1.4.0.tar.gz" |