From 6b001f1e3b365d5c9befbf3e8a81429d2f6781c2 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 3 Apr 2014 09:11:51 -0500 Subject: [PATCH] Add keg-only reason symbols for Xcode 4.3 and Xcode 5 Closes Homebrew/homebrew#28095. --- Library/Homebrew/formula_support.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 7efda3564d..587a5f3cec 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -14,6 +14,10 @@ class KegOnlyReason case @reason when :provided_pre_mountain_lion MacOS.version < :mountain_lion + when :provided_until_xcode43 + MacOS::Xcode.version < "4.3" + when :provided_until_xcode5 + MacOS::Xcode.version < "5.0" else true end @@ -32,6 +36,10 @@ class KegOnlyReason #{@explanation} EOS + when :provided_until_xcode43 + "Xcode provides this software prior to version 4.3.\n\n#{explanation}" + when :provided_until_xcode5 + "Xcode provides this software prior to version 5.\n\n#{explanation}" else @reason end.strip