58 lines
1.5 KiB
Ruby
58 lines
1.5 KiB
Ruby
class Tmux < Formula
|
|
desc "Terminal multiplexer"
|
|
homepage "https://tmux.github.io/"
|
|
url "https://github.com/tmux/tmux/releases/download/3.0a/tmux-3.0a.tar.gz"
|
|
sha256 "4ad1df28b4afa969e59c08061b45082fdc49ff512f30fc8e43217d7b0e5f8db9"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "3d29caf7e2b87c9f1af575b4ec10af3e29c5de6979a8bd884153d9e8e1b69f20" => :catalina
|
|
sha256 "6cfd3987dcda2901a3ed423138db7782ea88a993e1409c4ebb9d647b1c007e8a" => :mojave
|
|
sha256 "c7c42853ca6a3a5ad6ab6544defee14e450643f5ace274b9cf00d348e8525993" => :high_sierra
|
|
end
|
|
|
|
head do
|
|
url "https://github.com/tmux/tmux.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "libevent"
|
|
depends_on "ncurses"
|
|
|
|
resource "completion" do
|
|
url "https://raw.githubusercontent.com/imomaliev/tmux-bash-completion/homebrew_1.0.0/completions/tmux"
|
|
sha256 "05e79fc1ecb27637dc9d6a52c315b8f207cf010cdcee9928805525076c9020ae"
|
|
end
|
|
|
|
def install
|
|
system "sh", "autogen.sh" if build.head?
|
|
|
|
args = %W[
|
|
--disable-Dependency-tracking
|
|
--prefix=#{prefix}
|
|
--sysconfdir=#{etc}
|
|
]
|
|
|
|
ENV.append "LDFLAGS", "-lresolv"
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
pkgshare.install "example_tmux.conf"
|
|
bash_completion.install resource("completion")
|
|
end
|
|
|
|
def caveats; <<~EOS
|
|
Example configuration has been installed to:
|
|
#{opt_pkgshare}
|
|
EOS
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/tmux", "-V"
|
|
end
|
|
end
|