[arch-commits] Commit in python-ujson/repos (6 files)

Levente Polyak anthraxx at archlinux.org
Mon Dec 14 19:07:29 UTC 2015


    Date: Monday, December 14, 2015 @ 20:07:29
  Author: anthraxx
Revision: 153318

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

Added:
  python-ujson/repos/community-i686/PKGBUILD
    (from rev 153317, python-ujson/trunk/PKGBUILD)
  python-ujson/repos/community-x86_64/PKGBUILD
    (from rev 153317, python-ujson/trunk/PKGBUILD)
Deleted:
  python-ujson/repos/community-i686/LICENSE.txt
  python-ujson/repos/community-i686/PKGBUILD
  python-ujson/repos/community-x86_64/LICENSE.txt
  python-ujson/repos/community-x86_64/PKGBUILD

------------------------------+
 /PKGBUILD                    |  128 +++++++++++++++++++++++++++++++++++++++++
 community-i686/LICENSE.txt   |   35 -----------
 community-i686/PKGBUILD      |   37 -----------
 community-x86_64/LICENSE.txt |   35 -----------
 community-x86_64/PKGBUILD    |   37 -----------
 5 files changed, 128 insertions(+), 144 deletions(-)

Deleted: community-i686/LICENSE.txt
===================================================================
--- community-i686/LICENSE.txt	2015-12-14 19:07:22 UTC (rev 153317)
+++ community-i686/LICENSE.txt	2015-12-14 19:07:29 UTC (rev 153318)
@@ -1,35 +0,0 @@
-Developed by ESN, an Electronic Arts Inc. studio. 
-Copyright (c) 2014, Electronic Arts Inc.
-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 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.
-* Neither the name of ESN, Electronic Arts Inc. nor the
-names of its contributors may be used to endorse or promote products
-derived from this software without specific prior written permission.
-
-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 ELECTRONIC ARTS INC. 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.
-
-
-Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
-http://code.google.com/p/stringencoders/
-Copyright (c) 2007  Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
-
-Numeric decoder derived from from TCL library
-http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
- * Copyright (c) 1988-1993 The Regents of the University of California.
- * Copyright (c) 1994 Sun Microsystems, Inc.
\ No newline at end of file

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-12-14 19:07:22 UTC (rev 153317)
+++ community-i686/PKGBUILD	2015-12-14 19:07:29 UTC (rev 153318)
@@ -1,37 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-ujson
-pkgname=('python-ujson' 'python2-ujson')
-_libname=${pkgname/python-/}
-pkgver=1.33
-pkgrel=3
-pkgdesc="Ultra fast JSON encoder and decoder for Python"
-url="https://github.com/esnme/ultrajson"
-arch=('i686' 'x86_64')
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-sha512sums=('0f1f66212fbf94c03e048ba64c3bd817c50443d1a29b87f6a3a38f697a050f38821be4ba36a3b17a96930c69ee92973ac31bdd41851dea071af14cd4bbaf8480'
-            '74a87d69556e526768fe1d0d0b6ff888b8b34ab7e5c651a96b4e4c42599ce67825cd5a12222ad3a20745faf230eb778737b03afb5fe944057cd7dc705c4b5b6f')
-source=(https://pypi.python.org/packages/source/${_libname:0:1}/${_libname}/${_libname}-${pkgver}.zip
-        LICENSE.txt)
-
-package_python-ujson() {
-  cd ${_libname}-${pkgver}
-  depends=('python')
-  
-  python setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-package_python2-ujson() {
-  cd ${_libname}-${pkgver}
-  depends=('python2')
-  
-  python2 setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-ujson/repos/community-i686/PKGBUILD (from rev 153317, python-ujson/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-12-14 19:07:29 UTC (rev 153318)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-ujson
+pkgname=('python-ujson' 'python2-ujson')
+_pkgname=ultrajson
+pkgver=1.34
+pkgrel=1
+pkgdesc="Ultra fast JSON encoder and decoder for Python"
+url="https://github.com/esnme/ultrajson"
+arch=('i686' 'x86_64')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/esnme/ultrajson/archive/v${pkgver}.tar.gz)
+sha512sums=('fce4c9d8d84ac84a35ed762f120c6e8ce8c2b0d29831c3d2a7e79c72b59279441b95e35831b149c501d00d738f0b9864f720da689e5da840a064c8c0b437006e')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+  2to3 -w ${_pkgname}-${pkgver}-py2/tests/tests.py
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    # TODO: tests are currently broken
+    #local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+    #PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+      #python tests/tests.py
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    # TODO: tests are currently broken
+    #local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+    #PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+      #python2 tests/tests.py
+  )
+}
+
+package_python-ujson() {
+  depends=('python')
+
+  cd ${_pkgname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-ujson() {
+  depends=('python2')
+
+  cd ${_pkgname}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:

Deleted: community-x86_64/LICENSE.txt
===================================================================
--- community-x86_64/LICENSE.txt	2015-12-14 19:07:22 UTC (rev 153317)
+++ community-x86_64/LICENSE.txt	2015-12-14 19:07:29 UTC (rev 153318)
@@ -1,35 +0,0 @@
-Developed by ESN, an Electronic Arts Inc. studio. 
-Copyright (c) 2014, Electronic Arts Inc.
-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 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.
-* Neither the name of ESN, Electronic Arts Inc. nor the
-names of its contributors may be used to endorse or promote products
-derived from this software without specific prior written permission.
-
-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 ELECTRONIC ARTS INC. 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.
-
-
-Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
-http://code.google.com/p/stringencoders/
-Copyright (c) 2007  Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
-
-Numeric decoder derived from from TCL library
-http://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
- * Copyright (c) 1988-1993 The Regents of the University of California.
- * Copyright (c) 1994 Sun Microsystems, Inc.
\ No newline at end of file

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-12-14 19:07:22 UTC (rev 153317)
+++ community-x86_64/PKGBUILD	2015-12-14 19:07:29 UTC (rev 153318)
@@ -1,37 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-
-pkgbase=python-ujson
-pkgname=('python-ujson' 'python2-ujson')
-_libname=${pkgname/python-/}
-pkgver=1.33
-pkgrel=3
-pkgdesc="Ultra fast JSON encoder and decoder for Python"
-url="https://github.com/esnme/ultrajson"
-arch=('i686' 'x86_64')
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-sha512sums=('0f1f66212fbf94c03e048ba64c3bd817c50443d1a29b87f6a3a38f697a050f38821be4ba36a3b17a96930c69ee92973ac31bdd41851dea071af14cd4bbaf8480'
-            '74a87d69556e526768fe1d0d0b6ff888b8b34ab7e5c651a96b4e4c42599ce67825cd5a12222ad3a20745faf230eb778737b03afb5fe944057cd7dc705c4b5b6f')
-source=(https://pypi.python.org/packages/source/${_libname:0:1}/${_libname}/${_libname}-${pkgver}.zip
-        LICENSE.txt)
-
-package_python-ujson() {
-  cd ${_libname}-${pkgver}
-  depends=('python')
-  
-  python setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-package_python2-ujson() {
-  cd ${_libname}-${pkgver}
-  depends=('python2')
-  
-  python2 setup.py install -O1 --root="${pkgdir}"
-  install -Dm 644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-ujson/repos/community-x86_64/PKGBUILD (from rev 153317, python-ujson/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-12-14 19:07:29 UTC (rev 153318)
@@ -0,0 +1,64 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgbase=python-ujson
+pkgname=('python-ujson' 'python2-ujson')
+_pkgname=ultrajson
+pkgver=1.34
+pkgrel=1
+pkgdesc="Ultra fast JSON encoder and decoder for Python"
+url="https://github.com/esnme/ultrajson"
+arch=('i686' 'x86_64')
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/esnme/ultrajson/archive/v${pkgver}.tar.gz)
+sha512sums=('fce4c9d8d84ac84a35ed762f120c6e8ce8c2b0d29831c3d2a7e79c72b59279441b95e35831b149c501d00d738f0b9864f720da689e5da840a064c8c0b437006e')
+
+prepare() {
+  cp -ra ${_pkgname}-${pkgver}{,-py2}
+  2to3 -w ${_pkgname}-${pkgver}-py2/tests/tests.py
+}
+
+build() {
+  (cd ${_pkgname}-${pkgver}
+    python setup.py build
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    python2 setup.py build
+  )
+}
+
+check() {
+  (cd ${_pkgname}-${pkgver}
+    # TODO: tests are currently broken
+    #local PYTHONVERSION="$(python -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+    #PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+      #python tests/tests.py
+  )
+  (cd ${_pkgname}-${pkgver}-py2
+    # TODO: tests are currently broken
+    #local PYTHONVERSION="$(python2 -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))')"
+    #PYTHONPATH="build/lib.linux-${CARCH}-${PYTHONVERSION}" \
+      #python2 tests/tests.py
+  )
+}
+
+package_python-ujson() {
+  depends=('python')
+
+  cd ${_pkgname}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-ujson() {
+  depends=('python2')
+
+  cd ${_pkgname}-${pkgver}-py2
+  python2 setup.py install -O1 --root="${pkgdir}"
+  install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list