diff options
| author | Adam Vandenberg | 2009-12-17 15:10:48 -0800 |
|---|---|---|
| committer | Max Howell | 2010-01-13 11:23:11 +0000 |
| commit | af6d133c80c0bbf26bf752260feececc99438fd5 (patch) | |
| tree | 39e25882c1084d53a81dfa2b148f686d1e4938a3 | |
| parent | 310770c980ddfdcc8fbd391c017961a6b437f55b (diff) | |
| download | homebrew-af6d133c80c0bbf26bf752260feececc99438fd5.tar.bz2 | |
Update tmux to use new inreplace features.
| -rw-r--r-- | Library/Formula/tmux.rb | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Library/Formula/tmux.rb b/Library/Formula/tmux.rb index 6c25c7678..081da4be2 100644 --- a/Library/Formula/tmux.rb +++ b/Library/Formula/tmux.rb @@ -2,14 +2,20 @@ require 'formula' class Tmux <Formula url 'http://downloads.sourceforge.net/tmux/tmux-1.1.tar.gz' - homepage 'http://tmux.sourceforge.net' md5 'faf2fc52ac3ae63d899f6fece2c112cd' + homepage 'http://tmux.sourceforge.net' def install ENV['PREFIX'] = "#{prefix}" system "./configure" - inreplace "GNUmakefile", " -g bin -o root", "" - inreplace "GNUmakefile", "man/man1", "share/man/man1" + + inreplace "GNUmakefile" do |f| + # Fix 'install' flags + f.gsub! " -g bin -o root", "" + # Put docs in the right place + f.gsub! "man/man1", "share/man/man1" + end + system "make install" end end |
