lib/autobuild/packages/import.rb in autobuild-0.5.1 vs lib/autobuild/packages/import.rb in autobuild-0.6
- old
+ new
@@ -1,22 +1,24 @@
require 'autobuild/timestamps'
require 'autobuild/package'
module Autobuild
+ def self.import(spec, &proc)
+ ImporterPackage.new(spec, &proc)
+ end
+
class ImporterPackage < Package
def installstamp
"#{srcdir}/#{STAMPFILE}"
end
- def initialize(target, options)
- super(target, options)
+ def initialize(target)
+ super
source_tree srcdir, installstamp
file installstamp => srcdir do
touch_stamp installstamp
end
end
def prepare; end
-
- factory :import, ImporterPackage
end
end