autobuild 1.5.42 → 1.5.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ == Version 1.5.43
2
+ * cvs: accept the common importer options, such as :patches
3
+ (Patch from Charles Lesire-Cabaniols)
4
+ * autotools: regenerate the configure script on initial checkout
5
+ This is to workaround people that *do* have autogen scripts but
6
+ still include the configure scripts in their VCS. autotools is
7
+ pretty fragile, to it is much more robust to just regenerate
8
+ the whole thing in these cases.
9
+
1
10
  == Version 1.5.42
2
11
  * archive: fix support for using local files
3
12
  * git: make "switching branch" messages stand out a bit more
@@ -13,19 +13,19 @@ module Autobuild
13
13
  # to 'cvs' and can be configured by doing
14
14
  # Autobuild.programs['cvs'] = 'my_cvs_tool'
15
15
  def initialize(root_name, options = {})
16
- options = Kernel.validate_options options, :module => nil, :cvsup => '-dP', :cvsco => '-P'
16
+ cvsopts, common = Kernel.filter_options options, :module => nil, :cvsup => '-dP', :cvsco => '-P'
17
17
  @root = root_name
18
- @module = options[:module]
18
+ @module = cvsopts[:module]
19
19
  if !@module
20
20
  raise ArgumentError, "no module given"
21
21
  end
22
22
 
23
23
  @program = Autobuild.tool('cvs')
24
- @options_up = options[:cvsup] || '-dP'
24
+ @options_up = cvsopts[:cvsup] || '-dP'
25
25
  @options_up = Array[*@options_up]
26
- @options_co = options[:cvsco] || '-P'
26
+ @options_co = cvsopts[:cvsco] || '-P'
27
27
  @options_co = Array[*@options_co]
28
- super(options)
28
+ super(common)
29
29
  end
30
30
 
31
31
  # Array of options to give to 'cvs checkout'
@@ -95,7 +95,7 @@ module Autobuild
95
95
  super
96
96
 
97
97
  autodetect_needed_stages
98
- if using[:autoconf]
98
+ if using[:autoconf] || using[:autogen]
99
99
  FileUtils.rm_f File.join(srcdir, 'configure')
100
100
  end
101
101
 
@@ -110,10 +110,19 @@ module Autobuild
110
110
  FileUtils.rm_f configurestamp
111
111
  end
112
112
 
113
+ def import
114
+ @has_checked_out = !File.directory?(srcdir)
115
+ super
116
+ end
117
+
113
118
  def prepare
114
119
  super
115
120
  autodetect_needed_stages
116
121
 
122
+ if @has_checked_out
123
+ prepare_for_forced_build
124
+ end
125
+
117
126
  # Check if config.status has been generated with the
118
127
  # same options than the ones in configureflags
119
128
  #
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.5.42" unless defined? Autobuild::VERSION
2
+ VERSION = "1.5.43" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 87
4
+ hash: 85
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 42
10
- version: 1.5.42
9
+ - 43
10
+ version: 1.5.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sylvain Joyeux
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-14 00:00:00 Z
18
+ date: 2011-08-05 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake