homebrew-core/Formula/pyqt.rb

31 lines
924 B
Ruby
Raw Normal View History

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-10-30 10:46:25 +00:00
class Pyqt <Formula
2010-07-13 21:07:54 +00:00
url 'http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.7.4.tar.gz'
2009-10-30 10:46:25 +00:00
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
2010-07-13 21:07:54 +00:00
md5 '18af44b8a51dc896200c8b299bee7937'
2009-10-30 10:46:25 +00:00
depends_on 'sip'
2009-10-30 10:46:25 +00:00
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"
2009-10-30 10:46:25 +00:00
system "make install"
end
2010-07-13 21:07:54 +00:00
def caveats; <<-EOS
This formula won't function until you amend your PYTHONPATH like so:
export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH
EOS
end
2009-10-30 10:46:25 +00:00
end