aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-gevent/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-08-23 11:50:26 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-08-23 11:50:26 +0000
commit02361af75c67066a5ebde0cbdbcba3d830a50377 (patch)
tree9c049154141c91dc81c97c3e8a992498d25de7a9 /community/py-gevent/APKBUILD
parentbb160bb259b96da87176aa01213e1a75306069ae (diff)
downloadaports-02361af75c67066a5ebde0cbdbcba3d830a50377.tar.bz2
aports-02361af75c67066a5ebde0cbdbcba3d830a50377.tar.xz
community/py-gevent: moved from testing, upgraded to 1.1.2, added python3 support and py2/py3 subpackages
Diffstat (limited to 'community/py-gevent/APKBUILD')
-rw-r--r--community/py-gevent/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/py-gevent/APKBUILD b/community/py-gevent/APKBUILD
new file mode 100644
index 0000000000..2de49a0e14
--- /dev/null
+++ b/community/py-gevent/APKBUILD
@@ -0,0 +1,50 @@
+# Maintainer: Michael Zhou <zhoumichaely@gmail.com>
+# Contributor: Michael Zhou <zhoumichaely@gmail.com>
+pkgname=py-gevent
+_pkgname=${pkgname#py-}
+pkgver=1.1.2
+pkgrel=0
+pkgdesc="Python library for seamless coroutine-based concurrency"
+url="http://gevent.org/"
+arch="noarch"
+license="MIT"
+depends=""
+makedepends="python2-dev py-setuptools python3-dev libevent-dev file"
+subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
+source="https://github.com/gevent/gevent/releases/download/v$pkgver/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python=$1
+ pkgdesc="$pkgdesc - $python"
+ arch="all"
+ 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"
+}
+
+_py3() {
+ _py python3
+ depends="py3-greenlet"
+}
+
+
+md5sums="bb32a2f852a4997138014d5007215c6e gevent-1.1.2.tar.gz"
+sha256sums="cb15cf73d69a2eeefed330858f09634e2c50bf46da9f9e7635730fcfb872c02c gevent-1.1.2.tar.gz"
+sha512sums="6b0a381486b0d8eaf446890bc6339ee1185ad666c11c8d56e25d148f8c6f2d7be955423c763486d1276d8d34cec933706eb3752b0894b3f5444f93fafd62cf3c gevent-1.1.2.tar.gz"