mlton: add warning about non-/usr/local installs

This commit is contained in:
Adam Vandenberg 2011-05-10 20:32:56 -07:00
parent 7e6d286cbc
commit 9314e11986

View file

@ -15,6 +15,13 @@ class Mlton < Formula
skip_clean :all
def install
unless HOMEBREW_PREFIX.to_s == "/usr/local"
opoo "mlton won't work outside of /usr/local."
puts "Because this uses pre-compiled binaries, it will not work if"
puts "Homebrew is installed somewhere other than /usr/local; mlton"
puts "will be unable to find GMP."
end
Dir.chdir "local" do
# Remove OS X droppings
rm Dir["man/man1/._*"]