From 7371f697a6176a06df68101286f72fdba7b8e388 Mon Sep 17 00:00:00 2001 From: Geoff Nixon Date: Sat, 21 Feb 2015 02:18:32 -0800 Subject: fsh: cleanup, remove bad inreplace and add test. Closes #37023. Signed-off-by: Mike McQuaid --- Library/Formula/fsh.rb | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'Library') diff --git a/Library/Formula/fsh.rb b/Library/Formula/fsh.rb index 3c4d46bd7..c8269e18e 100644 --- a/Library/Formula/fsh.rb +++ b/Library/Formula/fsh.rb @@ -1,25 +1,20 @@ -require 'formula' - class Fsh < Formula - homepage 'http://www.lysator.liu.se/fsh/' - url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz' - sha1 'c2f1e923076d368fbb5504dcd1d33c74024b0d1b' + 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' + inreplace "fshcompat.py", "FCNTL", "fcntl" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}", "--infodir=#{info}" - system "make install" + system "make", "install" + end - cd bin do - if Formula['python'].installed? - inreplace ["fsh", "fshd", "in.fshd"], - "#! /usr/local/bin/python", "#!/usr/bin/env python" - end - end + test do + system "fsh", "-V" end end -- cgit v1.2.3