homebrew-core/Formula/fsh.rb
watsonian 0e9c7251b3 Add fsh 1.2 formula (fast remote command execution).
Signed-off-by: Adam Vandenberg <flangy@gmail.com>

Use "#!/usr/bin/env python" to find interpreter.
2010-02-17 09:17:22 -08:00

21 lines
719 B
Ruby

require 'formula'
class Fsh <Formula
url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
homepage 'http://www.lysator.liu.se/fsh/'
md5 '74d7fc65044d1c9c27c6e9edbbde9c68'
def install
# FCNTL was deprecated and needs to be changed to fcntl
system "find . -type f -exec sed -i \"\" 's/FCNTL/fcntl/g' {} \\;"
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system "make install"
cd bin do
inreplace "fsh", "#! /usr/local/bin/python", "#!/usr/bin/env python"
inreplace "fshd", "#! /usr/local/bin/python", "#!/usr/bin/env python"
inreplace "in.fshd", "#! /usr/local/bin/python", "#!/usr/bin/env python"
end
end
end