git: 6bb17a9fe3ec - main - devel/py-dukpy: Add py-dukpy 0.4.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 06 Jul 2024 16:17:30 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=6bb17a9fe3ec47e45c6607b7e76f71afda7dbced commit 6bb17a9fe3ec47e45c6607b7e76f71afda7dbced Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2024-07-06 16:01:07 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2024-07-06 16:01:07 +0000 devel/py-dukpy: Add py-dukpy 0.4.0 DukPy is a simple javascript interpreter for Python built on top of duktape engine without any external dependency. It comes with a bunch of common transpilers built-in for convenience: - CoffeeScript - BabelJS - TypeScript - JSX - LESS --- devel/Makefile | 1 + devel/py-dukpy/Makefile | 30 ++++++++++++++++++++++++++++++ devel/py-dukpy/distinfo | 3 +++ devel/py-dukpy/pkg-descr | 8 ++++++++ 4 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index db740926caeb..19ea701c68aa 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4711,6 +4711,7 @@ SUBDIR += py-dotty-dict SUBDIR += py-dpcontracts SUBDIR += py-dtfabric + SUBDIR += py-dukpy SUBDIR += py-dulwich SUBDIR += py-dunamai SUBDIR += py-durus diff --git a/devel/py-dukpy/Makefile b/devel/py-dukpy/Makefile new file mode 100644 index 000000000000..f23c67c3e659 --- /dev/null +++ b/devel/py-dukpy/Makefile @@ -0,0 +1,30 @@ +PORTNAME= dukpy +PORTVERSION= 0.4.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simple JavaScript interpreter for Python +WWW= https://github.com/amol-/dukpy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutf8>=0:devel/py-mutf8@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +OPTIONS_DEFINE= WEBASSETS +OPTIONS_DEFAULT=WEBASSETS +WEBASSETS_DESC= Asset management + +WEBASSETS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}webassets>=0:www/py-webassets@${PY_FLAVOR} + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include <bsd.port.mk> diff --git a/devel/py-dukpy/distinfo b/devel/py-dukpy/distinfo new file mode 100644 index 000000000000..60f3c9c89f16 --- /dev/null +++ b/devel/py-dukpy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1720022668 +SHA256 (dukpy-0.4.0.tar.gz) = 677ec7102d1c1c511f7ef918078e8099778dbcea7caf3d6a2a2a72f72aa2d135 +SIZE (dukpy-0.4.0.tar.gz) = 1981503 diff --git a/devel/py-dukpy/pkg-descr b/devel/py-dukpy/pkg-descr new file mode 100644 index 000000000000..ed0205548982 --- /dev/null +++ b/devel/py-dukpy/pkg-descr @@ -0,0 +1,8 @@ +DukPy is a simple javascript interpreter for Python built on top of duktape +engine without any external dependency. It comes with a bunch of common +transpilers built-in for convenience: +- CoffeeScript +- BabelJS +- TypeScript +- JSX +- LESS