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-11-05 18:13:00 +00:00
|
|
|
|
2009-10-30 10:47:33 +00:00
|
|
|
class Sip <Formula
|
2010-07-21 16:34:40 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.10.5.tar.gz'
|
2009-10-30 10:47:33 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
|
2010-07-21 16:34:40 +00:00
|
|
|
md5 '0a591ef6e59aa16e56822d3eb9fe21b8'
|
2009-10-30 10:47:33 +00:00
|
|
|
|
|
|
|
def install
|
2010-06-16 21:06:54 +00:00
|
|
|
# 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
|
2009-11-05 18:13:00 +00:00
|
|
|
|
2010-06-16 21:06:54 +00:00
|
|
|
def caveats; <<-EOS
|
2010-07-13 21:07:54 +00:00
|
|
|
This formula won't function until you amend your PYTHONPATH like so:
|
|
|
|
export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH
|
|
|
|
EOS
|
2009-11-05 18:13:00 +00:00
|
|
|
end
|
2009-10-30 10:47:33 +00:00
|
|
|
end
|