homebrew-core/Formula/pyqt.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

30 lines
918 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.7.4.tar.gz'
homepage 'http://www.riverbankcomputing.co.uk/software/pyqt'
md5 '18af44b8a51dc896200c8b299bee7937'
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