2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2010-04-19 18:32:58 +00:00
|
|
|
# iri support requires libidn, which pulls in getteext, so we
|
|
|
|
# disable this by default.
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
class Wget <Formula
|
2009-09-24 17:49:32 +00:00
|
|
|
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'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2010-04-19 18:32:58 +00:00
|
|
|
depends_on "libidn" if ARGV.include? "--enable-iri"
|
|
|
|
|
2010-07-24 04:46:22 +00:00
|
|
|
def options
|
|
|
|
[["--enable-iri", "Enable iri support (which pulls in libidn and gettext.)"]]
|
|
|
|
end
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2010-04-19 18:32:58 +00:00
|
|
|
args = ["--disable-debug", "--prefix=#{prefix}"]
|
|
|
|
args << "--disable-iri" unless ARGV.include? "--enable-iri"
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2009-09-24 17:49:32 +00:00
|
|
|
end
|