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"
|
2014-01-04 13:05:39 +00:00
|
|
|
|
|
|
|
cd bin do
|
2014-02-25 05:48:47 +00:00
|
|
|
if Formula['python'].installed?
|
2014-01-04 13:05:39 +00:00
|
|
|
inreplace ["fsh", "fshd", "in.fshd"],
|
|
|
|
"#! /usr/local/bin/python", "#!/usr/bin/env python"
|
2014-05-03 18:52:11 +00:00
|
|
|
end
|
2014-01-04 13:05:39 +00:00
|
|
|
end
|
2010-01-05 08:39:07 +00:00
|
|
|
end
|
|
|
|
end
|