git: 8f7bc74de144 - main - devel/rubygem-execjs-node16: Add rubygem-execjs-node16 2.8.1 (copied from rubygem-execjs)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Nov 2021 18:27:28 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8f7bc74de144b66e107be65aa439a0d22d62bcbe commit 8f7bc74de144b66e107be65aa439a0d22d62bcbe Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2021-11-21 18:18:19 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2021-11-21 18:18:19 +0000 devel/rubygem-execjs-node16: Add rubygem-execjs-node16 2.8.1 (copied from rubygem-execjs) --- devel/Makefile | 1 + devel/rubygem-execjs-node16/Makefile | 24 ++++++++++++++++++++++ devel/rubygem-execjs-node16/distinfo | 3 +++ .../files/patch-lib_execjs_runtimes.rb | 11 ++++++++++ devel/rubygem-execjs-node16/pkg-descr | 3 +++ 5 files changed, 42 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 35ed0d8ab1b0..4ac16e2f35fb 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6265,6 +6265,7 @@ SUBDIR += rubygem-eventmachine SUBDIR += rubygem-excon SUBDIR += rubygem-execjs + SUBDIR += rubygem-execjs-node16 SUBDIR += rubygem-extlib SUBDIR += rubygem-extras SUBDIR += rubygem-facets diff --git a/devel/rubygem-execjs-node16/Makefile b/devel/rubygem-execjs-node16/Makefile new file mode 100644 index 000000000000..6bb8b3c457aa --- /dev/null +++ b/devel/rubygem-execjs-node16/Makefile @@ -0,0 +1,24 @@ +# Created by: Steve Wills <swills@FreeBSD.org> + +PORTNAME= execjs +PORTVERSION= 2.8.1 +PORTREVISION= 2 +CATEGORIES= devel rubygems +MASTER_SITES= RG +PKGNAMESUFFIX= -node16 + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= ExecJS lets you run JavaScript code from Ruby + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/MIT-LICENSE + +USES= gem nodejs:16,run +USE_RUBY= yes + +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/lib/execjs/runtimes.rb + +.include <bsd.port.mk> diff --git a/devel/rubygem-execjs-node16/distinfo b/devel/rubygem-execjs-node16/distinfo new file mode 100644 index 000000000000..3911dd9a97d2 --- /dev/null +++ b/devel/rubygem-execjs-node16/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1624630282 +SHA256 (rubygem/execjs-2.8.1.gem) = 6d939919cfd81bcc4d6556f322c3995a70cfe4289ea0bd3b1f999b489c323088 +SIZE (rubygem/execjs-2.8.1.gem) = 17408 diff --git a/devel/rubygem-execjs-node16/files/patch-lib_execjs_runtimes.rb b/devel/rubygem-execjs-node16/files/patch-lib_execjs_runtimes.rb new file mode 100644 index 000000000000..718a1c098e82 --- /dev/null +++ b/devel/rubygem-execjs-node16/files/patch-lib_execjs_runtimes.rb @@ -0,0 +1,11 @@ +--- lib/execjs/runtimes.rb.orig 2021-06-28 15:24:59 UTC ++++ lib/execjs/runtimes.rb +@@ -17,7 +17,7 @@ module ExecJS + + Node = ExternalRuntime.new( + name: "Node.js (V8)", +- command: ["node", "nodejs"], ++ command: ["%%LOCALBASE%%/bin/node", "node", "nodejs"], + runner_path: ExecJS.root + "/support/node_runner.js", + encoding: 'UTF-8' + ) diff --git a/devel/rubygem-execjs-node16/pkg-descr b/devel/rubygem-execjs-node16/pkg-descr new file mode 100644 index 000000000000..7aacb6b03e74 --- /dev/null +++ b/devel/rubygem-execjs-node16/pkg-descr @@ -0,0 +1,3 @@ +ExecJS lets you run JavaScript code from Ruby. + +WWW: https://github.com/rails/execjs