2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Wget < Formula
|
2009-09-24 17:49:32 +00:00
|
|
|
homepage 'http://www.gnu.org/software/wget/'
|
2011-09-18 21:59:57 +00:00
|
|
|
url 'http://ftpmirror.gnu.org/wget/wget-1.13.4.tar.bz2'
|
|
|
|
md5 '12115c3750a4d92f9c6ac62bac372e85'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-04-08 18:16:37 +00:00
|
|
|
depends_on "openssl" if MacOS.leopard?
|
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
|
2010-08-15 22:58:41 +00:00
|
|
|
[["--enable-iri", "Enable iri support."]]
|
2010-07-24 04:46:22 +00:00
|
|
|
end
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2011-08-31 01:10:58 +00:00
|
|
|
args = ["--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-ssl=openssl"]
|
|
|
|
|
2010-04-19 18:32:58 +00:00
|
|
|
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
|