blob: dfd8251b15f8131be3ec382bcb314a6bd983f2cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
require 'formula'
class Tmux < Formula
homepage 'http://tmux.sourceforge.net'
url 'https://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
head do
url 'git://git.code.sf.net/p/tmux/tmux-code'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on 'pkg-config' => :build
depends_on 'libevent'
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"
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
|