homebrew-core/Formula/wget.rb

26 lines
594 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Wget < Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftp.gnu.org/gnu/wget/wget-1.13.3.tar.gz'
md5 '2524f82296d51ef444e96e3a28bb4fbb'
2011-04-08 18:16:37 +00:00
depends_on "openssl" if MacOS.leopard?
depends_on "libidn" if ARGV.include? "--enable-iri"
2010-07-24 04:46:22 +00:00
def options
[["--enable-iri", "Enable iri support."]]
2010-07-24 04:46:22 +00:00
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