26 lines
588 B
Ruby
26 lines
588 B
Ruby
![]() |
module DependencyCollectorCompat
|
||
|
def parse_symbol_spec(spec, tags)
|
||
|
case spec
|
||
|
when :clt
|
||
|
when :autoconf, :automake, :bsdmake, :libtool
|
||
|
autotools_dep(spec, tags)
|
||
|
when :cairo, :fontconfig, :freetype, :libpng, :pixman
|
||
|
Dependency.new(spec.to_s, tags)
|
||
|
when :libltdl
|
||
|
tags << :run
|
||
|
Dependency.new("libtool", tags)
|
||
|
else
|
||
|
super(spec, tags)
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
|
||
|
class DependencyCollector
|
||
|
prepend DependencyCollectorCompat
|
||
|
|
||
|
def autotools_dep(spec, tags)
|
||
|
tags << :build unless tags.include? :run
|
||
|
Dependency.new(spec.to_s, tags)
|
||
|
end
|
||
|
end
|