Add "depends_on :clt"

This commit is contained in:
samueljohn 2013-01-23 00:26:30 -06:00 committed by Jack Nagel
parent 109145bf21
commit 620c063f8c
2 changed files with 17 additions and 0 deletions

View File

@ -86,6 +86,8 @@ private
PostgresqlInstalled.new(tag)
when :tex
TeXInstalled.new(tag)
when :clt
CLTDependency.new(tag)
else
raise "Unsupported special dependency #{spec}"
end

View File

@ -271,3 +271,18 @@ class TeXInstalled < Requirement
EOS
end
end
class CLTDependency < Requirement
fatal true
def satisfied?
MacOS::CLT.installed?
end
def message; <<-EOS.undent
The Command Line Tools for Xcode are required to compile this software.
The standalone package can be obtained from http://connect.apple.com,
or it can be installed via Xcode's preferences.
EOS
end
end