Skip to content

Commit

Permalink
fsh: cleanup, remove bad inreplace and add test.
Browse files Browse the repository at this point in the history
Closes Homebrew#37023.

Signed-off-by: Mike McQuaid <[email protected]>
  • Loading branch information
geoff-nixon authored and MikeMcQuaid committed Feb 22, 2015
1 parent b0e7d05 commit 7371f69
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Library/Formula/fsh.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 7371f69

Please sign in to comment.