homebrew-core/Formula/fsh.rb

26 lines
724 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Fsh < Formula
homepage 'http://www.lysator.liu.se/fsh/'
url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
sha1 'c2f1e923076d368fbb5504dcd1d33c74024b0d1b'
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"
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
end
end