-diff -burNp waf-1.5.13/waf-light waf-1.5.13-dud/waf-light
---- waf-1.5.13/waf-light 2010-02-16 22:42:45.000000000 +0100
-+++ waf-1.5.13-dud/waf-light 2010-03-02 23:37:42.640873759 +0100
+--- waf-1.6.4/waf-light.orig 2011-04-17 12:02:50.000000000 +0200
++++ waf-1.6.4/waf-light 2011-05-01 06:55:29.260143094 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python
# encoding: ISO8859-1
# Thomas Nagy, 2005-2010
-@@ -127,7 +127,7 @@ def find_lib():
- if w: return w
- err("waf-light requires wafadmin -> export WAFDIR=/folder")
+@@ -34,7 +34,7 @@
-- dir = "/lib/%s-%s-%s/" % (WAF, VERSION, REVISION)
-+ dir = "/lib/waf/"
- for i in [INSTALL,'/usr','/usr/local','/opt']:
- w = test(i+dir)
+ VERSION="1.6.4"
+ REVISION="x"
+-INSTALL="x"
++INSTALL="/usr/share"
+ C1='x'
+ C2='x'
+ cwd = os.getcwd()
+@@ -140,7 +140,7 @@ def find_lib():
if w: return w
-diff -burNp waf-1.5.13/wscript waf-1.5.13-dud/wscript
---- waf-1.5.13/wscript 2010-02-16 22:42:46.000000000 +0100
-+++ waf-1.5.13-dud/wscript 2010-03-02 23:38:37.807336784 +0100
-@@ -313,7 +313,7 @@ def build(bld):
- if val != True and val != "y": sys.exit(1)
- create_waf()
+ err('waf-light requires waflib -> export WAFDIR=/folder')
-- dir = os.path.join('lib', 'waf-%s-%s' % (VERSION, REVISION), 'wafadmin')
-+ dir = os.path.join('lib', 'waf', 'wafadmin')
+- dirname = '%s-%s-%s' % (WAF, VERSION, REVISION)
+- for i in [INSTALL,'/usr','/usr/local','/opt']:
+- w = test(i + '/lib/' + dirname)
++ dirname = WAF
++ for i in [INSTALL,'/usr/lib','/usr/local/lib','/opt']:
++ w = test(i + '/' + dirname)
+ if w: return w
+--- waf-1.6.4/wscript.orig 2011-04-17 12:02:50.000000000 +0200
++++ waf-1.6.4/wscript 2011-05-01 07:00:51.030153869 +0200
+@@ -1,4 +1,4 @@
+-#! /usr/bin/env python
++#! /usr/bin/python
+ # encoding: utf-8
+ # Thomas Nagy, 2005-2010
- wafadmin = bld('py')
- wafadmin.find_sources_in_dirs('wafadmin', exts=['.py'])