Add depends_on :libpng as an alias to :x11

Some formulae ask for the x11 environment with ENV.libpng; mirror this
in the new dependency form.
This commit is contained in:
Camillo Lugaresi 2012-06-08 04:24:50 +02:00 committed by Jack Nagel
parent 1847595168
commit 4c10eaf332

View File

@ -29,7 +29,7 @@ class DependencyCollector
spec, tag = spec.shift if spec.is_a? Hash
dep = case spec
when :x11
when :x11, :libpng
X11Dependency.new(tag)
when String
if LANGUAGE_MODULES.include? tag