homebrew-core/Formula/wget.rb
Jack Nagel 83fcafb5aa Add mirrors for GNU formulae
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-11-30 12:56:07 -06:00

26 lines
656 B
Ruby

require 'formula'
class Wget < Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2'
mirror 'http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.bz2'
md5 '12115c3750a4d92f9c6ac62bac372e85'
depends_on "openssl" if MacOS.leopard?
depends_on "libidn" if ARGV.include? "--enable-iri"
def options
[["--enable-iri", "Enable iri support."]]
end
def install
args = ["--disable-debug",
"--prefix=#{prefix}",
"--with-ssl=openssl"]
args << "--disable-iri" unless ARGV.include? "--enable-iri"
system "./configure", *args
system "make install"
end
end