2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 05:19:25 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Tmux < Formula
|
2011-07-12 02:02:24 +00:00
|
|
|
url 'http://sourceforge.net/projects/tmux/files/tmux/tmux-1.5/tmux-1.5.tar.gz'
|
|
|
|
md5 '3d4b683572af34e83bc8b183a8285263'
|
2009-12-17 23:10:48 +00:00
|
|
|
homepage 'http://tmux.sourceforge.net'
|
2009-09-30 05:19:25 +00:00
|
|
|
|
2010-03-22 21:19:12 +00:00
|
|
|
depends_on 'libevent'
|
|
|
|
|
2009-09-30 05:19:25 +00:00
|
|
|
def install
|
2011-07-12 02:02:24 +00:00
|
|
|
ENV.append "LDFLAGS", '-lresolv'
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}", "--sysconfdir=#{etc}"
|
2009-09-30 05:19:25 +00:00
|
|
|
system "make install"
|
2011-07-12 02:02:24 +00:00
|
|
|
|
2011-06-16 00:25:52 +00:00
|
|
|
# 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
|
2009-09-30 05:19:25 +00:00
|
|
|
end
|
|
|
|
end
|