homebrew-core/Formula/fsh.rb
Adam Vandenberg 7bd947eb0b Update formulae for version 0.7
* Use new "url" features
* Use keg_only DSL
* Use "skip_clean :all" DSL
* Whitespace and style cleanups
* Make bash invocations less silly
* Use new man2-man8 helpers
* Remove "FileUtils." since it is included in Formula
* Use real names for deps instead of aliases
* ENV.x11 now updates path, so remove that from individual brews
2010-08-07 18:08:53 -07:00

20 lines
587 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", "fshd", "in.fshd"],
"#! /usr/local/bin/python", "#!/usr/bin/env python"
end
end
end