aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tmux.rb
blob: d11ba43c59e626906b90a1b4d5e790c3b0e7b933 (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
require 'formula'

class Tmux < Formula
  url 'http://sourceforge.net/projects/tmux/files/tmux/tmux-1.4/tmux-1.4.tar.gz'
  md5 '0bfc7dd9a5bab192406167589c716a21'
  homepage 'http://tmux.sourceforge.net'

  depends_on 'libevent'

  def install
    ENV['PREFIX'] = prefix
    system "./configure"

    # Put man pages in the right place
    inreplace "GNUmakefile", "man/man1", "share/man/man1"

    system "make install"
    # 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
  end
end