aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/py-gevent/APKBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/community/py-gevent/APKBUILD b/community/py-gevent/APKBUILD
index 90846e9669..2881b51b2f 100644
--- a/community/py-gevent/APKBUILD
+++ b/community/py-gevent/APKBUILD
@@ -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"
}