Fix perl path for ghc-asm

Fixes Homebrew/homebrew#1433.
This commit is contained in:
Adam Vandenberg 2010-06-01 20:32:15 -07:00
parent dcfd7b8403
commit 364258a8d0

View file

@ -38,6 +38,7 @@ class Ghc <Formula
# Fix paths
replace_all "/Library/Frameworks/GHC.framework/Versions/#{short_version}/usr/lib/ghc-#{version}", "#{lib}/ghc"
replace_all "/Library/Frameworks/GHC.framework/Versions/#{short_version}/usr", prefix
inreplace "lib/ghc-#{version}/ghc-asm", "#!/opt/local/bin/perl", "#!/usr/bin/env perl"
mv "lib/ghc-#{version}", 'lib/ghc'
prefix.install ['bin', 'lib', 'share']