homebrew-core/Formula/wget.rb

29 lines
785 B
Ruby
Raw Normal View History

require 'formula'
class Wget <Formula
homepage 'http://www.gnu.org/software/wget/'
2009-11-25 23:39:55 +00:00
url 'http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2'
md5 '308a5476fc096a8a525d07279a6f6aa3'
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 patches
# Fixes annoying TLS Subject Alternative Name bug encountered especially when using GitHub
# Remove when 1.12.1 is released.
# See https://savannah.gnu.org/bugs/?23934
"http://savannah.gnu.org/file/wget-1.12-subjectAltNames.diff?file_id=18828"
end
def install
args = ["--disable-debug", "--prefix=#{prefix}"]
args << "--disable-iri" unless ARGV.include? "--enable-iri"
system "./configure", *args
system "make install"
end
end