aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-05-10 20:32:56 -0700
committerAdam Vandenberg2011-05-10 20:32:56 -0700
commit9d891c0d5e41c91d67fbcdfa470160cbdc5eb7d0 (patch)
tree80e4787be55197c4e5e556bbf430646e100edbaf /Library/Formula
parent6cd780d1e8cbf9ce6241ab7b2bf237cc2957bd07 (diff)
downloadhomebrew-9d891c0d5e41c91d67fbcdfa470160cbdc5eb7d0.tar.bz2
mlton: add warning about non-/usr/local installs
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mlton.rb7
1 files changed, 7 insertions, 0 deletions
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/._*"]