Update tmux to use new inreplace features.
parent
a65a359aaa
commit
cf97477814
|
@ -2,14 +2,20 @@ require 'formula'
|
||||||
|
|
||||||
class Tmux <Formula
|
class Tmux <Formula
|
||||||
url 'http://downloads.sourceforge.net/tmux/tmux-1.1.tar.gz'
|
url 'http://downloads.sourceforge.net/tmux/tmux-1.1.tar.gz'
|
||||||
homepage 'http://tmux.sourceforge.net'
|
|
||||||
md5 'faf2fc52ac3ae63d899f6fece2c112cd'
|
md5 'faf2fc52ac3ae63d899f6fece2c112cd'
|
||||||
|
homepage 'http://tmux.sourceforge.net'
|
||||||
|
|
||||||
def install
|
def install
|
||||||
ENV['PREFIX'] = "#{prefix}"
|
ENV['PREFIX'] = "#{prefix}"
|
||||||
system "./configure"
|
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"
|
system "make install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue