2011-06-19 11:59:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Swig < Formula
|
|
|
|
homepage 'http://www.swig.org/'
|
2013-06-20 23:08:35 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.10/swig-2.0.10.tar.gz'
|
2013-06-14 20:19:46 +00:00
|
|
|
sha1 'ad6f95ce9b9da4a8f5b80ac1848d26c76f518d84'
|
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'
|
2013-01-21 09:33:56 +00:00
|
|
|
depends_on :python # assure swig find the "right" python
|
|
|
|
depends_on :python3 => :optional
|
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
|