diff options
| author | Samuel John | 2013-09-04 10:46:53 +0200 |
|---|---|---|
| committer | Samuel John | 2013-09-04 10:48:55 +0200 |
| commit | c2eef84bed3a3657662020d6ff6840a09a7bab7b (patch) | |
| tree | 0123c0a0625d05e28986cde7379979a824478f30 /Library/Formula/pyqt.rb | |
| parent | c0a748ce84fff43fefb71148e4d86c000f2309f2 (diff) | |
| download | homebrew-c2eef84bed3a3657662020d6ff6840a09a7bab7b.tar.bz2 | |
pyqt: Generate PyQt4.pyqtconfig
This is no longer generated by the new (recommended) configure-ng.py but
some older projects (like PyQWT) still need that file, so we first
run configure.py and copy over the generated pyqtconfig.py manually.
Then, we normally run and build with configure-ng.py.
Fixes #21984
Diffstat (limited to 'Library/Formula/pyqt.rb')
| -rw-r--r-- | Library/Formula/pyqt.rb | 14 |
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 |
