[arch-commits] Commit in python-decorator/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sat Dec 24 17:03:55 UTC 2016


    Date: Saturday, December 24, 2016 @ 17:03:55
  Author: felixonmars
Revision: 201593

archrelease: copy trunk to community-staging-any

Added:
  python-decorator/repos/community-staging-any/
  python-decorator/repos/community-staging-any/LICENSE.txt
    (from rev 201592, python-decorator/trunk/LICENSE.txt)
  python-decorator/repos/community-staging-any/PKGBUILD
    (from rev 201592, python-decorator/trunk/PKGBUILD)

-------------+
 LICENSE.txt |   26 +++++++++++++++++++++++++
 PKGBUILD    |   59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)

Copied: python-decorator/repos/community-staging-any/LICENSE.txt (from rev 201592, python-decorator/trunk/LICENSE.txt)
===================================================================
--- community-staging-any/LICENSE.txt	                        (rev 0)
+++ community-staging-any/LICENSE.txt	2016-12-24 17:03:55 UTC (rev 201593)
@@ -0,0 +1,26 @@
+Copyright (c) 2007, Michele Simionato
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+  Redistributions of source code must retain the above copyright 
+  notice, this list of conditions and the following disclaimer.
+  Redistributions in bytecode form must reproduce the above copyright
+  notice, this list of conditions and the following disclaimer in
+  the documentation and/or other materials provided with the
+  distribution. 
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+  HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+  OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+  DAMAGE.

Copied: python-decorator/repos/community-staging-any/PKGBUILD (from rev 201592, python-decorator/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 17:03:55 UTC (rev 201593)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Thomas Dziedzic < gostrc at gmail >
+# Contributor: Pierre Chapuis <catwell at archlinux dot us>
+
+pkgname=('python-decorator' 'python2-decorator')
+pkgver=4.0.10
+pkgrel=2
+pkgdesc='Python Decorator module'
+arch=('any')
+url='http://pypi.python.org/pypi/decorator'
+license=('BSD')
+makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/13/8a/4eed41e338e8dcc13ca41c94b142d4d20c0de684ee5065523fee406ce76f/decorator-4.0.10.tar.gz"
+        'LICENSE.txt')
+md5sums=('434b57fdc3230c500716c5aff8896100'
+         '0ca76d2c707f09dbb04acc425ea1a08b')
+
+build() {
+  # Make python and python2 builds possible
+  cp -r decorator-$pkgver decorator2-$pkgver
+
+  cd "$srcdir/decorator-$pkgver"
+
+  python3 setup.py build
+
+  cd "$srcdir/decorator2-$pkgver"
+
+  python2 setup.py build
+}
+
+package_python2-decorator() {
+depends=('python2')
+replaces=('python-decorator<=3.3.2-1')
+  cd "${srcdir}/decorator2-${pkgver}"
+
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 "${srcdir}/LICENSE.txt" \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+package_python-decorator() {
+depends=('python')
+  cd "${srcdir}/decorator-${pkgver}"
+
+  python3 setup.py install --root="${pkgdir}" --optimize=1
+
+  install -D -m644 "${srcdir}/LICENSE.txt" \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+check() {
+  cd "$srcdir/decorator-$pkgver"
+
+  python3 setup.py test
+
+  cd "$srcdir/decorator2-$pkgver"
+
+  python2 setup.py test
+}



More information about the arch-commits mailing list