aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pyqt.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/pyqt.rb b/Library/Formula/pyqt.rb
index 2d96dc8e4..155228349 100644
--- a/Library/Formula/pyqt.rb
+++ b/Library/Formula/pyqt.rb
@@ -18,10 +18,16 @@ class Pyqt < Formula
def install
python do
- system python, "./configure-ng.py", "--confirm-license",
- "--bindir=#{bin}",
- "--destdir=#{lib}/#{python.xy}/site-packages",
- "--sipdir=#{share}/sip#{python.if3then3}"
+ args = [ "--confirm-license",
+ "--bindir=#{bin}",
+ "--destdir=#{lib}/#{python.xy}/site-packages",
+ "--sipdir=#{share}/sip#{python.if3then3}" ]
+ # We need to run "configure.py" so that pyqtconfig.py is generated and
+ # PyQWT needs that. But to do the actual compile, we use the newer
+ # "configure-ng.py" that is recommened in the README.
+ system python, "configure.py", *args
+ (python.site_packages/'PyQt4').install 'pyqtconfig.py'
+ system python, "./configure-ng.py", *args
system "make"
system "make", "install"
system "make", "clean" # because this python block may be run twice