2017-03-18 17:02:08 +02:00
|
|
|
module Homebrew
|
|
|
|
module MissingFormula
|
|
|
|
class << self
|
|
|
|
def blacklisted_reason(name)
|
|
|
|
case name.downcase
|
|
|
|
when "xcode"
|
|
|
|
if MacOS.version >= :lion
|
2017-10-15 02:28:32 +02:00
|
|
|
<<~EOS
|
|
|
|
Xcode can be installed from the App Store.
|
2017-03-18 17:02:08 +02:00
|
|
|
EOS
|
|
|
|
else
|
2017-10-15 02:28:32 +02:00
|
|
|
<<~EOS
|
|
|
|
Xcode can be installed from #{Formatter.url("https://developer.apple.com/download/more/")}.
|
2017-03-18 17:02:08 +02:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
else
|
|
|
|
generic_blacklisted_reason(name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|