lib/autobuild/packages/autotools.rb in autobuild-1.0.1 vs lib/autobuild/packages/autotools.rb in autobuild-1.1

- old
+ new

@@ -94,12 +94,11 @@ end def depends_on(*packages) super stamps = packages.collect { |p| Package[p.to_s].installstamp } - #file "#{builddir}/config.status" => stamps - file buildstamp => stamps + file "#{builddir}/config.status" => stamps end def ensure_dependencies_installed dependencies.each do |pkg| Rake::Task[Package[pkg].installstamp].invoke @@ -131,10 +130,12 @@ file config_status => regen do ensure_dependencies_installed configure end - source_tree srcdir, /^#{Regexp.quote(builddir)}/ + source_tree srcdir do |pkg| + pkg.exclude << Regexp.new("^#{Regexp.quote(builddir)}") + end file buildstamp => [ srcdir, "#{builddir}/config.status" ] do ensure_dependencies_installed build end