homebrew-core/Formula/wget.rb
Jack Nagel f02c0db9cb wget 1.13
Apparently we have to specify '--with-ssl=openssl', otherwise the
configure script tries to find GnuTLS and aborts if it isn't present.

But hey, we don't need that ugly patch anymore.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2011-08-12 12:12:41 -07:00

25 lines
636 B
Ruby

require 'formula'
class Wget < Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftp.gnu.org/gnu/wget/wget-1.13.tar.gz'
md5 'd3698837e6a9567ca9be10f115989940'
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",
"--disable-dependency-tracking",
"--with-ssl=openssl",
"--prefix=#{prefix}"]
args << "--disable-iri" unless ARGV.include? "--enable-iri"
system "./configure", *args
system "make install"
end
end