Skip to content

Commit

Permalink
tmux: fix MacOS references.
Browse files Browse the repository at this point in the history
Needed after Homebrew/brew#16306.
  • Loading branch information
MikeMcQuaid committed Dec 14, 2023
1 parent 58df39e commit defd6d8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Formula/t/tmux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit defd6d8

Please sign in to comment.