autobuild 1.5.7 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Changes.txt +5 -0
- data/lib/autobuild.rb +1 -1
- data/lib/autobuild/configurable.rb +13 -1
- data/lib/autobuild/package.rb +1 -0
- data/lib/autobuild/packages/autotools.rb +7 -1
- metadata +2 -2
data/Changes.txt
CHANGED
@@ -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
|
data/lib/autobuild.rb
CHANGED
@@ -22,7 +22,19 @@ module Autobuild
|
|
22
22
|
#
|
23
23
|
class Configurable < Package
|
24
24
|
class << self
|
25
|
-
|
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?)
|
data/lib/autobuild/package.rb
CHANGED
@@ -71,7 +71,13 @@ module Autobuild
|
|
71
71
|
# pkg.use :automake => nil
|
72
72
|
#
|
73
73
|
def use(*programs)
|
74
|
-
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.
|
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-
|
12
|
+
date: 2010-03-30 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|