homebrew-core/Formula/tmux.rb
Alex Ernst cf701857e6 tmux 1.6
Closes Homebrew/homebrew#9760.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-01-24 20:03:38 -06:00

25 lines
728 B
Ruby

require 'formula'
class Tmux < Formula
url 'http://sourceforge.net/projects/tmux/files/tmux/tmux-1.6/tmux-1.6.tar.gz'
md5 '3e37db24aa596bf108a0442a81c845b3'
homepage 'http://tmux.sourceforge.net'
depends_on 'libevent'
def install
ENV.append "LDFLAGS", '-lresolv'
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make install"
# Install bash completion scripts for use with bash-completion
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'
end
def caveats; <<-EOS.undent
Bash completion script was installed to:
#{etc}/bash_completion.d/tmux
EOS
end
end