Library/Homebrew/dependency_collector.rb
# Define the languages that we can handle as external dependencies.
Define the languages that we can handle as external dependencies.
Define the languages that we can handle as external dependencies .
def resource_dep(spec, tags)
    tags << :build
    strategy = spec.download_strategy
    case
    when strategy <= CurlDownloadStrategy
      parse_url_spec(spec.url, tags)
    when strategy <= GitDownloadStrategy
      GitDependency.new(tags)
    when strategy <= MercurialDownloadStrategy
      MercurialDependency.new(tags)
    when strategy <= FossilDownloadStrategy
      Dependency.new("fossil", tags)
    when strategy <= BazaarDownloadStrategy
      Dependency.new("bazaar", tags)
    when strategy <= CVSDownloadStrategy
      Dependency.new("cvs", tags) unless MacOS::Xcode.provides_cvs?
    when strategy < AbstractDownloadStrategy
    else
      raise TypeError,
        "#{strategy.inspect} is not an AbstractDownloadStrategy subclass"
    end
  end
def resource_dep ( spec , tags ) tags << :build strategy = spec . download_strategy case when strategy <= CurlDownloadStrategy parse_url_spec ( spec . url , tags ) when strategy <= GitDownloadStrategy GitDependency . new ( tags ) when strategy <= MercurialDownloadStrategy MercurialDependency . new ( tags ) when strategy <= FossilDownloadStrategy Dependency . new ( "fossil" , tags ) when strategy <= BazaarDownloadStrategy Dependency . new ( "bazaar" , tags ) when strategy <= CVSDownloadStrategy Dependency . new ( "cvs" , tags ) unless MacOS :: Xcode . provides_cvs? when strategy < AbstractDownloadStrategy else raise TypeError , "#{strategy.inspect} is not an AbstractDownloadStrategy subclass" end end
Define the languages that we can handle as external dependencies.
Define the languages that we can handle as external dependencies .
# allow unknown strategies to pass through
spec
<not_specific>
tags
<not_specific>