Class | TTK::Strategies::PackageCollection |
In: |
lib/ttk/strategies/PackageCollection.rb
|
Parent: | Composite |
# File lib/ttk/strategies/PackageCollection.rb, line 14 def prologue super @dependencies = Pathname.new(@dependencies) @deps = YAML::load(@dependencies.read) @order = @deps.tsort_from(@target) @order.each do |dep| @symtbl["#{dep}_install_dir".to_sym] = "<<pwd>>/#{dep}" create(Import) do |t| t.name = dep t.import = "#{dep}.yml" t.symtbl[:configure_flags] = @deps[dep].map { |d| "--with-#{d}=<<pwd>>/#{d}" }.join(' ') t.fatal = true end end end