f02c0db9cb
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>
25 lines
636 B
Ruby
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
|