Commit 2905100a authored by Jakub Jirutka's avatar Jakub Jirutka

community/py-gevent: fix and improve abuild

Dependencies defined in split functions are needed in build time, so
move them to global depends.
parent 4d3ad6d6
......@@ -8,9 +8,9 @@ pkgdesc="Python library for seamless coroutine-based concurrency"
url="http://gevent.org/"
arch="all"
license="MIT"
depends=""
depends="py-greenlet"
makedepends="python2-dev py-setuptools python3-dev libevent-dev file"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://github.com/gevent/gevent/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
......@@ -25,23 +25,23 @@ package() {
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
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() {
_py python2
replaces="$pkgname"
depends="py2-greenlet"
depends="${depends//py-/py2-}"
_py python2
}
_py3() {
depends="${depends//py-/py3-}"
_py python3
depends="py3-greenlet"
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment