build-tool 0.1.4 → 0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data.tar.gz.sig +2 -3
  2. data/History.txt +29 -0
  3. data/Manifest.txt +39 -10
  4. data/README.txt +5 -8
  5. data/Rakefile +14 -6
  6. data/bin/build-tool +3 -35
  7. data/db/migrations/001_command_histories.rb +20 -0
  8. data/db/migrations/002_module_events.rb +24 -0
  9. data/db/migrations/003_command_histories_add_logfile.rb +19 -0
  10. data/lib/build-tool.rb +1 -1
  11. data/lib/build-tool/application.rb +103 -30
  12. data/lib/build-tool/build-system/autoconf.rb +69 -6
  13. data/lib/build-tool/build-system/base.rb +2 -25
  14. data/lib/build-tool/build-system/custom.rb +6 -19
  15. data/lib/build-tool/build-system/kdel10n.rb +39 -0
  16. data/lib/build-tool/build-system/none.rb +82 -0
  17. data/lib/build-tool/cfg/lexer.rb +133 -7
  18. data/lib/build-tool/cfg/lexer.rex +58 -6
  19. data/lib/build-tool/cfg/node.rb +13 -1
  20. data/lib/build-tool/cfg/parser.rb +519 -333
  21. data/lib/build-tool/cfg/parser.y +74 -11
  22. data/lib/build-tool/cfg/visitor.rb +182 -20
  23. data/lib/build-tool/command_actions.rb +202 -0
  24. data/lib/build-tool/commands.rb +193 -49
  25. data/lib/build-tool/commands/build.rb +13 -8
  26. data/lib/build-tool/commands/configure.rb +8 -3
  27. data/lib/build-tool/commands/environments.rb +4 -8
  28. data/lib/build-tool/commands/environments/list.rb +8 -0
  29. data/lib/build-tool/commands/fetch.rb +7 -2
  30. data/lib/build-tool/commands/gc.rb +53 -0
  31. data/lib/build-tool/commands/history.rb +111 -0
  32. data/lib/build-tool/commands/install.rb +6 -1
  33. data/lib/build-tool/commands/lsfeatures.rb +73 -0
  34. data/lib/build-tool/commands/modules.rb +3 -7
  35. data/lib/build-tool/commands/modules/info.rb +15 -6
  36. data/lib/build-tool/commands/modules/list.rb +10 -5
  37. data/lib/build-tool/commands/rebase.rb +6 -1
  38. data/lib/build-tool/commands/recipes.rb +3 -7
  39. data/lib/build-tool/configuration.rb +24 -1
  40. data/lib/build-tool/environment.rb +17 -3
  41. data/lib/build-tool/feature.rb +47 -0
  42. data/lib/build-tool/history.rb +173 -0
  43. data/lib/build-tool/module.rb +49 -90
  44. data/lib/build-tool/recipe.rb +5 -0
  45. data/lib/build-tool/vcs/archive.rb +140 -0
  46. data/lib/build-tool/vcs/base.rb +5 -5
  47. data/lib/build-tool/vcs/git-svn.rb +4 -0
  48. data/lib/build-tool/vcs/git.rb +4 -0
  49. data/lib/mj/logging.rb +11 -0
  50. data/recipes/{kdeqt4.6 → kde}/custom/qt/qtscriptgenerator/compile.sh +0 -0
  51. data/recipes/{kdeqt4.6 → kde}/custom/qt/qtscriptgenerator/configure.sh +0 -0
  52. data/recipes/{kdeqt4.6 → kde}/custom/qt/qtscriptgenerator/install.sh +0 -0
  53. data/recipes/kde/custom/scripting/pyqt4/compile.sh +10 -0
  54. data/recipes/kde/custom/scripting/pyqt4/configure.sh +14 -0
  55. data/recipes/kde/custom/scripting/pyqt4/install.sh +10 -0
  56. data/recipes/kde/custom/scripting/sip/compile.sh +10 -0
  57. data/recipes/kde/custom/scripting/sip/configure.sh +13 -0
  58. data/recipes/kde/custom/scripting/sip/install.sh +10 -0
  59. data/recipes/kde/files/xsession +8 -4
  60. data/recipes/kde/kde-bindings.recipe +22 -0
  61. data/recipes/kde/kde-core.recipe +104 -0
  62. data/recipes/kde/kde-devel.recipe +38 -0
  63. data/recipes/kde/kde-finance.recipe +17 -0
  64. data/recipes/kde/kde-graphics.recipe +27 -0
  65. data/recipes/kde/kde-kdevelop.recipe +116 -0
  66. data/recipes/kde/kde-l10n.recipe +14 -0
  67. data/recipes/kde/kde-multimedia.recipe +31 -0
  68. data/recipes/kde/kde-network.recipe +55 -0
  69. data/recipes/kde/kde-office.recipe +28 -0
  70. data/recipes/kde/kde-plasma.recipe +117 -0
  71. data/recipes/{kdeqt4.6/recipe → kde/kde-qt.recipe} +25 -57
  72. data/recipes/kde/kde-scripting.recipe +63 -0
  73. data/recipes/kde/kde-support.recipe +73 -0
  74. data/recipes/kde/kde-utils.recipe +22 -0
  75. data/recipes/kde/kde-webdev.recipe +41 -0
  76. data/recipes/kde/recipe +92 -532
  77. data/recipes/kde/recipe-local +58 -2
  78. data/recipes/kde/settings.yaml +17 -0
  79. data/recipes/kde43/recipe-local +58 -2
  80. data/test/test_configuration_parser.rb +76 -21
  81. data/test/test_feature.rb +34 -0
  82. data/test/test_history.rb +149 -0
  83. metadata +185 -30
  84. metadata.gz.sig +0 -0
  85. data/lib/build-tool/pluginbase.rb +0 -43
  86. data/recipes/kdeqt4.6/info.yaml +0 -7
  87. data/recipes/kdeqt4.6/recipe-local +0 -30
  88. data/recipes/kdeqt4.6/settings.yaml +0 -27
  89. data/tasks/rdoc.rake +0 -34
  90. data/test.rb +0 -28
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ hash: 15
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 2
9
+ version: "0.2"
5
10
  platform: ruby
