homebrew-core/Formula/tmux.rb

35 lines
835 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
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'
2012-08-23 04:14:18 +00:00
if build.head?
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
def install
2012-08-23 04:14:18 +00:00
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