homebrew-core/Formula/tmux.rb

49 lines
1.2 KiB
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://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz'
sha1 '815264268e63c6c85fe8784e06a840883fcfc6a2'
bottle do
cellar :any
sha1 "258df085ed5fd3ff4374337294641bd057b81ff4" => :mavericks
sha1 "3838e790a791d44464df6e7fcd25d8558d864d9c" => :mountain_lion
sha1 "4368a7f81267c047050758338eb8f4207da12224" => :lion
end
2013-09-22 01:47:45 +00:00
head do
url 'git://git.code.sf.net/p/tmux/tmux-code'
2013-11-13 17:01:29 +00:00
depends_on :autoconf
2012-07-07 18:08:22 +00:00
depends_on :automake
depends_on :libtool
end
2013-09-22 01:47:45 +00:00
depends_on 'pkg-config' => :build
depends_on 'libevent'
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"
2013-05-03 18:03:31 +00:00
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