homebrew-core/Formula/sip.rb

27 lines
877 B
Ruby
Raw Normal View History

2009-10-30 10:47:33 +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:47:33 +00:00
class Sip <Formula
2010-08-31 18:39:36 +00:00
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.11.tar.gz'
2009-10-30 10:47:33 +00:00
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
2010-08-31 18:39:36 +00:00
md5 '810f0cb0da327e0120fd87b7194ddf7e'
2009-10-30 10:47:33 +00:00
def install
# Force building against System python, because we need a Framework build.
# See: http://github.com/mxcl/homebrew/issues/issue/930
system "/usr/bin/python", "configure.py",
"--destdir=#{lib}/python",
"--bindir=#{bin}",
"--incdir=#{include}"
2009-10-30 10:47:33 +00:00
system "make install"
end
def caveats; <<-EOS
2010-07-13 21:07:54 +00:00
This formula won't function until you amend your PYTHONPATH like so:
export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
2010-07-13 21:07:54 +00:00
EOS
end
2009-10-30 10:47:33 +00:00
end