2009-10-30 10:46:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2009-11-05 18:13:00 +00:00
|
|
|
# NOTE this should be provided by pip eventually
|
|
|
|
# currently easy_install doesn't seem to support it
|
|
|
|
|
2009-10-30 10:46:25 +00:00
|
|
|
class Pyqt <Formula
|
2009-11-05 18:13:00 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.6.1.tar.gz'
|
2009-10-30 10:46:25 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
|
2009-11-05 18:13:00 +00:00
|
|
|
md5 'c04aade8b63795f30ee7da2d3405d7e7'
|
2009-10-30 10:46:25 +00:00
|
|
|
|
2009-11-05 18:13:00 +00:00
|
|
|
depends_on 'sip'
|
2009-10-30 10:46:25 +00:00
|
|
|
depends_on 'qt'
|
|
|
|
|
|
|
|
def install
|
2009-11-05 18:13:00 +00:00
|
|
|
ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
|
|
|
|
|
|
|
|
system "python", "./configure.py", "-g", "--confirm-license",
|
|
|
|
"--bindir=#{bin}",
|
|
|
|
"--destdir=#{lib}/python",
|
|
|
|
"--sipdir=#{share}/sip"
|
|
|
|
system "make"
|
2009-10-30 10:46:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-11-05 18:13:00 +00:00
|
|
|
|
|
|
|
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
|
2009-10-30 10:46:25 +00:00
|
|
|
end
|