6
11
  authors:
7
12
  - Michael Jansen
@@ -30,39 +35,152 @@ cert_chain:
30
35
  M3zOaQdtTmiQPBqNIsE=
31
36
  -----END CERTIFICATE-----
32
37
 
33
- date: 2009-12-11 00:00:00 +01:00
38
+ date: 2010-05-16 00:00:00 +02:00
34
39
  default_executable:
35
40
  dependencies:
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: logging
38
- type: :runtime
39
- version_requirement:
40
- version_requirements: !ruby/object:Gem::Requirement
43
+ prerelease: false
44
+ requirement: &id001 !ruby/object:Gem::Requirement
45
+ none: false
41
46
  requirements:
42
47
  - - ">="
43
48
  - !ruby/object:Gem::Version
49
+ hash: 27
50
+ segments:
51
+ - 1
52
+ - 2
53
+ - 2
44
54
  version: 1.2.2
45
- version:
55
+ type: :runtime
56
+ version_requirements: *id001
46
57
  - !ruby/object:Gem::Dependency
47
- name: hoe
58
+ name: sequel
59
+ prerelease: false
60
+ requirement: &id002 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ hash: 39
66
+ segments:
67
+ - 3
68
+ - 8
69
+ - 0
70
+ version: 3.8.0
48
71
  type: :runtime
49
- version_requirement:
50
- version_requirements: !ruby/object:Gem::Requirement
72
+ version_requirements: *id002
73
+ - !ruby/object:Gem::Dependency
74
+ name: sqlite3-ruby
75
+ prerelease: false
76
+ requirement: &id003 !ruby/object:Gem::Requirement
77
+ none: false
51
78
  requirements:
52
79
  - - ">="
53
80
  - !ruby/object:Gem::Version
54
- version: 2.3.3
55
- version:
81
+ hash: 11
82
+ segments:
83
+ - 1
84
+ - 2
85
+ version: "1.2"
86
+ type: :runtime
87
+ version_requirements: *id003
56
88
  - !ruby/object:Gem::Dependency
57
- name: hoe
89
+ name: hoe-debugging
90
+ prerelease: false
91
+ requirement: &id004 !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ hash: 21
97
+ segments:
98
+ - 1
99
+ - 0
100
+ - 1
101
+ version: 1.0.1
58
102
  type: :development
59
- version_requirement:
60
- version_requirements: !ruby/object:Gem::Requirement
103
+ version_requirements: *id004
104
+ - !ruby/object:Gem::Dependency
105
+ name: hoe-doofus
106
+ prerelease: false
107
+ requirement: &id005 !ruby/object:Gem::Requirement
108
+ none: false
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ hash: 23
113
+ segments:
114
+ - 1
115
+ - 0
116
+ - 0
117
+ version: 1.0.0
118
+ type: :development
119
+ version_requirements: *id005
120
+ - !ruby/object:Gem::Dependency
121
+ name: hoe-git
122
+ prerelease: false
123
+ requirement: &id006 !ruby/object:Gem::Requirement
124
+ none: false
61
125
  requirements:
