Add "depends_on :clt"
This commit is contained in:
parent
109145bf21
commit
620c063f8c
@ -86,6 +86,8 @@ private
|
|||||||
PostgresqlInstalled.new(tag)
|
PostgresqlInstalled.new(tag)
|
||||||
when :tex
|
when :tex
|
||||||
TeXInstalled.new(tag)
|
TeXInstalled.new(tag)
|
||||||
|
when :clt
|
||||||
|
CLTDependency.new(tag)
|
||||||
else
|
else
|
||||||
raise "Unsupported special dependency #{spec}"
|
raise "Unsupported special dependency #{spec}"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -271,3 +271,18 @@ class TeXInstalled < Requirement
|
|||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user