ENV.x11 automatically if depends_on :x11

This commit is contained in:
Camillo Lugaresi 2012-06-08 04:09:29 +02:00 committed by Jack Nagel
parent 4c10eaf332
commit 4416955495

View File

@ -54,6 +54,8 @@ at_exit do
end
def install f
ENV.x11 if f.external_deps.any? { |dep| dep.is_a? X11Dependency }
f.recursive_deps.uniq.each do |dep|
dep = Formula.factory dep
if dep.keg_only?