2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-30 05:19:25 +00:00
|
|
|
|
|
|
|
class Tmux <Formula
|
2010-07-18 15:41:23 +00:00
|
|
|
url 'http://downloads.sourceforge.net/tmux/tmux-1.3.tar.gz'
|
|
|
|
md5 '96e60cb206de2db0610b9fb6a64c2251'
|
2009-12-17 23:10:48 +00:00
|
|
|
homepage 'http://tmux.sourceforge.net'
|
2009-09-30 05:19:25 +00:00
|
|
|
|
2010-03-22 21:19:12 +00:00
|
|
|
depends_on 'libevent'
|
|
|
|
|
2009-09-30 05:19:25 +00:00
|
|
|
def install
|
2010-03-07 06:27:19 +00:00
|
|
|
ENV['PREFIX'] = prefix
|
2009-09-30 05:19:25 +00:00
|
|
|
system "./configure"
|
2009-12-17 23:10:48 +00:00
|
|
|
|
2010-09-08 16:07:59 +00:00
|
|
|
inreplace "GNUmakefile" do |s|
|
2009-12-17 23:10:48 +00:00
|
|
|
# Fix 'install' flags
|
2010-09-08 16:07:59 +00:00
|
|
|
s.gsub! " -g bin -o root", ""
|
2009-12-17 23:10:48 +00:00
|
|
|
# Put docs in the right place
|
2010-09-08 16:07:59 +00:00
|
|
|
s.gsub! "man/man1", "share/man/man1"
|
2009-12-17 23:10:48 +00:00
|
|
|
end
|
|
|
|
|
2009-09-30 05:19:25 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|