aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorGeoff Nixon2015-02-21 02:18:32 -0800
committerMike McQuaid2015-02-22 15:45:28 +0000
commit7371f697a6176a06df68101286f72fdba7b8e388 (patch)
tree704b81b09368099916f7fa2aee59373faf15062c /Library
parentb0e7d0517a791ad6ca63e65754ca6d0bab16845a (diff)
downloadhomebrew-7371f697a6176a06df68101286f72fdba7b8e388.tar.bz2
fsh: cleanup, remove bad inreplace and add test.
Closes #37023. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fsh.rb21
1 files changed, 8 insertions, 13 deletions
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