2011-06-19 11:59:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Swig < Formula
|
|
|
|
homepage 'http://www.swig.org/'
|
2013-09-17 17:12:53 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.11/swig-2.0.11.tar.gz'
|
|
|
|
sha1 'd3bf4e78824dba76bfb3269367f1ae0276b49df9'
|
2011-06-19 11:59:14 +00:00
|
|
|
|
2012-08-10 04:48:41 +00:00
|
|
|
option :universal
|
2011-06-19 11:59:14 +00:00
|
|
|
|
2012-08-10 04:48:41 +00:00
|
|
|
depends_on 'pcre'
|
2012-08-04 01:08:57 +00:00
|
|
|
|
2011-06-19 11:59:14 +00:00
|
|
|
def install
|
2012-08-10 04:48:41 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-06-11 10:11:52 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2011-06-19 11:59:14 +00:00
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|