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

Felix Yan fyan at archlinux.org
Sun Sep 20 03:23:43 UTC 2015


    Date: Sunday, September 20, 2015 @ 05:23:43
  Author: fyan
Revision: 141152

archrelease: copy trunk to community-staging-any

Added:
  python-jsonpointer/repos/community-staging-any/
  python-jsonpointer/repos/community-staging-any/COPYING
    (from rev 141151, python-jsonpointer/trunk/COPYING)
  python-jsonpointer/repos/community-staging-any/PKGBUILD
    (from rev 141151, python-jsonpointer/trunk/PKGBUILD)

----------+
 COPYING  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

Copied: python-jsonpointer/repos/community-staging-any/COPYING (from rev 141151, python-jsonpointer/trunk/COPYING)
===================================================================
--- community-staging-any/COPYING	                        (rev 0)
+++ community-staging-any/COPYING	2015-09-20 03:23:43 UTC (rev 141152)
@@ -0,0 +1,26 @@
+Copyright (c) 2011 Stefan Kögl <stefan at skoegl.net>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary 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.
+3. The name of the author may not be used to endorse or promote products
+   derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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-jsonpointer/repos/community-staging-any/PKGBUILD (from rev 141151, python-jsonpointer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-20 03:23:43 UTC (rev 141152)
@@ -0,0 +1,51 @@
+# $Id$
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Limao Luo <luolimao+AUR at gmail.com>
+
+pkgbase=python-jsonpointer
+_pkgname=jsonpointer
+pkgname=(python2-jsonpointer python-jsonpointer)
+pkgver=1.9
+pkgrel=2
+pkgdesc="Identify specific nodes in a JSON document (RFC 6901)"
+arch=(any)
+url=https://github.com/stefankoegl/python-json-pointer
+license=(BSD)
+makedepends=(python2-d2to1 python2-oslo-config python2-pbr python2-prettytable python2-requests
+    python2-setuptools python2-simplejson python-d2to1 python-oslo-config python-pbr 
+    python-prettytable python-requests python-setuptools python-simplejson)
+source=(http://pypi.python.org/packages/source/j/${pkgname#*-}/${pkgname#*-}-$pkgver.tar.gz
+    https://raw.github.com/stefankoegl/python-json-pointer/master/COPYING)
+sha256sums=('39403b47a71aa782de6d80db3b78f8a5f68ad8dfc9e674ca3bb5b32c15ec7308'
+            'd8b24f15d472885f788a2d6e985850f264627b86012a17bb242c83f310d907e5')
+sha512sums=('872367c1a75f8022c07a52191d3f9491dd62767f58c4fa2c2fdcd1bf139858f73e7a5ad495943f1cb35b759d7919a807f8bccc052f6c35831e8091b5fda31b40'
+            '6a4c6b57a9cfe227175852c67ab7536fcc23646761cd10d25800edfccf408b139b1f589313f6cf6717c5764ca2e554cc16921118e01aebfbdf3ddfada82c6bac')
+
+prepare(){
+    cp -a $_pkgname-$pkgver $_pkgname-$pkgver-2
+    find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+    export LANG=en_US.UTF-8
+    cd $srcdir/$_pkgname-$pkgver
+    python setup.py build
+    cd $srcdir/$_pkgname-$pkgver-2
+    python2 setup.py build
+}
+
+package_python-jsonpointer() {
+    cd $_pkgname-$pkgver
+    depends=(python-d2to1 python-oslo-config python-pbr 
+    python-prettytable python-requests python-simplejson)
+    python setup.py install --prefix=/usr --root="$pkgdir"
+    install -Dm644 $SRCDEST/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+package_python2-jsonpointer() {
+    cd $_pkgname-$pkgver-2
+    depends=(python2-d2to1 python2-oslo-config python2-pbr python2-prettytable python2-requests
+    python2-setuptools python2-simplejson python-d2to1)
+    python2 setup.py install --prefix=/usr --root="$pkgdir"
+    mv $pkgdir/usr/bin/jsonpointer $pkgdir/usr/bin/jsonpointer2 
+    install -Dm644 $SRCDEST/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}



More information about the arch-commits mailing list