openbsd-ports/x11/py-qt4/patches/patch-configure_py
espie cf0a82ee79 damn riverbank ! can't they keep distfiles for a few weeks ?
update again,  hoping those don't vanish tomorrow...
2010-04-19 14:14:34 +00:00

31 lines
976 B
Plaintext

$OpenBSD: patch-configure_py,v 1.5 2010/04/19 14:14:34 espie Exp $
--- configure.py.orig Fri Apr 16 12:32:02 2010
+++ configure.py Mon Apr 19 15:01:31 2010
@@ -1060,6 +1060,17 @@ def run_command(cmd):
cmd is the command to run.
"""
+ try:
+ localbase = os.environ["LOCALBASE"]
+ except KeyError:
+ localbase = "/usr/local"
+ try:
+ x11base = os.environ["X11BASE"]
+ except KeyError:
+ x11base = "/usr/X11R6"
+
+ cmd = cmd.replace("${LOCALBASE}", localbase).replace("$(LOCALBASE)", localbase)
+ cmd = cmd.replace("${X11BASE}", x11base).replace("$(X11BASE)", x11base)
if opts.verbose:
sys.stdout.write(cmd + "\n")
@@ -1673,7 +1684,7 @@ Type 'no' to decline the terms of the license.
sys.stdout.flush()
try:
- resp = sys.stdin.readline()
+ resp = "yes"
except KeyboardInterrupt:
raise SystemExit
except: