autobuild 0.6.7 → 1.0

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 CHANGED
@@ -1,3 +1,9 @@
1
+ == Version 1.0
2
+
3
+ * Releasing 1.0. Autobuild is stable, and is in daily use at my work
4
+ * Handle .tgz as valid tar extension (Closes #11722)
5
+ * Fix bug in the tar importer, which made checkout fail (Closes #11716)
6
+
1
7
  == Version 0.6.7
2
8
 
3
9
  * put install-stamp files into logdir, to clean up the installation prefix
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Copyright (c) 2006-2007 Sylvain Joyeux <sylvain.joyeux@m4x.org>
2
- * http://www.rubyforge.org/projects/autobuild [project page]
3
- * http://autobuild.rubyforge.org/autobuild [API documentation]
2
+ http://www.rubyforge.org/projects/autobuild
3
+ http://autobuild.rubyforge.org/autobuild
4
4
 
5
5
  This work is licensed under the GPLv2 license. See License.txt for details
6
6
 
@@ -103,8 +103,19 @@ and is set via <tt>package.importer = my_importer</tt>. An importer +foo+ is def
103
103
  Autobuild::FooImporter and defines a Autobuild.foo method which creates a new importer object.
104
104
  Importer classes files are in <tt>lib/autobuild/import/</tt>
105
105
 
106
- === CVS
106
+ === Tar
107
+ package.importer = tar(uri[, options])
108
+
109
+ Downloads a tarfile at +uri+ and saves it into a local cache directory.
110
+ The cache directory can be set in the +options+ hash
111
+ package.importer = tar(uri, :cachedir = '/tmp')
112
+
113
+ It is "#{Autobuild.prefix}/cache" by default. The known URI schemes are file://
114
+ for local files and http:// or ftp:// for remote files. There is currently no
115
+ way to set passive mode on FTP, since the standard open-uri library does not
116
+ allow that.
107
117
 
118
+ === CVS
108
119
  package.importer = cvs(cvsroot, module[, options])
109
120
 
110
121
  Where +options+ is an option hash. See also Autobuild::CVSImporter and Autobuild.cvs
data/TODO CHANGED
@@ -1,8 +1,7 @@
1
1
  TODO list for Autobuild
2
2
  * create HTML log pages
3
3
  * use Logger to be able to remove all non-error output
4
- * test patch support (which has not been used for long) and document it in the README
5
- * add a disable_packages attribute to Autobuild to disable the build of specific
4
+ add a disable_packages attribute to Autobuild to disable the build of specific
6
5
  packages. This would allow to use autobuild in scripts where the list of packages
7
6
  is asked to the user
8
7
  * add an --interactive option, which could ask to disable/enable packages before doing
data/bin/autobuild CHANGED
@@ -1,4 +1,4 @@
1
- #! /usr/bin/ruby
1
+ #! /usr/bin/env ruby
2
2
 
3
3
  require 'daemons'
4
4
  require 'autobuild'
data/lib/autobuild.rb CHANGED
@@ -3,6 +3,6 @@ require 'autobuild/reporting'
3
3
  require 'autobuild/package'
4
4
 
5
5
  module Autobuild
6
- VERSION = "0.6.7" unless defined? Autobuild::VERSION
6
+ VERSION = "1.0" unless defined? Autobuild::VERSION
7
7
  end
8
8
 
@@ -16,7 +16,7 @@ module Autobuild
16
16
  }
17
17
 
18
18
  # Known URI schemes for +url+
19
- VALID_URI_SCHEMES = [ 'file', 'http', 'ftp' ]
19
+ VALID_URI_SCHEMES = [ 'file', 'http', 'https', 'ftp' ]
20
20
 
21
21
  # Returns the unpack mode from the file name
22
22
  def self.url_to_mode(url)
@@ -26,7 +26,8 @@ module Autobuild
26
26
  end
27
27
  mode = case ext
28
28
  when '.tar'; Plain
29
- when '.gz'; Gzip
29
+ when '.gz'; Gzip
30
+ when '.tgz'; Gzip
30
31
  when '.bz2'; Bzip
31
32
  end
32
33
 
@@ -76,13 +77,13 @@ module Autobuild
76
77
  # Sets the source URL and update +cachefile+ and +mode+ attributes accordingly.
77
78
  def url=(url)
78
79
  @url = URI.parse(url)
79
- raise ConfigException, "invalid URL #{url}" unless VALID_URI_SCHEMES.include?(@url.scheme)
80
+ raise ConfigException, "invalid URL #{url}" unless VALID_URI_SCHEMES.include?(url.scheme)
80
81
 
81
82
  @mode = TarImporter.url_to_mode(url)
82
- if @url.scheme == 'file'
83
- @cachefile = @url
83
+ if url.scheme == 'file'
84
+ @cachefile = url
84
85
  else
85
- @cachefile = File.join(cachedir, File.basename(@url.path))
86
+ @cachefile = File.join(cachedir, File.basename(url.path))
86
87
  end
87
88
  end
88
89
 
@@ -105,7 +106,7 @@ module Autobuild
105
106
  end
106
107
 
107
108
  def update(package) # :nodoc:
108
- checkout if update_cache
109
+ checkout(package) if update_cache
109
110
  rescue OpenURI::HTTPError
110
111
  raise Autobuild::Exception.new(package.name, :import)
111
112
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.2
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: autobuild
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.6.7
7
- date: 2007-05-05 00:00:00 +02:00
6
+ version: "1.0"
7
+ date: 2007-06-22 00:00:00 +02:00
8
8
  summary: Rake-based utility to build and install multiple packages with dependencies
9
9
  require_paths:
10
10
  - lib
11
11
  email: sylvain.joyeux@m4x.org
12
- homepage: "* http://www.rubyforge.org/projects/autobuild [project page]"
12
+ homepage: http://www.rubyforge.org/projects/autobuild
13
13
  rubyforge_project: autobuild
14
14
  description: Autobuild config files are Ruby scripts which configure rake to * imports the package from a SCM or (optionnaly) updates it * configures it. This phase can handle code generation, configuration (for instance for autotools-based packages), ... * build * install It takes the dependencies between packages into account in its build process, updates the needed environment variables (+PKG_CONFIG_PATH+, +PATH+, +LD_LIBRARY_PATH+, ...) == WARNING for 0.5 users Old configuration files used with autobuild 0.5 aren't accepted by Autobuild 0.6. Since 0.6, Autobuild uses Ruby for configuration (just like rake does)
15
15
  autorequire:
@@ -67,10 +67,13 @@ test_files:
67
67
  - test/test_subcommand.rb
68
68
  - test/test_import_svn.rb
69
69
  - test/test_import_cvs.rb
70
- rdoc_options: []
71
-
72
- extra_rdoc_files: []
73
-
70
+ rdoc_options:
71
+ - --main
72
+ - README.txt
73
+ extra_rdoc_files:
74
+ - Changes.txt
75
+ - Manifest.txt
76
+ - README.txt
74
77
  executables:
75
78
  - autobuild
76
79
  extensions: []
@@ -112,5 +115,5 @@ dependencies:
112
115
  requirements:
113
116
  - - ">="
114
117
  - !ruby/object:Gem::Version
115
- version: 1.2.0
118
+ version: 1.2.1
116
119
  version: