From bd51456cd0c1029a2313da283a866138e3b9c249 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sun, 7 Jan 2018 06:06:09 -0800 Subject: [PATCH] zsh: make gdbm and pcre optional instead of required Closes #22535. Signed-off-by: ilovezfs --- Formula/zsh.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Formula/zsh.rb b/Formula/zsh.rb index 1e417e08be1..1bd9e9e6919 100644 --- a/Formula/zsh.rb +++ b/Formula/zsh.rb @@ -4,7 +4,7 @@ class Zsh < Formula url "https://downloads.sourceforge.net/project/zsh/zsh/5.4.2/zsh-5.4.2.tar.gz" mirror "https://www.zsh.org/pub/zsh-5.4.2.tar.gz" sha256 "957bcdb2c57f64c02f673693ea5a7518ef24b6557aeb3a4ce222cefa6d74acc9" - revision 2 + revision 3 bottle do sha256 "809518bdbd045925feb18ec7593c633508959ddc681734740fa845ee0d7dbf7e" => :high_sierra @@ -22,8 +22,8 @@ class Zsh < Formula deprecated_option "disable-etcdir" => "without-etcdir" - depends_on "gdbm" - depends_on "pcre" + depends_on "gdbm" => :optional + depends_on "pcre" => :optional resource "htmldoc" do url "https://downloads.sourceforge.net/project/zsh/zsh-doc/5.4.2/zsh-5.4.2-doc.tar.xz" @@ -44,11 +44,12 @@ class Zsh < Formula --enable-cap --enable-maildir-support --enable-multibyte - --enable-pcre --enable-zsh-secure-free --with-tcsetpgrp ] + args << "--disable-gdbm" if build.without? "gdbm" + args << "--enable-pcre" if build.with? "pcre" args << "--enable-unicode9" if build.with? "unicode9" if build.without? "etcdir"