homebrew-core/Formula/tmux.rb
Akshay Hegde dd82a69cbb tmux 1.8
Closes Homebrew/homebrew#18757.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-03-26 20:15:31 -07:00

34 lines
835 B
Ruby

require 'formula'
class Tmux < Formula
homepage 'http://tmux.sourceforge.net'
url 'http://sourceforge.net/projects/tmux/files/tmux/tmux-1.8/tmux-1.8.tar.gz'
sha1 '08677ea914e1973ce605b0008919717184cbd033'
head 'git://tmux.git.sourceforge.net/gitroot/tmux/tmux'
depends_on 'pkg-config' => :build
depends_on 'libevent'
if build.head?
depends_on :automake
depends_on :libtool
end
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"
(prefix+'etc/bash_completion.d').install "examples/bash_completion_tmux.sh" => 'tmux'
end
def test
system "#{bin}/tmux", "-V"
end
end