aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/sip.rb
blob: cad9d617e1d618b5afc5e3ac6c79c0121770cbea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
require 'formula'

# NOTE this should be provided by pip eventually
# currently easy_install doesn't seem to support it

class Sip <Formula
  url 'http://www.riverbankcomputing.co.uk/static/Downloads/sip4/sip-4.10.2.tar.gz'
  homepage 'http://www.riverbankcomputing.co.uk/software/sip'
  md5 '52d11ca9c1a0d0cddc9b89268bff5929'

  def install
    system "python", "configure.py", "--destdir=#{lib}/python",
                                     "--bindir=#{bin}",
                                     "--incdir=#{include}"
    system "make install"
  end

  def caveats; <<-EOS.undent
    This formula won't function until you amend your PYTHONPATH like so:

        export PYTHON_PATH=#{HOMEBREW_PREFIX}/lib/python:$PYTHON_PATH

    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.
    EOS
  end
end