openbsd-ports/x11/py-qt4/patches/patch-configure_py
2015-06-26 13:03:59 +00:00

31 lines
995 B
Plaintext

$OpenBSD: patch-configure_py,v 1.13 2015/06/26 13:03:59 ajacoutot Exp $
--- configure.py.orig Thu Jun 11 17:28:16 2015
+++ configure.py Fri Jun 26 14:34:11 2015
@@ -1159,6 +1159,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")
@@ -1767,7 +1778,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: