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'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'c2f1e923076d368fbb5504dcd1d33c74024b0d1b'
|
2010-01-05 08:39:07 +00:00
|
|
|
|
|
|
|
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
|