aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/pyqt.rb29
-rw-r--r--Library/Formula/sip.rb24
2 files changed, 45 insertions, 8 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
diff --git a/Library/Formula/sip.rb b/Library/Formula/sip.rb
index 797a4ca63..d8e5bee5a 100644
--- a/Library/Formula/sip.rb
+++ b/Library/Formula/sip.rb
@@ -1,13 +1,29 @@
require 'formula'
+# NOTE this should be provided by pip eventually
+# currently easy_install doesn't seem to support it
+
class Sip <Formula
- url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.tar.gz'
+ url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.9.1.tar.gz'
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
- md5 ''
+ md5 '4bd61529a956a08841bb3cc2f949e1c4'
def install
- system "python", "./configure.py"
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "python", "configure.py", "--destdir=#{lib}/python",
+ "--bindir=#{bin}",
+ "--incdir=#{include}"
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