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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 02:22:45 UTC 2016


    Date: Sunday, December 25, 2016 @ 02:22:44
  Author: felixonmars
Revision: 201788

archrelease: copy trunk to community-staging-any

Added:
  python-paste/repos/community-staging-any/
  python-paste/repos/community-staging-any/PKGBUILD
    (from rev 201787, python-paste/trunk/PKGBUILD)

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

Copied: python-paste/repos/community-staging-any/PKGBUILD (from rev 201787, python-paste/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 02:22:44 UTC (rev 201788)
@@ -0,0 +1,64 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: David Campbell <davekong at archlinux.us>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase=python-paste
+pkgname=(python-paste python2-paste)
+pkgver=2.0.3
+pkgrel=2
+pkgdesc="Tools for using a Web Server Gateway Interface stack"
+arch=('any')
+url="http://pythonpaste.org/index.html"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-nose' 'python2-nose')
+optdepends=('python2-flup: WSGI utilities'
+            'python-openid: Support for OpenID')
+source=("http://pypi.python.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz")
+md5sums=('1231e14eae62fa7ed76e9130b04bc61e')
+
+prepare() {
+  rm Paste-${pkgver}/paste/httpserver.py.orig
+
+  cp -a Paste-${pkgver}{,-py2}
+
+  cd Paste-${pkgver}-py2
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+      $(find . -name '*.py')
+}
+
+build() {
+  cd "$srcdir"/Paste-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/Paste-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/Paste-$pkgver
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests3
+
+  cd "$srcdir"/Paste-$pkgver-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" nosetests2
+}
+
+package_python-paste() {
+  depends=('python-six')
+
+  cd Paste-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}
+
+package_python2-paste() {
+  depends=('python2-six')
+
+  cd Paste-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
+}



More information about the arch-commits mailing list