diff options
author | Brad Davis <brd@FreeBSD.org> | 2016-04-27 15:22:31 +0000 |
---|---|---|
committer | Brad Davis <brd@FreeBSD.org> | 2016-04-27 15:22:31 +0000 |
commit | 1219ade4578478b4f30469e5a9d262ffcc314298 (patch) | |
tree | a1e04c9aec195256fb6fb3b93802c4695c431f37 | |
parent | cc6b239238b4baf23861416c6a9b60930110e76a (diff) | |
download | ports-1219ade4578478b4f30469e5a9d262ffcc314298.tar.gz ports-1219ade4578478b4f30469e5a9d262ffcc314298.zip |
Notes
-rw-r--r-- | devel/rubygem-execjs/Makefile | 5 | ||||
-rw-r--r-- | devel/rubygem-execjs/files/patch-lib_execjs_runtimes.rb | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/devel/rubygem-execjs/Makefile b/devel/rubygem-execjs/Makefile index c49dfcf0b3bd..210ce1d306dc 100644 --- a/devel/rubygem-execjs/Makefile +++ b/devel/rubygem-execjs/Makefile @@ -3,6 +3,7 @@ PORTNAME= execjs PORTVERSION= 2.6.0 +PORTREVISION= 1 CATEGORIES= devel rubygems MASTER_SITES= RG @@ -19,4 +20,8 @@ USE_RUBY= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes +post-patch: + @${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#' \ + ${WRKSRC}/lib/${PORTNAME}/runtimes.rb + .include <bsd.port.mk> diff --git a/devel/rubygem-execjs/files/patch-lib_execjs_runtimes.rb b/devel/rubygem-execjs/files/patch-lib_execjs_runtimes.rb new file mode 100644 index 000000000000..dd91f48e28ae --- /dev/null +++ b/devel/rubygem-execjs/files/patch-lib_execjs_runtimes.rb @@ -0,0 +1,11 @@ +--- lib/execjs/runtimes.rb.orig 2016-04-25 16:51:44 UTC ++++ lib/execjs/runtimes.rb +@@ -17,7 +17,7 @@ module ExecJS + + Node = ExternalRuntime.new( + name: "Node.js (V8)", +- command: ["nodejs", "node"], ++ command: ["nodejs", "node", "%%LOCALBASE%%/bin/node"], + runner_path: ExecJS.root + "/support/node_runner.js", + encoding: 'UTF-8' + ) |