62
126
  - - ">="
63
127
  - !ruby/object:Gem::Version
64
- version: 2.3.3
65
- version:
128
+ hash: 27
129
+ segments:
130
+ - 1
131
+ - 3
132
+ - 0
133
+ version: 1.3.0
134
+ type: :development
135
+ version_requirements: *id006
136
+ - !ruby/object:Gem::Dependency
137
+ name: racc
138
+ prerelease: false
139
+ requirement: &id007 !ruby/object:Gem::Requirement
140
+ none: false
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ hash: 11
145
+ segments:
146
+ - 1
147
+ - 4
148
+ - 6
149
+ version: 1.4.6
150
+ type: :development
151
+ version_requirements: *id007
152
+ - !ruby/object:Gem::Dependency
153
+ name: rexical
154
+ prerelease: false
155
+ requirement: &id008 !ruby/object:Gem::Requirement
156
+ none: false
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ hash: 31
161
+ segments:
162
+ - 1
163
+ - 0
164
+ - 4
165
+ version: 1.0.4
166
+ type: :development
167
+ version_requirements: *id008
168
+ - !ruby/object:Gem::Dependency
169
+ name: hoe
170
+ prerelease: false
171
+ requirement: &id009 !ruby/object:Gem::Requirement
172
+ none: false
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ hash: 23
177
+ segments:
178
+ - 2
179
+ - 6
180
+ - 0
181
+ version: 2.6.0
182
+ type: :development
183
+ version_requirements: *id009
66
184
  description: |-
