View | Details | Raw Unified | Return to bug 232988
Collapse All | Expand All

(-)devel/rubygem-execjs/Makefile (-4 / +6 lines)
Lines 19-33 Link Here
19
OPTIONS_SINGLE=	BACKEND
19
OPTIONS_SINGLE=	BACKEND
20
OPTIONS_SINGLE_BACKEND=	NODE NODE6 NODE8
20
OPTIONS_SINGLE_BACKEND=	NODE NODE6 NODE8
21
OPTIONS_DEFAULT=NODE
21
OPTIONS_DEFAULT=NODE
22
NODE_DESC=	Use Node.js 9.x (www/node) as backend
22
NODE_DESC=	Use Node.js 11.x (www/node) as backend
23
NODE10_DESC=	Use Node.js 10.x (www/node) as backend
24
NODE8_DESC=	Use Node.js 8.x (www/node8) as backend
23
NODE6_DESC=	Use Node.js 6.x (www/node6) as backend
25
NODE6_DESC=	Use Node.js 6.x (www/node6) as backend
24
NODE8_DESC=	Use Node.js 8.x (www/node8) as backend
25
26
26
NODE_RUN_DEPENDS=	node>=0:www/node
27
NODE_RUN_DEPENDS=	node>=0:www/node
28
NODE10_RUN_DEPENDS=	node10>=0:www/node
29
NODE8_RUN_DEPENDS=	node8>=0:www/node8
27
NODE6_RUN_DEPENDS=	node6>=0:www/node6
30
NODE6_RUN_DEPENDS=	node6>=0:www/node6
28
NODE8_RUN_DEPENDS=	node8>=0:www/node8
29
31
30
post-patch:
32
pre-build:
31
	@${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#' \
33
	@${REINPLACE_CMD} -e 's#%%LOCALBASE%%#${LOCALBASE}#' \
32
		${WRKSRC}/lib/${PORTNAME}/runtimes.rb
34
		${WRKSRC}/lib/${PORTNAME}/runtimes.rb
33
35
(-)devel/rubygem-execjs/files/patch-lib_execjs_duktape__runtime.rb (+13 lines)
Line 0 Link Here
1
--- lib/execjs/duktape_runtime.rb.orig	2018-11-05 14:13:41 UTC
2
+++ lib/execjs/duktape_runtime.rb
3
@@ -26,9 +26,7 @@ module ExecJS
4
       end
5
 
6
       def call(identifier, *args)
7
-        @ctx.call_prop(identifier.split("."), *args)
8
-      rescue Exception => e
9
-        raise wrap_error(e)
10
+        eval "#{identifier}.apply(this, #{::JSON.generate(args)})"
11
       end
12
 
13
       private

Return to bug 232988