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

Felix Yan fyan at archlinux.org
Sat Sep 19 14:24:28 UTC 2015


    Date: Saturday, September 19, 2015 @ 16:24:27
  Author: fyan
Revision: 140872

archrelease: copy trunk to community-staging-any

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

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

Copied: python-webob/repos/community-staging-any/PKGBUILD (from rev 140871, python-webob/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 14:24:27 UTC (rev 140872)
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Aaron DeVore <aaron.devore at gmail.com>
+# Contributor: Cilyan Olowen <gaknar at gmail.com>
+
+pkgbase='python-webob'
+pkgname=('python-webob' 'python2-webob' 'python-webob-docs')
+pkgver=1.4.1
+pkgrel=2
+pkgdesc="WSGI request and response object"
+arch=('any')
+url="http://pythonpaste.org/webob/"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-sphinx')
+checkdepends=('python-nose' 'python2-nose')
+optdepends=('python-webob-docs: documentation')
+source=("http://pypi.python.org/packages/source/W/WebOb/WebOb-${pkgver}.tar.gz")
+md5sums=('a5c6e8ba5431756e6a5d5ec56047ec94')
+
+prepare() {
+  cp -a "$srcdir/WebOb-${pkgver}"{,-py2}
+  cp -a "$srcdir/WebOb-${pkgver}"{,-docs}
+}
+
+build() {
+  cd "$srcdir/WebOb-${pkgver}"
+  python setup.py build
+
+  cd "$srcdir/WebOb-${pkgver}-py2"
+  python2 setup.py build
+
+  cd "$srcdir/WebOb-${pkgver}-docs"
+  python setup.py build_sphinx
+}
+
+check() {
+  cd "$srcdir/WebOb-${pkgver}"
+  python setup.py test
+
+  cd "$srcdir/WebOb-${pkgver}-py2"
+  python2 setup.py test
+}
+
+package_python-webob() {
+  depends=('python')
+
+  cd "$srcdir/WebOb-${pkgver}"
+  python setup.py install -O1 --root="$pkgdir"
+  install -D -m644 "docs/license.txt" \
+                   "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}
+
+package_python2-webob() {
+  depends=('python2')
+
+  cd "$srcdir/WebOb-${pkgver}-py2"
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -D -m644 "docs/license.txt" \
+                   "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}
+
+package_python-webob-docs() {
+  optdepends=()
+
+  cd "$srcdir/WebOb-${pkgver}-docs"
+  _doc_dir="$pkgdir/usr/share/docs/python-webob"
+  mkdir -p "$_doc_dir"
+  cp -a "build/sphinx/html" "$_doc_dir"
+  install -D -m644 "docs/license.txt" \
+                   "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}



More information about the arch-commits mailing list