Add special :xcode dependency
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
ac51c0ffbb
commit
4a948c4132
@ -70,6 +70,8 @@ private
|
|||||||
end
|
end
|
||||||
when :x11
|
when :x11
|
||||||
X11Dependency.new(tag)
|
X11Dependency.new(tag)
|
||||||
|
when :xcode
|
||||||
|
XCodeDependency.new
|
||||||
else
|
else
|
||||||
raise "Unsupported special dependency #{spec}"
|
raise "Unsupported special dependency #{spec}"
|
||||||
end
|
end
|
||||||
@ -322,3 +324,16 @@ class ConflictRequirement < Requirement
|
|||||||
not ARGV.force?
|
not ARGV.force?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class XCodeDependency < Requirement
|
||||||
|
def fatal?; true; end
|
||||||
|
|
||||||
|
def satisfied?
|
||||||
|
MacOS::Xcode.installed?
|
||||||
|
end
|
||||||
|
|
||||||
|
def message; <<-EOS.undent
|
||||||
|
XCode is required to compile this software.
|
||||||
|
EOS
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user