Add ant dependency

Closes Homebrew/homebrew#23484.
Closes Homebrew/homebrew#23494.
Closes Homebrew/homebrew#23681.
This commit is contained in:
Jack Nagel 2013-10-28 14:44:20 -05:00
parent 64b472788a
commit 076df32be3

View File

@ -109,6 +109,7 @@ class DependencyCollector
when :python3 then PythonDependency.new("3", tags)
# Tiger's ld is too old to properly link some software
when :ld64 then LD64Dependency.new if MacOS.version < :leopard
when :ant then ant_dep(spec, tags)
else
raise "Unsupported special dependency #{spec.inspect}"
end
@ -141,6 +142,13 @@ class DependencyCollector
end
end
def ant_dep(spec, tags)
if MacOS.version >= :mavericks
tags << :build
Dependency.new(spec.to_s, tags)
end
end
def resource_dep(spec, tags)
tags << :build
strategy = spec.download_strategy