aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pyqt.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/pyqt.rb')
-rw-r--r--Library/Formula/pyqt.rb29
1 files changed, 25 insertions, 4 deletions
diff --git a/Library/Formula/pyqt.rb b/Library/Formula/pyqt.rb
index d3715d5b6..b289e6c58 100644
--- a/Library/Formula/pyqt.rb
+++ b/Library/Formula/pyqt.rb
@@ -1,15 +1,36 @@
require 'formula'
+# NOTE this should be provided by pip eventually
+# currently easy_install doesn't seem to support it
+
class Pyqt <Formula
- url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.6.tar.gz'
+ url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.6.1.tar.gz'
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
- md5 '35258016c30a80f97689e643fba4704b'
+ md5 'c04aade8b63795f30ee7da2d3405d7e7'
+ depends_on 'sip'
depends_on 'qt'
def install
- system "python", "./configure.py", "-g"
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
+
+ system "python", "./configure.py", "-g", "--confirm-license",
+ "--bindir=#{bin}",
+ "--destdir=#{lib}/python",
+ "--sipdir=#{share}/sip"
+ system "make"
system "make install"
end
+
+ def caveats; <<-EOS
+This formula won't function until you add the following to your PYTHONPATH
+environment variable:
+
+#{HOMEBREW_PREFIX}/lib/python
+
+Installing with easy_install would be ideal; then the libraries are installed
+to /Library/Python which is in the default OS X Python library path. However
+easy_install does not support this formula.
+ EOS
+ end
end