openbsd-ports/x11/py-qt4/patches/patch-configure_py
dcoppa 0021bbfc04 Update to PyQt-4.8.4.
Tested in a bulk build by landry@
OK landry@, sthen@
2011-05-17 08:38:32 +00:00

31 lines
992 B
Plaintext

$OpenBSD: patch-configure_py,v 1.10 2011/05/17 08:38:32 dcoppa Exp $
--- configure.py.orig Sun May 1 14:50:12 2011
+++ configure.py Fri May 13 17:13:34 2011
@@ -1127,6 +1127,17 @@ def run_command(cmd, envvars=None):
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")
@@ -1791,7 +1802,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: