homebrew-core/Formula/swig.rb
Victor Martinez 8dc451e3e2 Fixed several broken sourceforge.net download locations
Closes Homebrew/homebrew#20645.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-30 12:17:57 -07:00

21 lines
571 B
Ruby

require 'formula'
class Swig < Formula
homepage 'http://www.swig.org/'
url 'http://downloads.sourceforge.net/project/swig/swig/swig-2.0.10/swig-2.0.10.tar.gz'
sha1 'ad6f95ce9b9da4a8f5b80ac1848d26c76f518d84'
option :universal
depends_on 'pcre'
depends_on :python # assure swig find the "right" python
depends_on :python3 => :optional
def install
ENV.universal_binary if build.universal?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make"
system "make install"
end
end