forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fsh: cleanup, remove bad inreplace and add test.
Closes Homebrew#37023. Signed-off-by: Mike McQuaid <[email protected]>
- Loading branch information
1 parent
b0e7d05
commit 7371f69
Showing
1 changed file
with
8 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |