summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorTobias C. Berner <tcberner@FreeBSD.org>2017-05-19 15:55:35 +0000
committerTobias C. Berner <tcberner@FreeBSD.org>2017-05-19 15:55:35 +0000
commitdf53a093a4eecb3f156847042de9035564e2a5fc (patch)
treec615cea77d45f071c8a60ada795da015072376a2 /devel
parentUpdate to 1.15.0 (diff)
New port: devel/py-PyExecJS
PyExecJS is a porting of ExecJS from Ruby. PyExecJS automatically picks the best runtime available to evaluate your JavaScript program. https://pypi.python.org/pypi/PyExecJS Approved by: rakuco (mentor, implicit) Differential Revision: https://reviews.freebsd.org/D10813
Notes
Notes: svn path=/head/; revision=441246
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-PyExecJS/Makefile28
-rw-r--r--devel/py-PyExecJS/distinfo3
-rw-r--r--devel/py-PyExecJS/pkg-descr14
4 files changed, 46 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index da23f6b8845e..ee8a82670ac6 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4085,6 +4085,7 @@
SUBDIR += py-Products.contentmigration
SUBDIR += py-Products.statusmessages
SUBDIR += py-Products.validation
+ SUBDIR += py-PyExecJS
SUBDIR += py-PyLD
SUBDIR += py-RPyC
SUBDIR += py-Record
diff --git a/devel/py-PyExecJS/Makefile b/devel/py-PyExecJS/Makefile
new file mode 100644
index 000000000000..0108f54a2223
--- /dev/null
+++ b/devel/py-PyExecJS/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME= PyExecJS
+PORTVERSION= 1.4.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= tcberner@FreeBSD.org
+COMMENT= Run JavaScript code from Python
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python zip
+USE_PYTHON= distutils autoplist
+
+OPTIONS_GROUP= RUNTIME
+OPTIONS_GROUP_RUNTIME= NODE SPIDERMONKEY PHANTOMJS
+NODE_DESC= Use www/node as JavaScript backend
+NODE_RUN_DEPENDS= node>=0.8.0:www/node
+SPIDERMONKEY_DESC= Use lang/spidermonkey24 as JavaScript backend
+SPIDERMONKEY_RUN_DEPENDS= js:lang/spidermonkey24
+PHANTOMJS_DESC= Use lang/phantomjs as JavaScript backend
+PHANTOMJS_RUN_DEPENDS= phantomjs:lang/phantomjs
+OPTIONS_DEFAULT= NODE
+
+.include <bsd.port.mk>
diff --git a/devel/py-PyExecJS/distinfo b/devel/py-PyExecJS/distinfo
new file mode 100644
index 000000000000..e7239a8c6ab9
--- /dev/null
+++ b/devel/py-PyExecJS/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1495173948
+SHA256 (PyExecJS-1.4.0.zip) = 31346cdf19d1e64840f0104f8be1c1231cb9ce3de9919828419814567cc2e691
+SIZE (PyExecJS-1.4.0.zip) = 22179
diff --git a/devel/py-PyExecJS/pkg-descr b/devel/py-PyExecJS/pkg-descr
new file mode 100644
index 000000000000..99622272bd6a
--- /dev/null
+++ b/devel/py-PyExecJS/pkg-descr
@@ -0,0 +1,14 @@
+PyExecJS is a porting of ExecJS from Ruby. PyExecJS automatically picks the
+best runtime available to evaluate your JavaScript program.
+
+Supported runtimes
+* PyV8 - A python wrapper for Google V8 engine,
+* Node.js
+* Apple JavaScriptCore - Included with Mac OS X
+* Mozilla SpiderMonkey
+* Microsoft Windows Script Host (JScript)
+* SlimerJS
+* PhantomJS
+* Nashorn - Included with Oracle Java 8
+
+WWW: https://pypi.python.org/pypi/PyExecJS