summaryrefslogtreecommitdiff
path: root/community/python2-gevent/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/python2-gevent/PKGBUILD')
-rw-r--r--community/python2-gevent/PKGBUILD28
1 files changed, 17 insertions, 11 deletions
diff --git a/community/python2-gevent/PKGBUILD b/community/python2-gevent/PKGBUILD
index 5b62ecde1..7cffa0137 100644
--- a/community/python2-gevent/PKGBUILD
+++ b/community/python2-gevent/PKGBUILD
@@ -4,27 +4,33 @@
# Contributor: Ralf Schmitt <ralf@systemexit.de>
pkgname=python2-gevent
-pkgver=0.13.8
-pkgrel=2
+pkgver=1.0
+pkgrel=1
arch=('i686' 'x86_64')
-pkgdesc="Python network library that uses greenlet and libevent for easy and scalable concurrency"
+pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
license=("MIT")
url="http://www.gevent.org/"
-depends=('libevent' 'python2-greenlet')
-makedepends=('python2-distribute')
-
-source=(http://pypi.python.org/packages/source/g/gevent/gevent-$pkgver.tar.gz)
+depends=('python2-greenlet')
+makedepends=('git' 'cython2')
+provides=('python2-gevent-beta')
+conflicts=('python2-gevent-beta')
+replaces=('python2-gevent-beta')
+source=("git://github.com/surfly/gevent.git#tag=$pkgver")
build() {
- cd "$srcdir/gevent-$pkgver"
+ cd gevent
+
+ LIBEV_EMBED=1 \
+ CARES_EMBED=1 \
+ CYTHON=cython2 \
+ PYTHON=python2 \
python2 setup.py build
}
package() {
- cd "$srcdir/gevent-$pkgver"
+ cd gevent
python2 setup.py install -O1 --root="$pkgdir"
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
- install -Dm0644 LICENSE.pyevent "$pkgdir/usr/share/licenses/$pkgname/LICENSE.pyevent"
}
-md5sums=('ca9dcaa7880762d8ebbc266b11252960')
+md5sums=('SKIP')