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-01-16 19:00:49 +00:00
|
|
|
url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.10.tar.gz'
|
2009-10-30 10:47:33 +00:00
|
|
|
homepage 'http://www.riverbankcomputing.co.uk/software/sip'
|
2010-01-16 19:00:49 +00:00
|
|
|
md5 '4b8f7361839b33868dd3cc576509ba8e'
|
2009-10-30 10:47:33 +00:00
|
|
|
|
|
|
|
def install
|
2009-11-05 18:13:00 +00:00
|
|
|
system "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
|
|
|
|
|
|
|
def caveats; <<-EOS
|
|
|
|
This formula won't function until you add the following to your PYTHONPATH
|
|
|
|
environment variable:
|
|
|
|
|
|
|
|
#{HOMEBREW_PREFIX}/lib/python
|
|
|
|
|
2010-01-16 19:00:49 +00:00
|
|
|
This is why you would ideally install sip using pip or easy_install. But this
|
|
|
|
can't work because this package doesn't support Python's disttools.
|
2009-11-05 18:13:00 +00:00
|
|
|
EOS
|
|
|
|
end
|
2009-10-30 10:47:33 +00:00
|
|
|
end
|