Add keg-only reason symbols for Xcode 4.3 and Xcode 5
Closes Homebrew/homebrew#28095.
This commit is contained in:
parent
d22ad92a84
commit
6b001f1e3b
@ -14,6 +14,10 @@ class KegOnlyReason
|
|||||||
case @reason
|
case @reason
|
||||||
when :provided_pre_mountain_lion
|
when :provided_pre_mountain_lion
|
||||||
MacOS.version < :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
|
else
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
@ -32,6 +36,10 @@ class KegOnlyReason
|
|||||||
|
|
||||||
#{@explanation}
|
#{@explanation}
|
||||||
EOS
|
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
|
else
|
||||||
@reason
|
@reason
|
||||||
end.strip
|
end.strip
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user