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

Felix Yan fyan at archlinux.org
Wed Sep 23 04:33:34 UTC 2015


    Date: Wednesday, September 23, 2015 @ 06:33:34
  Author: fyan
Revision: 141506

archrelease: copy trunk to community-staging-any

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

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

Copied: python-hunter/repos/community-staging-any/PKGBUILD (from rev 141505, python-hunter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-23 04:33:34 UTC (rev 141506)
@@ -0,0 +1,53 @@
+# $Id: PKGBUILD 141472 2015-09-22 16:00:29Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-hunter
+pkgname=('python-hunter' 'python2-hunter')
+pkgver=0.5.0
+pkgrel=1
+arch=('any')
+pkgdesc='Hunter is a flexible code tracing toolkit'
+url='https://github.com/ionelmc/python-hunter'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-fields' 'python2-fields'
+             'python-colorama' 'python2-colorama' 'git')
+checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog'
+              'python-pytest-cov' 'python2-pytest-cov')
+source=("git+https://github.com/ionelmc/python-hunter.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-hunter{,-py2}
+}
+
+build() {
+  cd python-hunter
+  python setup.py build
+
+  cd ../python-hunter-py2
+  python2 setup.py build
+}
+
+check() {
+  cd python-hunter
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test tests || warning "Tests failed"
+
+  cd ../python-hunter-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2 tests || warning "Tests failed"
+}
+
+package_python-hunter() {
+  depends=('python')
+
+  cd python-hunter
+  python setup.py install --root "${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python2-hunter() {
+  depends=('python2')
+
+  cd python-hunter-py2
+  python2 setup.py install --root "${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list