openbsd-ports/devel/waf/patches/patch-waf-light
2009-01-26 19:47:12 +00:00

31 lines
751 B
Plaintext

$OpenBSD: patch-waf-light,v 1.1 2009/01/26 19:47:12 landry Exp $
trick waf-light to make it found installed version
--- waf-light.orig Mon Dec 22 00:31:57 2008
+++ waf-light Sun Jan 18 23:44:38 2009
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
# encoding: utf-8
# Thomas Nagy, 2005-2008
@@ -102,16 +102,7 @@ def find_lib():
if w: return w
err("waf-light requires wafadmin -> export WAFDIR=/folder")
- dir = "/lib/waf-%s-%s/" % (VERSION, REVISION)
- for i in [INSTALL,'/usr','/usr/local','/opt']:
- w = test(i+dir)
- if w: return w
-
- #waf-local
- s = '.waf-%s-%s'
- if sys.platform == 'win32': s = s[1:]
- dir = join(base, s % (VERSION, REVISION))
- w = test(dir)
+ w = test("${MODPY_SITEPKG}")
if w: return w
#unpack