[arch-commits] Commit in gunicorn/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:56:06 UTC 2019


    Date: Friday, October 25, 2019 @ 15:56:06
  Author: felixonmars
Revision: 519282

archrelease: copy trunk to community-staging-any

Added:
  gunicorn/repos/community-staging-any/
  gunicorn/repos/community-staging-any/PKGBUILD
    (from rev 519279, gunicorn/trunk/PKGBUILD)

----------+
 PKGBUILD |   68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 68 insertions(+)

Copied: gunicorn/repos/community-staging-any/PKGBUILD (from rev 519279, gunicorn/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:56:06 UTC (rev 519282)
@@ -0,0 +1,68 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Jeremy "Ichimonji10" Audet <ichimonji10 at gmail dot com>
+# Contributor: pumpkin <pumpkin at mailoo dot org>
+# Contributor: Vsevolod Balashov <vsevolod at balashov dot name>
+
+pkgbase=gunicorn
+pkgname=(gunicorn python2-gunicorn)
+pkgver=19.9.0
+pkgrel=2
+pkgdesc='WSGI HTTP Server for UNIX'
+arch=('any')
+url='https://gunicorn.org/'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python2-mock' 'python-coverage' 'python2-coverage' 'python-pytest' 'python2-pytest'
+              'python-pytest-cov' 'python2-pytest-cov' 'python-pytest-runner'
+              'python2-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/benoitc/$pkgbase/archive/$pkgver.tar.gz")
+sha512sums=('8d1ff775dd5c1abb8bb4c80aecacb544382e38d101f105fd0fd7eb6bf98ecb663dd533d16e7b1741d6e5ef0eb12a707ab90e0a7751356e625725f076b4dc1a30')
+
+prepare() {
+  sed -e 's/==/>=/' -e 's/,<.*$//' -i gunicorn-$pkgver/requirements_test.txt
+  cp -a gunicorn-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/gunicorn-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/gunicorn-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/gunicorn-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/gunicorn-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_gunicorn() {
+  depends=('python-setuptools')
+  optdepends=('python-eventlet: For asynchronous request handling with eventlet.'
+              'python-gevent: For asynchronous request handling with gevent.')
+
+  cd $pkgbase-$pkgver
+  python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+  rm -r "$pkgdir"/usr/bin/gunicorn_paster
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-gunicorn() {
+  depends=('python2-setuptools')
+  provides=('gunicorn-python2')
+  conflicts=('gunicorn-python2')
+  replaces=('gunicorn-python2')
+  optdepends=('python2-eventlet: For asynchronous request handling with eventlet.'
+              'python2-gevent: For asynchronous request handling with gevent.')
+
+  cd $pkgbase-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+  rm -r "$pkgdir"/usr/bin/gunicorn_paster
+  mv "$pkgdir"/usr/bin/gunicorn "$pkgdir"/usr/bin/gunicorn-python2
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list