homebrew-core/Formula/pyqt.rb
Christopher cf391f4bfd sip - removed check for Framework Python
removed the apparently unnecesary check for a framework build of python from
the sip build and stopped using system python for sip and pyqt

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-10-26 09:35:49 -07:00

30 lines
916 B
Ruby

require 'formula'
# Note: this project doesn't save old releases, so it breaks often as
# downloads disappear.
class Pyqt <Formula
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.8.tar.gz'
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
md5 'e4423183a52081be05b7b658cd033731'
depends_on 'sip'
depends_on 'qt'
def install
ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
system "python", "./configure.py", "--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 amend your PYTHONPATH like so:
export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
EOS
end
end