2009-10-30 10:47:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2009-11-05 18:13:00 +00:00
|
|
|
# NOTE this should be provided by pip eventually
|
|
|
|
# currently easy_install doesn't seem to support it
|
|
|
|
|
2009-10-30 10:47:33 +00:00
|
|
|
class Sip <Formula
|
2010-05-10 03:18:41 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.10.2.tar.gz'
|
2009-10-30 10:47:33 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
|
2010-05-10 03:18:41 +00:00
|
|
|
md5 '52d11ca9c1a0d0cddc9b89268bff5929'
|
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-02-27 17:26:27 +00:00
|
|
|
This formula won't function until you amend your PYTHONPATH like so:
|
2009-11-05 18:13:00 +00:00
|
|
|
|
2010-02-27 17:26:27 +00:00
|
|
|
export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH
|
2009-11-05 18:13:00 +00:00
|
|
|
EOS
|
|
|
|
end
|
2009-10-30 10:47:33 +00:00
|
|
|
end
|