diff options
| author | Max Howell | 2009-11-05 18:13:00 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:34 +0000 |
| commit | 82ec431d3c250cf7fc95e5d8181149827e32fb9c (patch) | |
| tree | 10c0b7cf88d235718296e3ed236d0da8925c0350 /Library | |
| parent | 9a0e572e565363ab58295678a5ac36d3fe6fb74b (diff) | |
| download | homebrew-82ec431d3c250cf7fc95e5d8181149827e32fb9c.tar.bz2 | |
Install into Homebrew prefix
This is the problem with doing our own Python stuff. But easy_install doesn't
work great. The solution is probably jezdez's pip formula.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pyqt.rb | 29 | ||||
| -rw-r--r-- | Library/Formula/sip.rb | 24 |
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 |
