2009-10-30 10:47:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sip <Formula
|
2010-09-21 00:46:08 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/hg/sip/archive/4.11.1.tar.gz'
|
|
|
|
md5 'dbafd7101a4e7caee6f529912a1356e5'
|
|
|
|
head 'http://www.riverbankcomputing.co.uk/hg/sip', :using => :hg
|
2009-10-30 10:47:33 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
|
|
|
|
|
|
|
|
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
|
2010-09-21 00:46:08 +00:00
|
|
|
system "/usr/bin/python", "build.py", "prepare"
|
2010-06-16 21:06:54 +00:00
|
|
|
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-09-21 00:46:08 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
This formula won't function until you amend your PYTHONPATH like so:
|
|
|
|
export PYTHONPATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHONPATH
|
|
|
|
EOS
|
2009-11-05 18:13:00 +00:00
|
|
|
end
|
2009-10-30 10:47:33 +00:00
|
|
|
end
|