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

Felix Yan felixonmars at archlinux.org
Sat May 16 11:15:05 UTC 2020


    Date: Saturday, May 16, 2020 @ 11:15:04
  Author: felixonmars
Revision: 384270

archrelease: copy trunk to staging-any

Added:
  python-ply/repos/staging-any/
  python-ply/repos/staging-any/LICENSE
    (from rev 384269, python-ply/trunk/LICENSE)
  python-ply/repos/staging-any/PKGBUILD
    (from rev 384269, python-ply/trunk/PKGBUILD)

----------+
 LICENSE  |   28 ++++++++++++++++++++++++++++
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)

Copied: python-ply/repos/staging-any/LICENSE (from rev 384269, python-ply/trunk/LICENSE)
===================================================================
--- staging-any/LICENSE	                        (rev 0)
+++ staging-any/LICENSE	2020-05-16 11:15:04 UTC (rev 384270)
@@ -0,0 +1,28 @@
+Copyright (C) 2001-2015,
+David M. Beazley (Dabeaz LLC)
+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 the David Beazley or Dabeaz LLC 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 THE COPYRIGHT
+OWNER 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-ply/repos/staging-any/PKGBUILD (from rev 384269, python-ply/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-05-16 11:15:04 UTC (rev 384270)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Marcin "avalan" Falkiewicz <avalatron at gmail.com>
+# Contributor: C Anthony Risinger <anthony at xtfx.me>
+
+pkgbase=python-ply
+pkgname=(python-ply python2-ply)
+pkgver=3.11
+pkgrel=5
+pkgdesc='Implementation of lex and yacc parsing tools'
+arch=('any')
+url='https://www.dabeaz.com/ply/'
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("http://www.dabeaz.com/ply/ply-$pkgver.tar.gz"
+        LICENSE)
+sha512sums=('37e39a4f930874933223be58a3da7f259e155b75135f1edd47069b3b40e5e96af883ebf1c8a1bbd32f914a9e92cfc12e29fec05cf61b518f46c1d37421b20008'
+            '5cea085a23ed260afc9084380c1d59e3942c2385089a8eb2391a89c85cde4df2ceb7eed21bb8c4d0cad5b78e59742da69e4c5c78fd0e223f5c99c56e9296a075')
+
+prepare() {
+  cp -a ply-$pkgver{,-py2}
+}
+
+check() {
+  cd "ply-$pkgver/test"
+  python testlex.py
+  python testyacc.py
+
+  cd "$srcdir/ply-$pkgver-py2/test"
+  python2 testlex.py
+  python2 testyacc.py
+}
+
+package_python-ply() {
+  depends=('python')
+
+  cd "ply-$pkgver"
+  python setup.py install --root="$pkgdir"
+
+  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-ply() {
+  depends=('python2')
+
+  cd "ply-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir"
+
+  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list