homebrew-core/Formula/wget.rb

55 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
2012-08-10 03:16:49 +00:00
# NOTE: Configure will fail if using awk 20110810 from dupes.
# Upstream issue: https://savannah.gnu.org/bugs/index.php?37063
2011-03-10 05:11:03 +00:00
class Wget < Formula
homepage 'http://www.gnu.org/software/wget/'
url 'http://ftpmirror.gnu.org/wget/wget-1.15.tar.gz'
mirror 'http://ftp.gnu.org/gnu/wget/wget-1.15.tar.gz'
sha1 'f3c925f19dfe5ed386daae4f339175c108c50574'
revision 1
2014-02-22 18:38:22 +00:00
bottle do
2014-04-09 11:00:24 +00:00
sha1 "94ad9a29eb79d8ebc88dfca1008f635da37bfa89" => :mavericks
sha1 "7213c042d1d6593031882b652db8920b85fe2e6b" => :mountain_lion
sha1 "f2202b23c269d78346ef8d0ccd65f19f287a1dce" => :lion
2014-02-22 18:38:22 +00:00
end
2013-09-22 01:47:53 +00:00
head do
url 'git://git.savannah.gnu.org/wget.git'
2012-04-17 14:30:09 +00:00
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "xz" => :build
2012-04-17 14:30:09 +00:00
depends_on "gettext"
end
2013-09-22 01:47:53 +00:00
option "enable-iri", "Enable iri support"
option "enable-debug", "Build with debug support"
2014-01-22 00:33:50 +00:00
depends_on "openssl"
2013-09-22 01:47:53 +00:00
depends_on "libidn" if build.include? "enable-iri"
def install
2012-08-09 14:19:40 +00:00
system "./bootstrap" if build.head?
2014-01-22 00:33:50 +00:00
args = %W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--with-ssl=openssl
2014-02-26 05:35:14 +00:00
--with-libssl-prefix=#{Formula["openssl"].opt_prefix}
2014-01-22 00:33:50 +00:00
]
args << "--disable-debug" unless build.include? "enable-debug"
2012-08-09 15:51:54 +00:00
args << "--disable-iri" unless build.include? "enable-iri"
system "./configure", *args
system "make install"
end
2012-03-08 08:09:27 +00:00
test do
system "#{bin}/wget", "-O", "-", "www.google.com"
2012-03-08 08:09:27 +00:00
end
end