homebrew-core/Formula/tmux.rb
Guo Xiao dea232f3b8 tmux: update tmux homepage and url
Revert incorrect change caused by 8dd3478131b232553f4c0cab197f8443a0a559a6

Closes Homebrew/homebrew#40456.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-06 20:32:26 +08:00

49 lines
1.3 KiB
Ruby

class Tmux < Formula
desc "Terminal multiplexer"
homepage "https://tmux.github.io/"
url "https://github.com/tmux/tmux/releases/download/2.0/tmux-2.0.tar.gz"
sha256 "795f4b4446b0ea968b9201c25e8c1ef8a6ade710ebca4657dd879c35916ad362"
bottle do
cellar :any
revision 1
sha256 "4a15dbb353298f6ab5db3ad0121e50225328d49da1548bee570f93af4c294368" => :yosemite
sha256 "ccc3e43a9e544d74d5a081de07294a8c75d14f9649d7fc2e5bc94cc0107e625d" => :mavericks
sha256 "145f66ff2b0adf499ee4a8ceab8ec1556d43b74074921ff1e86a4d7be05492c8" => :mountain_lion
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"
def install
system "sh", "autogen.sh" if build.head?
ENV.append "LDFLAGS", "-lresolv"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--sysconfdir=#{etc}"
system "make", "install"
bash_completion.install "examples/bash_completion_tmux.sh" => "tmux"
(share/"tmux").install "examples"
end
def caveats; <<-EOS.undent
Example configurations have been installed to:
#{share}/tmux/examples
EOS
end
test do
system "#{bin}/tmux", "-V"
end
end