homebrew-core/Formula/swig.rb
Max Howell 61b2307139 s/require 'brewkit'/require 'formula'/g
brewkit.rb changes ENV destructively, so lets not do that everytime a formula
is required. Now it's possible for other tools to require a formula
description without worrying about side-effects.
2009-10-15 16:48:03 +01:00

19 lines
581 B
Ruby

require 'formula'
class Swig <Formula
url 'http://downloads.sourceforge.net/swig/swig-1.3.40.tar.gz'
homepage 'http://www.swig.org/'
md5 '2df766c9e03e02811b1ab4bba1c7b9cc'
def patches
DATA
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking",
# turns prefix/share/swig/1.3.40 into prefix/share/swig
# as versioned dirs are redundant with Homebrew
"--with-swiglibdir=#{prefix}/share/swig"
system "make install"
end
end