aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/tmux.rb
blob: f3cc8c42e89a6176942a8be1b3d79fb4adf93d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'formula'

class Tmux <Formula
  url 'http://downloads.sourceforge.net/tmux/tmux-1.3.tar.gz'
  md5 '96e60cb206de2db0610b9fb6a64c2251'
  homepage 'http://tmux.sourceforge.net'

  depends_on 'libevent'

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

    inreplace "GNUmakefile" do |s|
      # Fix 'install' flags
      s.gsub! " -g bin -o root", ""
      # Put docs in the right place
      s.gsub! "man/man1", "share/man/man1"
    end

    system "make install"
  end
end