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
|
2009-12-17 23:10:48 +00:00
|
|
|
homepage 'http://tmux.sourceforge.net'
|
2014-02-24 11:33:52 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/tmux/tmux/tmux-1.9/tmux-1.9a.tar.gz'
|
|
|
|
sha1 '815264268e63c6c85fe8784e06a840883fcfc6a2'
|
2009-09-30 05:19:25 +00:00
|
|
|
|
2014-02-24 11:21:45 +00:00
|
|
|
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'
|
2012-01-28 00:47:31 +00:00
|
|
|
|
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
|
2012-02-28 15:39:22 +00:00
|
|
|
end
|
|
|
|
|
2013-09-22 01:47:45 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libevent'
|
|
|
|
|
2009-09-30 05:19:25 +00:00
|
|
|
def install
|
2012-08-23 04:14:18 +00:00
|
|
|
system "sh", "autogen.sh" if build.head?
|
2012-01-28 00:47:31 +00:00
|
|
|
|
2011-07-12 02:02:24 +00:00
|
|
|
ENV.append "LDFLAGS", '-lresolv'
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
2012-10-02 06:57:42 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--sysconfdir=#{etc}"
|
2009-09-30 05:19:25 +00:00
|
|
|
system "make install"
|
2011-07-12 02:02:24 +00:00
|
|
|
|
2013-05-03 18:03:31 +00:00
|
|
|
bash_completion.install "examples/bash_completion_tmux.sh" => 'tmux'
|
2013-08-04 19:41:33 +00:00
|
|
|
(share/'tmux').install "examples"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
2013-10-25 01:56:48 +00:00
|
|
|
Example configurations have been installed to:
|
2013-08-04 19:41:33 +00:00
|
|
|
#{share}/tmux/examples
|
|
|
|
EOS
|
2012-08-14 02:20:53 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-05-15 21:36:45 +00:00
|
|
|
system "#{bin}/tmux", "-V"
|
2012-04-07 04:36:24 +00:00
|
|
|
end
|
2009-09-30 05:19:25 +00:00
|
|
|
end
|