2010-01-05 08:39:07 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fsh < Formula
|
2010-01-05 08:39:07 +00:00
|
|
|
homepage 'http://www.lysator.liu.se/fsh/'
|
2012-05-10 23:38:53 +00:00
|
|
|
url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
|
2010-01-05 08:39:07 +00:00
|
|
|
md5 '74d7fc65044d1c9c27c6e9edbbde9c68'
|
|
|
|
|
|
|
|
def install
|
|
|
|
# FCNTL was deprecated and needs to be changed to fcntl
|
2012-05-10 23:38:53 +00:00
|
|
|
inreplace 'fshcompat.py', 'FCNTL', 'fcntl'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2012-05-10 23:38:53 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--infodir=#{info}"
|
2010-01-05 08:39:07 +00:00
|
|
|
system "make install"
|
2010-04-07 05:58:35 +00:00
|
|
|
|
2010-01-05 08:39:07 +00:00
|
|
|
cd bin do
|
2010-02-19 19:19:01 +00:00
|
|
|
inreplace ["fsh", "fshd", "in.fshd"],
|
2010-04-07 05:58:35 +00:00
|
|
|
"#! /usr/local/bin/python", "#!/usr/bin/env python"
|
2010-01-05 08:39:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|