Don't install bottles in non-default HOMEBREW_PREFIX.

This commit is contained in:
Mike McQuaid 2011-07-31 11:47:14 +01:00
parent 733e280e61
commit 9289c06299

View File

@ -64,7 +64,8 @@ module HomebrewArgvExtension
end
def build_from_source?
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] or not MacOS.lion?
return true if flag? '--build-from-source' or ENV['HOMEBREW_BUILD_FROM_SOURCE'] \
or not MacOS.lion? or HOMEBREW_PREFIX.to_s != '/usr/local'
options = options_only
options.delete '--universal'
not options.empty?