aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-01-04 13:05:39 +0000
committerMike McQuaid2014-01-04 13:19:22 +0000
commit0da0106c88edd305a05c1d253d6a400f8a10a1fd (patch)
tree0b538e78c62beb806160021c6face741869f9b4e /Library
parent1992bb268c6839ad141484fc7e6a75d876dd9bfb (diff)
downloadhomebrew-0da0106c88edd305a05c1d253d6a400f8a10a1fd.tar.bz2
fsh: cleanup python usage.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fsh.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/Library/Formula/fsh.rb b/Library/Formula/fsh.rb
index f8fb5ad92..d8c074123 100644
--- a/Library/Formula/fsh.rb
+++ b/Library/Formula/fsh.rb
@@ -5,8 +5,6 @@ class Fsh < Formula
url 'http://www.lysator.liu.se/fsh/fsh-1.2.tar.gz'
sha1 'c2f1e923076d368fbb5504dcd1d33c74024b0d1b'
- depends_on :python
-
def install
# FCNTL was deprecated and needs to be changed to fcntl
inreplace 'fshcompat.py', 'FCNTL', 'fcntl'
@@ -16,5 +14,12 @@ class Fsh < Formula
"--prefix=#{prefix}",
"--infodir=#{info}"
system "make install"
+
+ cd bin do
+ if Formula.factory('python').installed?
+ inreplace ["fsh", "fshd", "in.fshd"],
+ "#! /usr/local/bin/python", "#!/usr/bin/env python"
+ end
+ end
end
end