[arch-commits] Commit in python-js2py/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Dec 24 19:45:12 UTC 2019


    Date: Tuesday, December 24, 2019 @ 19:45:12
  Author: felixonmars
Revision: 540017

archrelease: copy trunk to community-any

Added:
  python-js2py/repos/community-any/PKGBUILD
    (from rev 540016, python-js2py/trunk/PKGBUILD)
Deleted:
  python-js2py/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  103 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 50 insertions(+), 53 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-24 19:45:01 UTC (rev 540016)
+++ PKGBUILD	2019-12-24 19:45:12 UTC (rev 540017)
@@ -1,53 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-js2py
-pkgname=(python-js2py python2-js2py)
-pkgver=0.66
-_commit=c0fa43f5679cf91ca8986c5747fcb07a433dc584
-pkgrel=3
-pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python"
-url="https://github.com/PiotrDabkowski/Js2Py"
-license=('MIT')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-tzlocal' 'python2-tzlocal'
-             'python-six' 'python2-six' 'python-pyjsparser' 'python2-pyjsparser')
-checkdepends=('npm' 'python-numpy' 'python2-numpy')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz"
-         js2py-python-3.8.patch::"https://github.com/PiotrDabkowski/Js2Py/commit/74d46528.patch")
-sha512sums=('ef7218b04bf498e10cc2da7e511909ecd18466de3224915062c0b9a2764187dedac25c88078d80166cc1fdf680226360f6f10e83878273673afb757b8b361219'
-            '12c65cfc393be88a286cfc68406164d3090d44735c374d1087ceb0c571a8bfeb8e6b4cf6a87238751ba48959e4fb70c67c180e65c4e5095ebbe7dbfe7c8ada82')
-
-prepare() {
-  patch -d Js2Py-$_commit -p1 -i ../js2py-python-3.8.patch # Fix tests with python 3.8
-  mv Js2Py-{$_commit,$pkgver}
-}
-
-build() {
-  cd Js2Py-$pkgver
-  python setup.py build
-  python2 setup.py build
-}
-
-check() {
-  cd Js2Py-$pkgver
-  python simple_test.py
-  python2 simple_test.py || warning "https://github.com/PiotrDabkowski/Js2Py/issues/149"
-}
-
-package_python-js2py() {
-  depends=('python-tzlocal' 'python-six' 'python-pyjsparser')
-
-  cd Js2Py-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}
-
-package_python2-js2py() {
-  depends=('python2-tzlocal' 'python2-six' 'python2-pyjsparser')
-
-  cd Js2Py-$pkgver
-  python2 setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
-}

Copied: python-js2py/repos/community-any/PKGBUILD (from rev 540016, python-js2py/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-24 19:45:12 UTC (rev 540017)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-js2py
+pkgname=(python-js2py python2-js2py)
+pkgver=0.67
+_commit=12739ed5978953f16fb5201a98c026bdb6fc1003
+pkgrel=1
+pkgdesc="JavaScript to Python Translator & JavaScript interpreter written in 100% pure Python"
+url="https://github.com/PiotrDabkowski/Js2Py"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-tzlocal' 'python2-tzlocal'
+             'python-six' 'python2-six' 'python-pyjsparser' 'python2-pyjsparser')
+checkdepends=('npm' 'python-numpy' 'python2-numpy')
+source=("$pkgbase-$_commit.tar.gz::https://github.com/PiotrDabkowski/Js2Py/archive/$_commit.tar.gz")
+sha512sums=('09e7feea092f350d5ba983716940acbc6d4b0b8da595770f1e6e5eaee1556ddc1b73b098094f4ebaedd86a9ae1ab15b37bb5ef48458487bccd9c1df4c6bd0fbb')
+
+prepare() {
+  mv Js2Py-{$_commit,$pkgver}
+}
+
+build() {
+  cd Js2Py-$pkgver
+  python setup.py build
+  python2 setup.py build
+}
+
+check() {
+  cd Js2Py-$pkgver
+  python simple_test.py
+  python2 simple_test.py || warning "https://github.com/PiotrDabkowski/Js2Py/issues/149"
+}
+
+package_python-js2py() {
+  depends=('python-tzlocal' 'python-six' 'python-pyjsparser')
+
+  cd Js2Py-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}
+
+package_python2-js2py() {
+  depends=('python2-tzlocal' 'python2-six' 'python2-pyjsparser')
+
+  cd Js2Py-$pkgver
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
+}



More information about the arch-commits mailing list