fa3d89a7c0
It seems that the main GNU download site has issues in some places outside the U.S., so we'll use the provided "ftpmirror.gnu.org" to pick a nearby mirror. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
25 lines
596 B
Ruby
25 lines
596 B
Ruby
require 'formula'
|
|
|
|
class Wget < Formula
|
|
homepage 'http://www.gnu.org/software/wget/'
|
|
url 'http://ftpmirror.gnu.org/wget/wget-1.13.3.tar.gz'
|
|
md5 '2524f82296d51ef444e96e3a28bb4fbb'
|
|
|
|
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
|