From defd6d81be1be58f137bef2fa2dc389100d0125b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 14 Dec 2023 10:50:52 +0000 Subject: [PATCH] tmux: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/t/tmux.rb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Formula/t/tmux.rb b/Formula/t/tmux.rb index feeb8df2246b..ce2ba4323546 100644 --- a/Formula/t/tmux.rb +++ b/Formula/t/tmux.rb @@ -68,12 +68,16 @@ def install --sysconfdir=#{etc} ] - # tmux finds the `tmux-256color` terminfo provided by our ncurses - # and uses that as the default `TERM`, but this causes issues for - # tools that link with the very old ncurses provided by macOS. - # https://github.com/Homebrew/homebrew-core/issues/102748 - args << "--with-TERM=screen-256color" if OS.mac? - args << "--enable-utf8proc" if MacOS.version >= :high_sierra || OS.linux? + if OS.mac? + # tmux finds the `tmux-256color` terminfo provided by our ncurses + # and uses that as the default `TERM`, but this causes issues for + # tools that link with the very old ncurses provided by macOS. + # https://github.com/Homebrew/homebrew-core/issues/102748 + args << "--with-TERM=screen-256color" + args << "--enable-utf8proc" if MacOS.version >= :high_sierra + else + args << "--enable-utf8proc" + end ENV.append "LDFLAGS", "-lresolv" system "./configure", *args