aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2015-03-03 04:30:45 +0000
committerMike McQuaid2015-03-03 12:09:35 +0000
commitea9ce14dbcfae34b5c413c36c1d5d82b2bd44d97 (patch)
tree6b1d40c382608dc5462b4c6657f6548436416fea /Library
parentcd7b7f987f66155293d2f282b265f181ecd15fa5 (diff)
downloadhomebrew-ea9ce14dbcfae34b5c413c36c1d5d82b2bd44d97.tar.bz2
wget: add libressl option
Joyous news: GNU merged in the OpenBSD RAND patch required to build with LibreSSL without Homebrew needing to incorporate the patch here. This adds that option. Closes #37343. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/wget.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/Library/Formula/wget.rb b/Library/Formula/wget.rb
index 85eceac5c..05556b0b5 100644
--- a/Library/Formula/wget.rb
+++ b/Library/Formula/wget.rb
@@ -5,7 +5,7 @@ class Wget < Formula
homepage "https://www.gnu.org/software/wget/"
url "http://ftpmirror.gnu.org/wget/wget-1.16.2.tar.xz"
mirror "https://ftp.gnu.org/gnu/wget/wget-1.16.2.tar.xz"
- sha1 "a77b455ad01620ea3b709db2e07e6841da518f38"
+ sha256 "a7dfde1bcb0eb135addf587a649fd0e47c1a876edef359b9197cdffd1fdcd7d5"
bottle do
sha1 "4a25ec9c585fd7d9b661ae3ee865a990e933b34c" => :yosemite
@@ -28,7 +28,8 @@ class Wget < Formula
option "with-iri", "Enable iri support"
option "with-debug", "Build with debug support"
- depends_on "openssl"
+ depends_on "openssl" => :recommended
+ depends_on "libressl" => :optional
depends_on "libidn" if build.with? "iri"
depends_on "pcre" => :optional
@@ -37,9 +38,14 @@ class Wget < Formula
--prefix=#{prefix}
--sysconfdir=#{etc}
--with-ssl=openssl
- --with-libssl-prefix=#{Formula["openssl"].opt_prefix}
]
+ if build.with? "libressl"
+ args << "--with-libssl-prefix=#{Formula["libressl"].opt_prefix}"
+ else
+ args << "--with-libssl-prefix=#{Formula["openssl"].opt_prefix}"
+ end
+
args << "--disable-debug" if build.without? "debug"
args << "--disable-iri" if build.without? "iri"
args << "--disable-pcre" if build.without? "pcre"
@@ -50,6 +56,6 @@ class Wget < Formula
end
test do
- system "#{bin}/wget", "-O", "-", "www.google.com"
+ system bin/"wget", "-O", "-", "https://google.com"
end
end