Skip to content
Snippets Groups Projects
Commit 4a948c41 authored by Adam Vandenberg's avatar Adam Vandenberg Committed by Jack Nagel
Browse files

Add special :xcode dependency


Signed-off-by: default avatarJack Nagel <jacknagel@gmail.com>
parent ac51c0ff
No related branches found
No related tags found
No related merge requests found
......@@ -70,6 +70,8 @@ private
end
when :x11
X11Dependency.new(tag)
when :xcode
XCodeDependency.new
else
raise "Unsupported special dependency #{spec}"
end
......@@ -322,3 +324,16 @@ class ConflictRequirement < Requirement
not ARGV.force?
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment