[arch-commits] Commit in python-repoze.profile/repos (2 files)

Felix Yan fyan at archlinux.org
Sun Sep 20 03:34:55 UTC 2015


    Date: Sunday, September 20, 2015 @ 05:34:54
  Author: fyan
Revision: 141158

archrelease: copy trunk to community-staging-any

Added:
  python-repoze.profile/repos/community-staging-any/
  python-repoze.profile/repos/community-staging-any/PKGBUILD
    (from rev 141157, python-repoze.profile/trunk/PKGBUILD)

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

Copied: python-repoze.profile/repos/community-staging-any/PKGBUILD (from rev 141157, python-repoze.profile/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 03:34:54 UTC (rev 141158)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer : Felix Yan <felixonmars at archlinux.org>
+
+_name=repoze.profile
+pkgname=(python-$_name python2-$_name)
+pkgver=2.1
+pkgrel=2
+pkgdesc="Aggregate profiling for WSGI requests"
+arch=('any')
+license=('custom:BSD')
+url="http://docs.repoze.org/profile/"
+makedepends=('python-setuptools' 'python2-setuptools' 'pyprof2calltree' 'python2-pyprof2calltree')
+checkdepends=('python-nose' 'python2-nose')
+source=("http://pypi.python.org/packages/source/r/$_name/$_name-$pkgver.tar.gz")
+md5sums=('50043eb6347f3f024d852062084a02b5')
+
+prepare() {
+  cp -a $_name-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/$_name-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/$_name-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/$_name-$pkgver"
+  nosetests3
+
+  cd "$srcdir/$_name-$pkgver-py2"
+  nosetests2
+}
+
+package_python-repoze.profile() {
+  depends=('python')
+  optdepends=('pyprof2calltree')
+
+  cd $_name-$pkgver
+  python setup.py install --root="${pkgdir}"
+  
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}
+
+package_python2-repoze.profile() {
+  depends=('python2-pyprof2calltree')
+
+  cd $_name-$pkgver-py2
+  python2 setup.py install --root="${pkgdir}"
+
+  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}



More information about the arch-commits mailing list