fix prepend not available in Ruby 1.8
Closes Homebrew/homebrew#46071. Closes Homebrew/homebrew#46069.
This commit is contained in:
parent
3a68b915eb
commit
74c0b1c56b
@ -1,4 +1,8 @@
|
|||||||
module DependencyCollectorCompat
|
require "dependency_collector"
|
||||||
|
|
||||||
|
class DependencyCollector
|
||||||
|
alias_method :_parse_symbol_spec, :parse_symbol_spec
|
||||||
|
|
||||||
def parse_symbol_spec(spec, tags)
|
def parse_symbol_spec(spec, tags)
|
||||||
case spec
|
case spec
|
||||||
when :clt
|
when :clt
|
||||||
@ -10,13 +14,9 @@ module DependencyCollectorCompat
|
|||||||
tags << :run
|
tags << :run
|
||||||
Dependency.new("libtool", tags)
|
Dependency.new("libtool", tags)
|
||||||
else
|
else
|
||||||
super(spec, tags)
|
_parse_symbol_spec(spec, tags)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
class DependencyCollector
|
|
||||||
prepend DependencyCollectorCompat
|
|
||||||
|
|
||||||
def autotools_dep(spec, tags)
|
def autotools_dep(spec, tags)
|
||||||
tags << :build unless tags.include? :run
|
tags << :build unless tags.include? :run
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user