homebrew-core/Formula/fsh.rb
Jack Nagel 2b95b8170d fsh: formula cleanup
- Use inreplace instead of find/sed
 - Specify infodir
 - Various style nits

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-10 18:38:53 -05:00

23 lines
663 B
Ruby

require 'formula'
class Fsh < Formula
homepage 'http://www.lysator.liu.se/fsh/'
url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
md5 '74d7fc65044d1c9c27c6e9edbbde9c68'
def install
# FCNTL was deprecated and needs to be changed to fcntl
inreplace 'fshcompat.py', 'FCNTL', 'fcntl'
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--infodir=#{info}"
system "make install"
cd bin do
inreplace ["fsh", "fshd", "in.fshd"],
"#! /usr/local/bin/python", "#!/usr/bin/env python"
end
end
end