a2bafa27f8
Kills ssl2 from OpenSSL. This PR relates to Homebrew/homebrew#31745. Force recompiles everything that relies on OpenSSL from the master branch to enforce the new OpenSSL no-ssl2 rule.
54 lines
1.4 KiB
Ruby
54 lines
1.4 KiB
Ruby
require 'formula'
|
|
|
|
# NOTE: Configure will fail if using awk 20110810 from dupes.
|
|
# Upstream issue: https://savannah.gnu.org/bugs/index.php?37063
|
|
|
|
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 2
|
|
|
|
bottle do
|
|
sha1 "94ad9a29eb79d8ebc88dfca1008f635da37bfa89" => :mavericks
|
|
sha1 "7213c042d1d6593031882b652db8920b85fe2e6b" => :mountain_lion
|
|
sha1 "f2202b23c269d78346ef8d0ccd65f19f287a1dce" => :lion
|
|
end
|
|
|
|
head do
|
|
url 'git://git.savannah.gnu.org/wget.git'
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "xz" => :build
|
|
depends_on "gettext"
|
|
end
|
|
|
|
option "enable-iri", "Enable iri support"
|
|
option "enable-debug", "Build with debug support"
|
|
|
|
depends_on "openssl"
|
|
depends_on "libidn" if build.include? "enable-iri"
|
|
|
|
def install
|
|
system "./bootstrap" if build.head?
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--sysconfdir=#{etc}
|
|
--with-ssl=openssl
|
|
--with-libssl-prefix=#{Formula["openssl"].opt_prefix}
|
|
]
|
|
|
|
args << "--disable-debug" unless build.include? "enable-debug"
|
|
args << "--disable-iri" unless build.include? "enable-iri"
|
|
|
|
system "./configure", *args
|
|
system "make install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/wget", "-O", "-", "www.google.com"
|
|
end
|
|
end
|