[arch-commits] Commit in python-logbook/repos (4 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 14:06:26 UTC 2015


    Date: Saturday, September 19, 2015 @ 16:06:26
  Author: fyan
Revision: 140854

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-logbook/repos/community-staging-i686/
  python-logbook/repos/community-staging-i686/PKGBUILD
    (from rev 140853, python-logbook/trunk/PKGBUILD)
  python-logbook/repos/community-staging-x86_64/
  python-logbook/repos/community-staging-x86_64/PKGBUILD
    (from rev 140853, python-logbook/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   57 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   57 ++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)

Copied: python-logbook/repos/community-staging-i686/PKGBUILD (from rev 140853, python-logbook/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-19 14:06:26 UTC (rev 140854)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tomas Schertel<tschertel at gmail.com>
+
+pkgbase=python-logbook
+pkgname=(python-logbook python2-logbook)
+_pypiname=Logbook
+pkgver=0.10.0
+pkgrel=2
+pkgdesc="Logging sytem for Python that replaces the standard library’s logging module"
+arch=('i686' 'x86_64')
+url="http://packages.python.org/Logbook/index.html"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git'
+             'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/mitsuhiko/logbook.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a logbook{,-py2}
+}
+
+build() {
+  cd "$srcdir/logbook"
+  cython logbook/_speedups.pyx
+  python setup.py build
+
+  cd "$srcdir/logbook-py2"
+  cython2 logbook/_speedups.pyx
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/logbook"
+  LC_CTYPE=en_US.UTF-8 py.test tests
+
+  cd "$srcdir/logbook-py2"
+  LC_CTYPE=en_US.UTF-8 py.test2 tests
+}
+
+package_python-logbook() {
+  depends=('python-six')
+
+  cd "${srcdir}/logbook"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-logbook() {
+  depends=('python2-six')
+
+  cd "${srcdir}/logbook-py2"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: python-logbook/repos/community-staging-x86_64/PKGBUILD (from rev 140853, python-logbook/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-19 14:06:26 UTC (rev 140854)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tomas Schertel<tschertel at gmail.com>
+
+pkgbase=python-logbook
+pkgname=(python-logbook python2-logbook)
+_pypiname=Logbook
+pkgver=0.10.0
+pkgrel=2
+pkgdesc="Logging sytem for Python that replaces the standard library’s logging module"
+arch=('i686' 'x86_64')
+url="http://packages.python.org/Logbook/index.html"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'git'
+             'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("git+https://github.com/mitsuhiko/logbook.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a logbook{,-py2}
+}
+
+build() {
+  cd "$srcdir/logbook"
+  cython logbook/_speedups.pyx
+  python setup.py build
+
+  cd "$srcdir/logbook-py2"
+  cython2 logbook/_speedups.pyx
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/logbook"
+  LC_CTYPE=en_US.UTF-8 py.test tests
+
+  cd "$srcdir/logbook-py2"
+  LC_CTYPE=en_US.UTF-8 py.test2 tests
+}
+
+package_python-logbook() {
+  depends=('python-six')
+
+  cd "${srcdir}/logbook"
+  python setup.py install --root="${pkgdir}/" --optimize=1
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-logbook() {
+  depends=('python2-six')
+
+  cd "${srcdir}/logbook-py2"
+  python2 setup.py install --root="${pkgdir}/" --optimize=1
+
+  install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list