autobuild 0.6.7 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changes.txt +6 -0
- data/README.txt +14 -3
- data/TODO +1 -2
- data/bin/autobuild +1 -1
- data/lib/autobuild.rb +1 -1
- data/lib/autobuild/import/tar.rb +8 -7
- metadata +12 -9
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
|
-
|
3
|
-
|
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
|
-
===
|
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
|
-
|
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
data/lib/autobuild.rb
CHANGED
data/lib/autobuild/import/tar.rb
CHANGED
@@ -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';
|
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?(
|
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
|
83
|
-
@cachefile =
|
83
|
+
if url.scheme == 'file'
|
84
|
+
@cachefile = url
|
84
85
|
else
|
85
|
-
@cachefile = File.join(cachedir, File.basename(
|
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
|
+
rubygems_version: 0.9.4
|
3
3
|
specification_version: 1
|
4
4
|
name: autobuild
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0
|
7
|
-
date: 2007-
|
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:
|
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
|
-
|
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.
|
118
|
+
version: 1.2.1
|
116
119
|
version:
|