summaryrefslogtreecommitdiff
path: root/lang/py-execjs
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2017-07-28 07:01:31 +0000
committeradam <adam@pkgsrc.org>2017-07-28 07:01:31 +0000
commit31ead86e3acd8a60f28166250a89f4a0498bff50 (patch)
tree9cb5be657ef57afc46d6944f3b2990ff085abe0f /lang/py-execjs
parent5b844ba91001b533e94805c9461bdff8a41461dd (diff)
downloadpkgsrc-31ead86e3acd8a60f28166250a89f4a0498bff50.tar.gz
PyExecJS is a porting of ExecJS from Ruby. PyExecJS automatically picks the
best runtime available to evaluate your JavaScript program.
Diffstat (limited to 'lang/py-execjs')
-rw-r--r--lang/py-execjs/DESCR2
-rw-r--r--lang/py-execjs/Makefile19
-rw-r--r--lang/py-execjs/PLIST42
-rw-r--r--lang/py-execjs/distinfo7
-rw-r--r--lang/py-execjs/patches/patch-setup.py14
5 files changed, 84 insertions, 0 deletions
diff --git a/lang/py-execjs/DESCR b/lang/py-execjs/DESCR
new file mode 100644
index 00000000000..c7bc4b4cf20
--- /dev/null
+++ b/lang/py-execjs/DESCR
@@ -0,0 +1,2 @@
+PyExecJS is a porting of ExecJS from Ruby. PyExecJS automatically picks the
+best runtime available to evaluate your JavaScript program.
diff --git a/lang/py-execjs/Makefile b/lang/py-execjs/Makefile
new file mode 100644
index 00000000000..43f7ef38901
--- /dev/null
+++ b/lang/py-execjs/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2017/07/28 07:01:31 adam Exp $
+
+DISTNAME= PyExecJS-1.4.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl:S/^py//}
+CATEGORIES= python lang
+MASTER_SITES= ${MASTER_SITE_PYPI:=P/PyExecJS/}
+EXTRACT_SUFX= .zip
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/doloopwhile/PyExecJS
+COMMENT= Run JavaScript code from Python
+LICENSE= mit
+
+DEPENDS+= ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
+
+USE_LANGUAGES= # empty
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/py-execjs/PLIST b/lang/py-execjs/PLIST
new file mode 100644
index 00000000000..f87f22902bf
--- /dev/null
+++ b/lang/py-execjs/PLIST
@@ -0,0 +1,42 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/28 07:01:31 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/execjs/__init__.py
+${PYSITELIB}/execjs/__init__.pyc
+${PYSITELIB}/execjs/__init__.pyo
+${PYSITELIB}/execjs/__main__.py
+${PYSITELIB}/execjs/__main__.pyc
+${PYSITELIB}/execjs/__main__.pyo
+${PYSITELIB}/execjs/_abstract_runtime.py
+${PYSITELIB}/execjs/_abstract_runtime.pyc
+${PYSITELIB}/execjs/_abstract_runtime.pyo
+${PYSITELIB}/execjs/_abstract_runtime_context.py
+${PYSITELIB}/execjs/_abstract_runtime_context.pyc
+${PYSITELIB}/execjs/_abstract_runtime_context.pyo
+${PYSITELIB}/execjs/_exceptions.py
+${PYSITELIB}/execjs/_exceptions.pyc
+${PYSITELIB}/execjs/_exceptions.pyo
+${PYSITELIB}/execjs/_external_runtime.py
+${PYSITELIB}/execjs/_external_runtime.pyc
+${PYSITELIB}/execjs/_external_runtime.pyo
+${PYSITELIB}/execjs/_json2.py
+${PYSITELIB}/execjs/_json2.pyc
+${PYSITELIB}/execjs/_json2.pyo
+${PYSITELIB}/execjs/_misc.py
+${PYSITELIB}/execjs/_misc.pyc
+${PYSITELIB}/execjs/_misc.pyo
+${PYSITELIB}/execjs/_pyv8runtime.py
+${PYSITELIB}/execjs/_pyv8runtime.pyc
+${PYSITELIB}/execjs/_pyv8runtime.pyo
+${PYSITELIB}/execjs/_runner_sources.py
+${PYSITELIB}/execjs/_runner_sources.pyc
+${PYSITELIB}/execjs/_runner_sources.pyo
+${PYSITELIB}/execjs/_runtimes.py
+${PYSITELIB}/execjs/_runtimes.pyc
+${PYSITELIB}/execjs/_runtimes.pyo
+${PYSITELIB}/execjs/runtime_names.py
+${PYSITELIB}/execjs/runtime_names.pyc
+${PYSITELIB}/execjs/runtime_names.pyo
diff --git a/lang/py-execjs/distinfo b/lang/py-execjs/distinfo
new file mode 100644
index 00000000000..5d969d842de
--- /dev/null
+++ b/lang/py-execjs/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2017/07/28 07:01:31 adam Exp $
+
+SHA1 (PyExecJS-1.4.0.zip) = f9b96dc895ddcb58bc6962270686757909e87ddc
+RMD160 (PyExecJS-1.4.0.zip) = c675ee8ad60e34e4b3d5161e5b8b66dba2d705b1
+SHA512 (PyExecJS-1.4.0.zip) = 698f49f7ceed696e29f8814115d08dc54c748ed00c41e785fd7829d247e7f4f41478fc145328cb443968ff6ba98a7236656cc28c8220c21fc97c7ebee4d28344
+Size (PyExecJS-1.4.0.zip) = 22179 bytes
+SHA1 (patch-setup.py) = 42a9a59cba78e159e38837cbe3377410308b4617
diff --git a/lang/py-execjs/patches/patch-setup.py b/lang/py-execjs/patches/patch-setup.py
new file mode 100644
index 00000000000..03ef9b7e805
--- /dev/null
+++ b/lang/py-execjs/patches/patch-setup.py
@@ -0,0 +1,14 @@
+$NetBSD: patch-setup.py,v 1.1 2017/07/28 07:01:31 adam Exp $
+
+Allow newer version of six.
+
+--- setup.py.orig 2017-07-28 06:58:53.000000000 +0000
++++ setup.py
+@@ -39,6 +39,6 @@ setup(
+ 'Programming Language :: Python :: 3.5',
+ 'Programming Language :: JavaScript',
+ ],
+- install_requires=["six==1.10.0"],
++ install_requires=["six>=1.10.0"],
+ test_suite="test_execjs",
+ )