require 'formula' class Ghc 'ghc' # Fix ghc-asm Perl reference inreplace "#{lib}/ghc/ghc-asm", "#!/opt/local/bin/perl", "#!/usr/bin/env perl" # Regenerate GHC package cache rm "#{lib}/ghc/package.conf.d/package.cache" system "#{bin}/ghc-pkg", 'recache', '--package-conf', "#{lib}/ghc/package.conf.d" end end