2015-08-12 14:57:54 -04:00
|
|
|
# Represents a general requirement for utilities normally installed by Xcode,
|
|
|
|
# the CLT, or provided by the cctools formula. In particular, this requirement
|
|
|
|
# allows Homebrew to pull in the cctools formula and use its utilities to
|
|
|
|
# perform relocation operations on systems that do not have either Xcode or the
|
|
|
|
# CLT installed (but still want to install bottled formulae).
|
2015-05-29 20:07:33 -04:00
|
|
|
class CctoolsRequirement < Requirement
|
|
|
|
fatal true
|
2015-08-21 19:29:07 +01:00
|
|
|
default_formula "cctools"
|
2015-05-29 20:07:33 -04:00
|
|
|
|
2015-06-02 15:47:08 -04:00
|
|
|
satisfy(:build_env => false) do
|
2015-08-21 19:29:07 +01:00
|
|
|
MacOS::Xcode.installed? || MacOS::CLT.installed? || Formula["cctools"].installed?
|
2015-05-29 20:07:33 -04:00
|
|
|
end
|
|
|
|
end
|