From b26372ef4119c7145e88112448aef8db2dca4a47 Mon Sep 17 00:00:00 2001 From: tcberner Date: Fri, 19 May 2017 15:55:35 +0000 Subject: 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 --- devel/Makefile | 1 + devel/py-PyExecJS/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-PyExecJS/distinfo | 3 +++ devel/py-PyExecJS/pkg-descr | 14 ++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 devel/py-PyExecJS/Makefile create mode 100644 devel/py-PyExecJS/distinfo create mode 100644 devel/py-PyExecJS/pkg-descr (limited to 'devel') 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 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 -- cgit