From 1e638331adfd92d8552449066d14e79f66f30bef Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 23 May 2014 13:11:22 -0500 Subject: [PATCH] Try to match unused symbol deps last --- Library/Homebrew/dependency_collector.rb | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Library/Homebrew/dependency_collector.rb b/Library/Homebrew/dependency_collector.rb index c25989db3d..295bad80c7 100644 --- a/Library/Homebrew/dependency_collector.rb +++ b/Library/Homebrew/dependency_collector.rb @@ -98,14 +98,10 @@ class DependencyCollector def parse_symbol_spec(spec, tags) case spec - when :autoconf, :automake, :bsdmake, :libtool, :libltdl + when :autoconf, :automake, :bsdmake, :libtool # Xcode no longer provides autotools or some other build tools autotools_dep(spec, tags) when :x11 then X11Dependency.new(spec.to_s, tags) - when :cairo, :fontconfig, :freetype, :libpng, :pixman - # We no longer use X11 proxy deps, but we support the symbols - # for backwards compatibility. - Dependency.new(spec.to_s, tags) when :xcode then XcodeDependency.new(tags) when :macos then MinimumMacOSRequirement.new(tags) when :mysql then MysqlDependency.new(tags) @@ -122,6 +118,11 @@ class DependencyCollector when :ld64 then LD64Dependency.new if MacOS.version < :leopard when :ant then ant_dep(spec, tags) when :clt # deprecated + when :cairo, :fontconfig, :freetype, :libpng, :pixman # deprecated + Dependency.new(spec.to_s, tags) + when :libltdl # deprecated + tags << :run + Dependency.new("libtool", tags) else raise ArgumentError, "Unsupported special dependency #{spec.inspect}" end @@ -136,11 +137,6 @@ class DependencyCollector end def autotools_dep(spec, tags) - if spec == :libltdl - spec = :libtool - tags << :run - end - tags << :build unless tags.include? :run Dependency.new(spec.to_s, tags) end