aboutsummaryrefslogtreecommitdiff
path: root/examples/nodejs/patches/03-waf.patch
diff options
context:
space:
mode:
authorIgor Pashev <igor.pashev@nexenta.com>2012-12-19 13:02:54 +0400
committerIgor Pashev <igor.pashev@nexenta.com>2012-12-19 13:05:12 +0400
commit3e567218b60d7f885e769e1a2a07d84d38f11c13 (patch)
treef43668e026c492f304f4c827fc4b567ca85b1963 /examples/nodejs/patches/03-waf.patch
parentfdcf880b3c8c67f08453f553474a551e9707d29d (diff)
downloadcibs-3e567218b60d7f885e769e1a2a07d84d38f11c13.tar.gz
Update examples
Diffstat (limited to 'examples/nodejs/patches/03-waf.patch')
-rw-r--r--examples/nodejs/patches/03-waf.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/nodejs/patches/03-waf.patch b/examples/nodejs/patches/03-waf.patch
new file mode 100644
index 0000000..0eda3dc
--- /dev/null
+++ b/examples/nodejs/patches/03-waf.patch
@@ -0,0 +1,16 @@
+diff -dubr source/tools/node-waf waf/tools/node-waf
+--- source/tools/node-waf 2012-10-26 00:49:32.000000000 +0400
++++ waf/tools/node-waf 2012-11-01 23:20:51.438482412 +0400
+@@ -5,7 +5,11 @@
+ join = os.path.join
+ bindir = os.path.dirname(os.path.realpath(__file__))
+ prefix = join(bindir, "..")
+-wafdir = join(prefix, "lib", "node")
++if os.environ.has_key('PREFIX_NODE'):
++ prefix = os.environ['PREFIX_NODE']
++else:
++ prefix = "/usr"
++wafdir = join(prefix, "share", "nodejs")
+
+ w = join(wafdir, 'wafadmin')
+ t = join(w, 'Tools')