From 26e4899fde482cafcb2d85212020a3b86882bf3e Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 12 Oct 2016 15:37:33 +0100 Subject: Deprecate apr requirement. It's not used on enough configurations now that there's little point in keeping it around. See e.g. `:autoconf` for prior art. --- Library/Homebrew/compat/dependency_collector.rb | 8 ++++++-- Library/Homebrew/compat/requirements.rb | 1 - 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/compat') diff --git a/Library/Homebrew/compat/dependency_collector.rb b/Library/Homebrew/compat/dependency_collector.rb index b18adc490..bd72c55d4 100644 --- a/Library/Homebrew/compat/dependency_collector.rb +++ b/Library/Homebrew/compat/dependency_collector.rb @@ -13,6 +13,10 @@ class DependencyCollector when :cairo, :fontconfig, :freetype, :libpng, :pixman output_deprecation(spec, tags) Dependency.new(spec.to_s, tags) + when :apr + # TODO: reenable in future when we've fixed a few of the audits. + # output_deprecation(spec, tags, "apr-util") + Dependency.new("apr-util", tags) when :libltdl tags << :run output_deprecation("libtool", tags) @@ -27,13 +31,13 @@ class DependencyCollector Dependency.new(spec.to_s, tags) end - def output_deprecation(dependency, tags) + def output_deprecation(dependency, tags, new_dependency = dependency) tags_string = if tags.length > 1 " => [:#{tags.join ", :"}]" elsif tags.length == 1 " => :#{tags.first}" end odeprecated "'depends_on :#{dependency}'", - "'depends_on \"#{dependency}\"#{tags_string}'" + "'depends_on \"#{new_dependency}\"#{tags_string}'" end end diff --git a/Library/Homebrew/compat/requirements.rb b/Library/Homebrew/compat/requirements.rb index 5c3c7a09c..77760d1dc 100644 --- a/Library/Homebrew/compat/requirements.rb +++ b/Library/Homebrew/compat/requirements.rb @@ -8,7 +8,6 @@ GPGRequirement = GPG2Requirement TeXDependency = TeXRequirement MercurialDependency = MercurialRequirement GitDependency = GitRequirement -AprDependency = AprRequirement FortranDependency = FortranRequirement JavaDependency = JavaRequirement LanguageModuleDependency = LanguageModuleRequirement -- cgit v1.2.3