67
185
  This project is inspired by kdesvn-build[http://kdesvn-build.kde.org/].
68
186
 
@@ -84,6 +202,9 @@ files:
84
202
  - README.txt
85
203
  - Rakefile
86
204
  - bin/build-tool
205
+ - db/migrations/001_command_histories.rb
206
+ - db/migrations/002_module_events.rb
207
+ - db/migrations/003_command_histories_add_logfile.rb
87
208
  - lib/build-tool.rb
88
209
  - lib/build-tool/GUI.rb
89
210
  - lib/build-tool/application.rb
@@ -91,6 +212,8 @@ files:
91
212
  - lib/build-tool/build-system/base.rb
92
213
  - lib/build-tool/build-system/cmake.rb
93
214
  - lib/build-tool/build-system/custom.rb
215
+ - lib/build-tool/build-system/kdel10n.rb
216
+ - lib/build-tool/build-system/none.rb
94
217
  - lib/build-tool/build-system/qt.rb
95
218
  - lib/build-tool/cfg/lexer.rb
96
219
  - lib/build-tool/cfg/lexer.rex
@@ -99,6 +222,7 @@ files:
99
222
  - lib/build-tool/cfg/parser.rb
100
223
  - lib/build-tool/cfg/parser.y
101
224
  - lib/build-tool/cfg/visitor.rb
225
+ - lib/build-tool/command_actions.rb
102
226
  - lib/build-tool/commands.rb
103
227
  - lib/build-tool/commands/build.rb
104
228
  - lib/build-tool/commands/configure.rb
@@ -108,9 +232,12 @@ files:
108
232
  - lib/build-tool/commands/environments/set.rb
109
233
  - lib/build-tool/commands/fetch.rb
110
234
  - lib/build-tool/commands/files.rb
235
+ - lib/build-tool/commands/gc.rb
111
236
  - lib/build-tool/commands/help.rb
237
+ - lib/build-tool/commands/history.rb
112
238
  - lib/build-tool/commands/info.rb
113
239
  - lib/build-tool/commands/install.rb
240
+ - lib/build-tool/commands/lsfeatures.rb
114
241
  - lib/build-tool/commands/modules.rb
115
242
  - lib/build-tool/commands/modules/info.rb
116
243
  - lib/build-tool/commands/modules/list.rb
@@ -123,13 +250,15 @@ files:
123
250
  - lib/build-tool/configuration.rb
124
251
  - lib/build-tool/environment.rb
125
252
  - lib/build-tool/errors.rb
253
+ - lib/build-tool/feature.rb
254
+ - lib/build-tool/history.rb
126
255
  - lib/build-tool/module.rb
127
- - lib/build-tool/pluginbase.rb
128
256
  - lib/build-tool/recipe.rb
129
257
  - lib/build-tool/repository.rb
130
258
  - lib/build-tool/server.rb
131
259
  - lib/build-tool/singleton.rb
132
260
  - lib/build-tool/sshkey.rb
261
+ - lib/build-tool/vcs/archive.rb
133
262
  - lib/build-tool/vcs/base.rb
134
263
  - lib/build-tool/vcs/git-svn.rb
135
264
  - lib/build-tool/vcs/git.rb
@@ -138,10 +267,35 @@ files:
138
267
  - lib/mj/tools/ssh.rb
139
268
  - lib/mj/tools/subprocess.rb
140
269
  - lib/mj/visitor.rb
270
+ - recipes/kde/custom/qt/qtscriptgenerator/compile.sh
271
+ - recipes/kde/custom/qt/qtscriptgenerator/configure.sh
272
+ - recipes/kde/custom/qt/qtscriptgenerator/install.sh
273
+ - recipes/kde/custom/scripting/pyqt4/compile.sh
274
+ - recipes/kde/custom/scripting/pyqt4/configure.sh
275
+ - recipes/kde/custom/scripting/pyqt4/install.sh
276
+ - recipes/kde/custom/scripting/sip/compile.sh
277
+ - recipes/kde/custom/scripting/sip/configure.sh
278
+ - recipes/kde/custom/scripting/sip/install.sh
141
279
  - recipes/kde/files/finish_installation.sh
142
280
  - recipes/kde/files/kde4.desktop
143
281
  - recipes/kde/files/xsession
144
282
  - recipes/kde/info.yaml
283
+ - recipes/kde/kde-bindings.recipe
284
+ - recipes/kde/kde-core.recipe
285
+ - recipes/kde/kde-devel.recipe
286
+ - recipes/kde/kde-finance.recipe
287
+ - recipes/kde/kde-graphics.recipe
288
+ - recipes/kde/kde-kdevelop.recipe
289
+ - recipes/kde/kde-l10n.recipe
290
+ - recipes/kde/kde-multimedia.recipe
291
+ - recipes/kde/kde-network.recipe
292
+ - recipes/kde/kde-office.recipe
293
+ - recipes/kde/kde-plasma.recipe
294
+ - recipes/kde/kde-qt.recipe
295
+ - recipes/kde/kde-scripting.recipe
296
+ - recipes/kde/kde-support.recipe
297
+ - recipes/kde/kde-utils.recipe
298
+ - recipes/kde/kde-webdev.recipe
145
299
  - recipes/kde/recipe
146
300
  - recipes/kde/recipe-local
147
301
  - recipes/kde/settings.yaml
@@ -149,24 +303,17 @@ files:
149
303
  - recipes/kde43/recipe
150
304
  - recipes/kde43/recipe-local
151
305
  - recipes/kde43/settings.yaml
152
- - recipes/kdeqt4.6/custom/qt/qtscriptgenerator/compile.sh
153
- - recipes/kdeqt4.6/custom/qt/qtscriptgenerator/configure.sh
154
- - recipes/kdeqt4.6/custom/qt/qtscriptgenerator/install.sh
155
- - recipes/kdeqt4.6/info.yaml
156
- - recipes/kdeqt4.6/recipe
157
- - recipes/kdeqt4.6/recipe-local
158
- - recipes/kdeqt4.6/settings.yaml
159
306
  - tasks/genfiles.rake
160
- - tasks/rdoc.rake
161
307
  - tasks/rspec.rake
162
- - test.rb
163
308
  - test/commands/test_build.rb
164
309
  - test/test_build_system.rb
165
310
  - test/test_cli.rb
166
311
  - test/test_command.rb
167
312
  - test/test_configuration_parser.rb
168
313
  - test/test_environment.rb
314
+ - test/test_feature.rb
169
315
  - test/test_helper.rb
316
+ - test/test_history.rb
170
317
  - test/test_module.rb
171
318
  - test/test_repository.rb
172
319
  - test/test_singleton.rb
@@ -174,7 +321,7 @@ files:
174
321
  - test/test_svn_parser.rb
175
322
  - test/test_vcs.rb
176
323
  has_rdoc: true
177
- homepage: http://build-tool.rubyforge.org
324
+ homepage: http://michael-jansen.biz/build-tool
178
325
  licenses: []
179
326
 
180
327
  post_install_message: " To start with build-tool try the following commands:\n > build-tool recipe list\n > build-tool recipe install <recipe>\n\n For documentation see http://michael-jansen.biz/build-tool\n\n"
@@ -184,21 +331,27 @@ rdoc_options:
184
331
  require_paths:
185
332
  - lib
186
333
  required_ruby_version: !ruby/object:Gem::Requirement
334
+ none: false
187
335
  requirements:
188
336
  - - ">="
189
337
  - !ruby/object:Gem::Version
338
+ hash: 3
339
+ segments:
340
+ - 0
190
341
  version: "0"
191
- version:
192
342
  required_rubygems_version: !ruby/object:Gem::Requirement
343
+ none: false
193
344
  requirements:
194
345
  - - ">="
195
346
  - !ruby/object:Gem::Version
347
+ hash: 3
348
+ segments:
349
+ - 0
196
350
  version: "0"
197
- version:
198
351
  requirements: []
199
352
 
200
353
  rubyforge_project: build-tool
201
- rubygems_version: 1.3.5
354
+ rubygems_version: 1.3.7
202
355
  signing_key:
203
356
  specification_version: 3
204
357
  summary: This project is inspired by kdesvn-build[http://kdesvn-build.kde.org/]
@@ -214,5 +367,7 @@ test_files:
214
367
  - test/commands/test_build.rb
215
368
  - test/test_cli.rb
216
369
  - test/test_module.rb
370
+ - test/test_history.rb
217
371
  - test/test_build_system.rb
218
372
  - test/test_configuration_parser.rb
373
+ - test/test_feature.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,43 +0,0 @@
1
- module BuildTool
2
-
3
-
4
- #
5
- # Mixin which implements basic plugin functionality.
6
- #
7
- module PluginBase
8
-
9
- # Class methods
10
- module ClassMethods
11
-
12
- def register_plugin( child )
13
- logger.debug "Registering plugin #{child}"
14
- child.registered_plugins << child
15
- end
16
-
17
- # Called if the class is inherited
18
- def inherited( child )
19
- child.register_plugin( child )
20
- end
21
-
22
- def registered_plugins
23
- @@registered_plugins
24
- end
25
-
26
- def registered_plugins=( val )
27
- @@registered_plugins = val
28
- end
29
-
30
- end
31
-
32
-
33
- # Mixin the class methods
34
- def self.included( base )
35
- base.extend( ClassMethods )
36
- base.registered_plugins = Array.new
37
- # puts "#{base} #{base.registered_plugins.inspect}"
38
- end
39
-
40
- end # class PluginBase
41
-
42
-
43
- end
@@ -1,7 +0,0 @@
1
- SHORT: "Build qt 4.6 from the kde developer repository."
2
- LONG: |
3
- Build qt 4.6 from the kde developer repository. The open source edition is build!
4
-
5
- WEBSITE: http://qt.gitorious.org/+kde-developers/qt/kde-qt
6
- REPOSITORY: git://gitorious.org/+kde-developers/qt/kde-qt.git
7
- BROWSE_REPOSITORY: http://qt.gitorious.org/+kde-developers/qt/kde-qt/trees/master
@@ -1,30 +0,0 @@
1
- #############################################################################
2
- # SSH-KEYS
3
- #############################################################################
4
- # Declare a ssh key
5
-
6
- # ssh-key "user(at)example.com"
7
- # file "~/.ssh/id_dsa"
8
- # end
9
-
10
- #############################################################################
11
- # REPOSITORIES
12
- #############################################################################
13
- # Uncomment these lines if you have a kde developer account.
14
- # See http://techbase.kde.org/Contribute/Get_a_SVN_Account
15
-
16
-
17
- #############################################################################
18
- # ENVIRONMENTS
19
- #############################################################################
20
- # Add some additional environment variables. The lines below are evaluated
21
- # AFTER the recipe is loaded. To play nice only use 'set' if you know what you
22
- # do.
23
- # environment default
24
- # end
25
-
26
- # module qt
27
- # build-system qt
28
- # option flags "-qt-gif -no-exceptions -fast -qdbus -nomake examples -nomake demos -no-phonon -developer-build --opensource"
29
- # end
30
- # end
@@ -1,27 +0,0 @@
1
- RECIPE: "kdeqt4.6"
2
-
3
- SETTINGS:
4
- # The work directory
5
- # BUILD_DIR/src -> sources
6
- # BUILD_DIR/bld -> builds
7
- # BUILD_DIR/log -> log files
8
- BUILD_DIR: "~/kdeqt/4.6"
9
- # Install prefix for qt
10
- QT_PREFIX: "/kdeqt/4.6/"
11
-
12
-
13
- # LIB_SUFFIX (""|32|64)
14
- # see `gcc -v`. Look for --libdir=/usr/lib....
15
- LIB_SUFFIX: "64"
16
- # See "man make".
17
- MAKEFLAGS: "-j2"
18
-
19
-
20
- # Default environment
21
- PATH: "/usr/X11R6/bin:/usr/bin:/bin"
22
- LD_LIBRARY_PATH: ""
23
- CMAKE_PREFIX_PATH: ""
24
- PKG_CONFIG_PATH: ""
25
- KDEDIRS: ""
26
- XDG_DATA_DIRS: "/usr/local/share:/usr/share:/share"
27
-