aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fsh.rb
diff options
context:
space:
mode:
authorwatsonian2010-01-05 00:39:07 -0800
committerAdam Vandenberg2010-02-17 09:17:22 -0800
commit37dd429a062e0e9d72547ca90a92b47ec0d44fef (patch)
tree79581ce60f24861146f3268fd53eef4c7b68e0f8 /Library/Formula/fsh.rb
parent5ecc899de2174f5c28efb0c52e23941bf430f8af (diff)
downloadhomebrew-37dd429a062e0e9d72547ca90a92b47ec0d44fef.tar.bz2
Add fsh 1.2 formula (fast remote command execution).
Signed-off-by: Adam Vandenberg <flangy@gmail.com> Use "#!/usr/bin/env python" to find interpreter.
Diffstat (limited to 'Library/Formula/fsh.rb')
-rw-r--r--Library/Formula/fsh.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/fsh.rb b/Library/Formula/fsh.rb
new file mode 100644
index 000000000..ce8678c66
--- /dev/null
+++ b/Library/Formula/fsh.rb
@@ -0,0 +1,21 @@
+require 'formula'
+
+class Fsh <Formula
+ url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
+ homepage 'http://www.lysator.liu.se/fsh/'
+ md5 '74d7fc65044d1c9c27c6e9edbbde9c68'
+
+ def install
+ # FCNTL was deprecated and needs to be changed to fcntl
+ system "find . -type f -exec sed -i \"\" 's/FCNTL/fcntl/g' {} \\;"
+
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+
+ cd bin do
+ inreplace "fsh", "#! /usr/local/bin/python", "#!/usr/bin/env python"
+ inreplace "fshd", "#! /usr/local/bin/python", "#!/usr/bin/env python"
+ inreplace "in.fshd", "#! /usr/local/bin/python", "#!/usr/bin/env python"
+ end
+ end
+end