autobuild 1.5.7 → 1.5.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ == Version 1.5.8
2
+ * fix major issue while setting up dependencies
3
+ * small 1.8/1.9 compatibility fix in Autotools#use
4
+ * small backward compatibility fix w.r.t. Configurable.builddir
5
+
1
6
  == Version 1.5.7
2
7
  * the "importer" package will now rebuild if the main prefix is deleted. It was
3
8
  previously not, which was leading to partial builds if the actual installation
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.7" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.8" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
  require 'autobuild/config'
@@ -22,7 +22,19 @@ module Autobuild
22
22
  #
23
23
  class Configurable < Package
24
24
  class << self
25
- attr_reader :builddir
25
+ def builddir
26
+ if @builddir
27
+ @builddir
28
+ else
29
+ ancestors.each do |klass|
30
+ if result = klass.instance_variable_get(:@builddir)
31
+ return result
32
+ end
33
+ end
34
+ nil
35
+ end
36
+ end
37
+
26
38
  def builddir=(new)
27
39
  raise ConfigException, "absolute builddirs are not supported" if (Pathname.new(new).absolute?)
28
40
  raise ConfigException, "builddir must be non-nil and non-empty" if (new.nil? || new.empty?)
@@ -320,6 +320,7 @@ module Autobuild
320
320
  end
321
321
  task "#{name}-import" => "#{p}-import"
322
322
  task "#{name}-prepare" => "#{p}-prepare"
323
+ task "#{name}-build" => "#{p}-build"
323
324
  @dependencies << p
324
325
  end
325
326
  end
@@ -71,7 +71,13 @@ module Autobuild
71
71
  # pkg.use :automake => nil
72
72
  #
73
73
  def use(*programs)
74
- programs = *programs
74
+ programs =
75
+ if programs.size == 1
76
+ programs.first
77
+ else
78
+ programs
79
+ end
80
+
75
81
  if !programs.kind_of?(Hash)
76
82
  programs = Array[*programs].inject({}) do |programs, spec|
77
83
  programs[spec.first] = spec.last
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-26 00:00:00 +01:00
12
+ date: 2010-03-30 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency