[arch-commits] Commit in python-gevent/repos (4 files)
Felix Yan
felixonmars at archlinux.org
Sat Dec 24 17:11:22 UTC 2016
Date: Saturday, December 24, 2016 @ 17:11:21
Author: felixonmars
Revision: 201597
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
python-gevent/repos/community-staging-i686/
python-gevent/repos/community-staging-i686/PKGBUILD
(from rev 201596, python-gevent/trunk/PKGBUILD)
python-gevent/repos/community-staging-x86_64/
python-gevent/repos/community-staging-x86_64/PKGBUILD
(from rev 201596, python-gevent/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 62 ++++++++++++++++++++++++++++++++++++
2 files changed, 124 insertions(+)
Copied: python-gevent/repos/community-staging-i686/PKGBUILD (from rev 201596, python-gevent/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-12-24 17:11:21 UTC (rev 201597)
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 70305 2012-05-04 08:21:08Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ralf Schmitt <ralf at systemexit.de>
+
+pkgbase=python-gevent
+pkgname=(python-gevent python2-gevent)
+pkgver=1.2.0
+pkgrel=2
+arch=('i686' 'x86_64')
+pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
+license=("MIT")
+url="http://www.gevent.org/"
+makedepends=('python-greenlet' 'python2-greenlet' 'cython' 'cython2' 'git')
+checkdepends=('lsof')
+source=("git+https://github.com/gevent/gevent.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ sed -i 's/C.UTF-8/en_US.UTF-8/' gevent/Makefile
+ cp -a gevent{,-py2}
+}
+
+build() {
+ cd "$srcdir"/gevent
+
+ EMBED=1 \
+ CYTHON=cython \
+ PYTHON=python \
+ python setup.py build
+
+ cd "$srcdir"/gevent-py2
+
+ EMBED=1 \
+ CYTHON=cython2 \
+ PYTHON=python2 \
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/gevent
+ PYTHON=python PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" make fulltoxtest || warning "Tests failed"
+
+ cd "$srcdir"/gevent-py2
+ PYTHON=python2 PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make fulltoxtest || warning "Tests failed"
+}
+
+package_python-gevent() {
+ depends=('python-greenlet')
+
+ cd gevent
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-gevent() {
+ depends=('python2-greenlet')
+
+ cd gevent-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
Copied: python-gevent/repos/community-staging-x86_64/PKGBUILD (from rev 201596, python-gevent/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-12-24 17:11:21 UTC (rev 201597)
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 70305 2012-05-04 08:21:08Z mtorromeo $
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Ralf Schmitt <ralf at systemexit.de>
+
+pkgbase=python-gevent
+pkgname=(python-gevent python2-gevent)
+pkgver=1.2.0
+pkgrel=2
+arch=('i686' 'x86_64')
+pkgdesc="Python network library that uses greenlet and libev for easy and scalable concurrency"
+license=("MIT")
+url="http://www.gevent.org/"
+makedepends=('python-greenlet' 'python2-greenlet' 'cython' 'cython2' 'git')
+checkdepends=('lsof')
+source=("git+https://github.com/gevent/gevent.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+ sed -i 's/C.UTF-8/en_US.UTF-8/' gevent/Makefile
+ cp -a gevent{,-py2}
+}
+
+build() {
+ cd "$srcdir"/gevent
+
+ EMBED=1 \
+ CYTHON=cython \
+ PYTHON=python \
+ python setup.py build
+
+ cd "$srcdir"/gevent-py2
+
+ EMBED=1 \
+ CYTHON=cython2 \
+ PYTHON=python2 \
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/gevent
+ PYTHON=python PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.5:$PYTHONPATH" make fulltoxtest || warning "Tests failed"
+
+ cd "$srcdir"/gevent-py2
+ PYTHON=python2 PYTHONPATH="$PWD/build/lib.linux-$CARCH-2.7:$PYTHONPATH" make fulltoxtest || warning "Tests failed"
+}
+
+package_python-gevent() {
+ depends=('python-greenlet')
+
+ cd gevent
+ python setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-gevent() {
+ depends=('python2-greenlet')
+
+ cd gevent-py2
+ python2 setup.py install -O1 --root="$pkgdir"
+ install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list