From 3e567218b60d7f885e769e1a2a07d84d38f11c13 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Wed, 19 Dec 2012 13:02:54 +0400 Subject: Update examples --- examples/nodejs/patches/03-waf.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/nodejs/patches/03-waf.patch (limited to 'examples/nodejs/patches/03-waf.patch') 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') -- cgit v1.2.3