openbsd-ports/devel/waf/patches/patch-waf
landry a79f9ef04f Import waf 1.4.4.
Waf is a Python-based framework for configuring, compiling and
installing applications. It is a replacement for other tools such as
Autotools, Scons, CMake or Ant.
The port provides a devel/waf MODULE for use by third-party ports.

with tweaks, lots of python-fu and ok wcmaier@, ok jasper@
2008-09-23 19:55:02 +00:00

28 lines
685 B
Plaintext

$OpenBSD: patch-waf,v 1.1.1.1 2008/09/23 19:55:02 landry Exp $
--- waf.orig Wed Aug 27 15:01:03 2008
+++ waf Wed Aug 27 15:09:26 2008
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!${MODPY_BIN}
# encoding: utf-8
# Thomas Nagy, 2005-2008
@@ -109,16 +109,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