# Maintainer: Michael Zhou # Contributor: Michael Zhou 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"