aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swig.rb
blob: 35ca07afd97abaaafb42ce7db9be03a314880a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Swig < Formula
  homepage 'http://www.swig.org/'
  url 'http://sourceforge.net/projects/swig/files/swig/swig-2.0.9/swig-2.0.9.tar.gz'
  sha1 '7984bf1043f522e88ea51d4bd21c97d3c68342be'

  option :universal

  depends_on 'pcre'
  depends_on :python  # assure swig find the "right" python
  depends_on :python3 => :optional

  def install
    ENV.universal_binary if build.universal?
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end