openbsd-ports/lang/node/patches/patch-lib_module_js
jasper 5d73d74c96 re-import node into lang, www was poorly chosen at the time of import
from aaron bieber (MAINTAINER), with cluestick hitting by espie@ 
as discussed with and ok sthen@
2012-05-23 15:11:43 +00:00

13 lines
576 B
Plaintext

$OpenBSD: patch-lib_module_js,v 1.1.1.1 2012/05/23 15:11:43 jasper Exp $
--- lib/module.js.orig Tue May 15 02:30:00 2012
+++ lib/module.js Tue May 15 19:17:28 2012
@@ -487,6 +487,8 @@ Module.runMain = function() {
Module._initPaths = function() {
var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
+ paths.unshift(path.resolve('${TRUEPREFIX}', 'lib', 'node_modules'));
+
if (process.env['HOME']) {
paths.unshift(path.resolve(process.env['HOME'], '.node_libraries'));
paths.unshift(path.resolve(process.env['HOME'], '.node_modules'));