aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/swig.rb
blob: 44ea7b3acbfd84863f869e5bd9b6269fc8f2e27f (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
require "formula"

class Swig < Formula
  homepage "http://www.swig.org/"
  url "https://downloads.sourceforge.net/project/swig/swig/swig-3.0.2/swig-3.0.2.tar.gz"
  sha1 "e695a14acf39b25f3ea2d7303e23e39dfe284e31"

  bottle do
    sha1 "1736d03e7704234b4729262cdb4077f6004a87b9" => :mavericks
    sha1 "dd3ddbbfdc77d9d20f4754fde6bc254568e73920" => :mountain_lion
    sha1 "f08edf42ba3db64e03e90f6bb17d225e0e5218df" => :lion
  end

  option :universal

  depends_on "pcre"

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