aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/os/mac/missing_formula.rb
blob: ea6d50112a72f418e3b7f8cd8096f9184b6c269d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Homebrew
  module MissingFormula
    class << self
      def blacklisted_reason(name)
        case name.downcase
        when "xcode"
          if MacOS.version >= :lion
            <<~EOS
              Xcode can be installed from the App Store.
            EOS
          else
            <<~EOS
              Xcode can be installed from #{Formatter.url("https://developer.apple.com/download/more/")}.
            EOS
          end
        else
          generic_blacklisted_reason(name)
        end
      end
    end
  end
end