[arch-commits] Commit in (5 files)

Daniel Wallace dwallace at nymeria.archlinux.org
Thu May 22 19:53:53 UTC 2014


    Date: Thursday, May 22, 2014 @ 21:53:53
  Author: dwallace
Revision: 111701

newpkg jsonpointer

Added:
  python-jsonpointer/
  python-jsonpointer/repos/
  python-jsonpointer/trunk/
  python-jsonpointer/trunk/COPYING
  python-jsonpointer/trunk/PKGBUILD

----------+
 COPYING  |   26 ++++++++++++++++++++++++++
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

Added: python-jsonpointer/trunk/COPYING
===================================================================
--- python-jsonpointer/trunk/COPYING	                        (rev 0)
+++ python-jsonpointer/trunk/COPYING	2014-05-22 19:53:53 UTC (rev 111701)
@@ -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.
+

Added: python-jsonpointer/trunk/PKGBUILD
===================================================================
--- python-jsonpointer/trunk/PKGBUILD	                        (rev 0)
+++ python-jsonpointer/trunk/PKGBUILD	2014-05-22 19:53:53 UTC (rev 111701)
@@ -0,0 +1,45 @@
+# $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.3
+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=('0c60fd449265c301af8492a654e8cb379aeec5f6207ecac9a585fa91e6ccf95c'
+            'd8b24f15d472885f788a2d6e985850f264627b86012a17bb242c83f310d907e5')
+sha512sums=('9961e29b5a9b3153c0ed97d6da68b86aa2d1f8333e0ff2a8a2accce994276c83ecaead2729100bcdd655ad2120d9d3502422ab365837e93473cc1de5a31e4e7b'
+            '6a4c6b57a9cfe227175852c67ab7536fcc23646761cd10d25800edfccf408b139b1f589313f6cf6717c5764ca2e554cc16921118e01aebfbdf3ddfada82c6bac')
+
+prepare(){
+    cp -a $_pkgname-$pkgver $pkgname-$pkgver-2
+    find $_pkgname-$pkgver-2 -name \*.py -exec sed -i '1s/python$/&2/' {} +
+}
+
+build() {
+    cd $_pkgname-$pkgver
+    python setup.py build
+    cd $_pkgname-$pkgver-2
+    python2 setup.py build
+}
+
+package_python-jsonpointer() {
+    cd $_pkgname-$pkgver
+    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
+    python setup.py install --prefix=/usr --root="$pkgdir"
+    install -Dm644 $SRCDEST/COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}


Property changes on: python-jsonpointer/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list