homebrew-core/Formula/wget.rb
Justin de Vesine fad26d0d92 wget 1.14
Closes Homebrew/homebrew#14010.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-08-06 12:36:10 -07:00

40 lines
983 B
Ruby

require 'formula'
class Wget < Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftpmirror.gnu.org/wget/wget-1.14.tar.gz'
mirror 'http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz'
sha1 'c487bce740b3a1847a35fb29b5c6700c46f639b8'
head 'git://git.savannah.gnu.org/wget.git'
depends_on "openssl" if MacOS.leopard?
depends_on "libidn" if ARGV.include? "--enable-iri"
if ARGV.build_head?
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gettext"
end
def options
[["--enable-iri", "Enable iri support."]]
end
def install
system "./bootstrap" if ARGV.build_head?
args = ["--disable-debug",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}",
"--with-ssl=openssl"]
args << "--disable-iri" unless ARGV.include? "--enable-iri"
system "./configure", *args
system "make install"
end
def test
system "#{bin}/wget", "-O", "-", "www.google.com"
end
end