require 'formula' class Swig < Formula homepage 'http://www.swig.org/' url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.8/swig-2.0.8.tar.gz' sha1 '763305da320163903c69c1cdfbf9a942117d9ace' 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