The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.
"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.
The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Anything that calls `xcodebuild` needs a full install of XCode.app. Two
formulae ommitted from this patch:
- `fuse4x_kext`: Everything that depends on the kernel extension can be
compiled by the CLT. Therefore, this formula is bottled and XCode is only
needed to produce the bottles.
- `graphviz`: XCode is only used to create GraphViz.app which is not used by
any of the things which depend on `graphviz`. Creating the app should be
made into an option.
The compiler setting in the xcodeproj is overridden by the CC setting in the environment. This is a bit insane IMO since the xcodeproj itself has detailed decisions about what tools to use.
FixesHomebrew/homebrew#6406.