2009-10-30 10:46:25 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2010-07-13 21:07:54 +00:00
|
|
|
# Note: this project doesn't save old releases, so it breaks often as
|
|
|
|
# downloads disappear.
|
2009-11-05 18:13:00 +00:00
|
|
|
|
2009-10-30 10:46:25 +00:00
|
|
|
class Pyqt <Formula
|
2010-10-24 19:50:44 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.tar.gz'
|
2009-10-30 10:46:25 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
|
2010-10-24 19:50:44 +00:00
|
|
|
md5 'e4423183a52081be05b7b658cd033731'
|
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", ':'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-10-10 17:20:24 +00:00
|
|
|
# SIP gets built against system python, so PyQt should as well.
|
|
|
|
system "/usr/bin/python", "./configure.py", "--confirm-license",
|
2009-11-05 18:13:00 +00:00
|
|
|
"--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
|
|
|
|
2010-07-13 21:07:54 +00:00
|
|
|
def caveats; <<-EOS
|
|
|
|
This formula won't function until you amend your PYTHONPATH like so:
|
2010-07-18 15:38:16 +00:00
|
|
|
export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
|
2010-07-13 21:07:54 +00:00
|
|
|
EOS
|
2009-11-05 18:13:00 +00:00
|
|
|
end
|
2009-10-30 10:46:25 +00:00
|
|
|
end
|