From 9d891c0d5e41c91d67fbcdfa470160cbdc5eb7d0 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 10 May 2011 20:32:56 -0700 Subject: mlton: add warning about non-/usr/local installs --- Library/Formula/mlton.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/mlton.rb b/Library/Formula/mlton.rb index 82b0bbecf..fecafeb2c 100644 --- a/Library/Formula/mlton.rb +++ b/Library/Formula/mlton.rb @@ -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/._*"] -- cgit v1.2.3