autobuild 0.6 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. data/CHANGES +21 -0
  2. data/Manifest.txt +34 -0
  3. data/{README → README.txt} +0 -0
  4. data/Rakefile +13 -156
  5. data/bin/autobuild +3 -1
  6. data/lib/autobuild/import/cvs.rb +8 -2
  7. data/lib/autobuild/import/svn.rb +6 -0
  8. data/lib/autobuild/packages/autotools.rb +2 -1
  9. data/lib/autobuild/packages/genom.rb +35 -7
  10. data/lib/autobuild/packages/import.rb +1 -2
  11. data/lib/autobuild/packages/pkgconfig.rb +24 -0
  12. data/lib/autobuild/packages/ruby.rb +53 -0
  13. data/lib/autobuild/pkgconfig.rb +43 -0
  14. data/lib/autobuild/reporting.rb +1 -1
  15. data/lib/autobuild/subcommand.rb +3 -0
  16. data/lib/autobuild/timestamps.rb +4 -4
  17. data/samples/demo.rb +25 -0
  18. data/test/data/cvsroot.tar +0 -0
  19. data/test/data/svnroot.tar +0 -0
  20. data/test/data/tarimport.tar.gz +0 -0
  21. data/test/test_import_svn.rb +1 -1
  22. data/test/test_subcommand.rb +6 -3
  23. metadata +40 -369
  24. data/doc/classes/Autobuild.html +0 -557
  25. data/doc/classes/Autobuild.src/M000005.html +0 -31
  26. data/doc/classes/Autobuild.src/M000006.html +0 -47
  27. data/doc/classes/Autobuild.src/M000007.html +0 -18
  28. data/doc/classes/Autobuild.src/M000008.html +0 -18
  29. data/doc/classes/Autobuild.src/M000009.html +0 -18
  30. data/doc/classes/Autobuild.src/M000010.html +0 -18
  31. data/doc/classes/Autobuild.src/M000011.html +0 -18
  32. data/doc/classes/Autobuild.src/M000012.html +0 -18
  33. data/doc/classes/Autobuild.src/M000013.html +0 -25
  34. data/doc/classes/Autobuild.src/M000014.html +0 -19
  35. data/doc/classes/Autobuild.src/M000015.html +0 -19
  36. data/doc/classes/Autobuild.src/M000016.html +0 -16
  37. data/doc/classes/Autobuild.src/M000017.html +0 -20
  38. data/doc/classes/Autobuild.src/M000018.html +0 -18
  39. data/doc/classes/Autobuild.src/M000019.html +0 -52
  40. data/doc/classes/Autobuild.src/M000020.html +0 -44
  41. data/doc/classes/Autobuild.src/M000021.html +0 -19
  42. data/doc/classes/Autobuild.src/M000022.html +0 -19
  43. data/doc/classes/Autobuild.src/M000023.html +0 -20
  44. data/doc/classes/Autobuild.src/M000024.html +0 -22
  45. data/doc/classes/Autobuild.src/M000033.html +0 -31
  46. data/doc/classes/Autobuild.src/M000034.html +0 -47
  47. data/doc/classes/Autobuild.src/M000035.html +0 -18
  48. data/doc/classes/Autobuild.src/M000036.html +0 -18
  49. data/doc/classes/Autobuild.src/M000037.html +0 -18
  50. data/doc/classes/Autobuild.src/M000038.html +0 -18
  51. data/doc/classes/Autobuild.src/M000039.html +0 -18
  52. data/doc/classes/Autobuild.src/M000040.html +0 -18
  53. data/doc/classes/Autobuild.src/M000041.html +0 -25
  54. data/doc/classes/Autobuild.src/M000042.html +0 -19
  55. data/doc/classes/Autobuild.src/M000043.html +0 -19
  56. data/doc/classes/Autobuild.src/M000044.html +0 -16
  57. data/doc/classes/Autobuild.src/M000045.html +0 -20
  58. data/doc/classes/Autobuild.src/M000046.html +0 -18
  59. data/doc/classes/Autobuild.src/M000047.html +0 -52
  60. data/doc/classes/Autobuild.src/M000048.html +0 -44
  61. data/doc/classes/Autobuild.src/M000049.html +0 -19
  62. data/doc/classes/Autobuild.src/M000050.html +0 -19
  63. data/doc/classes/Autobuild.src/M000051.html +0 -20
  64. data/doc/classes/Autobuild.src/M000052.html +0 -22
  65. data/doc/classes/Autobuild/Autotools.html +0 -329
  66. data/doc/classes/Autobuild/Autotools.src/M000055.html +0 -20
  67. data/doc/classes/Autobuild/Autotools.src/M000056.html +0 -20
  68. data/doc/classes/Autobuild/Autotools.src/M000057.html +0 -16
  69. data/doc/classes/Autobuild/Autotools.src/M000058.html +0 -16
  70. data/doc/classes/Autobuild/Autotools.src/M000059.html +0 -22
  71. data/doc/classes/Autobuild/Autotools.src/M000060.html +0 -29
  72. data/doc/classes/Autobuild/Autotools.src/M000061.html +0 -21
  73. data/doc/classes/Autobuild/Autotools.src/M000062.html +0 -20
  74. data/doc/classes/Autobuild/Autotools.src/M000063.html +0 -32
  75. data/doc/classes/Autobuild/Autotools.src/M000083.html +0 -20
  76. data/doc/classes/Autobuild/Autotools.src/M000084.html +0 -20
  77. data/doc/classes/Autobuild/Autotools.src/M000085.html +0 -16
  78. data/doc/classes/Autobuild/Autotools.src/M000086.html +0 -16
  79. data/doc/classes/Autobuild/Autotools.src/M000087.html +0 -22
  80. data/doc/classes/Autobuild/Autotools.src/M000088.html +0 -29
  81. data/doc/classes/Autobuild/Autotools.src/M000089.html +0 -21
  82. data/doc/classes/Autobuild/Autotools.src/M000090.html +0 -20
  83. data/doc/classes/Autobuild/Autotools.src/M000091.html +0 -32
  84. data/doc/classes/Autobuild/CVSImporter.html +0 -156
  85. data/doc/classes/Autobuild/CVSImporter.src/M000036.html +0 -26
  86. data/doc/classes/Autobuild/CVSImporter.src/M000037.html +0 -18
  87. data/doc/classes/Autobuild/CVSImporter.src/M000064.html +0 -26
  88. data/doc/classes/Autobuild/CVSImporter.src/M000065.html +0 -18
  89. data/doc/classes/Autobuild/CommandNotFound.html +0 -119
  90. data/doc/classes/Autobuild/ConfigException.html +0 -119
  91. data/doc/classes/Autobuild/DarcsImporter.html +0 -139
  92. data/doc/classes/Autobuild/DarcsImporter.src/M000044.html +0 -20
  93. data/doc/classes/Autobuild/DarcsImporter.src/M000072.html +0 -20
  94. data/doc/classes/Autobuild/Exception.html +0 -233
  95. data/doc/classes/Autobuild/Exception.src/M000087.html +0 -16
  96. data/doc/classes/Autobuild/Exception.src/M000088.html +0 -16
  97. data/doc/classes/Autobuild/Exception.src/M000089.html +0 -18
  98. data/doc/classes/Autobuild/Exception.src/M000090.html +0 -24
  99. data/doc/classes/Autobuild/Exception.src/M000115.html +0 -16
  100. data/doc/classes/Autobuild/Exception.src/M000116.html +0 -16
  101. data/doc/classes/Autobuild/Exception.src/M000117.html +0 -18
  102. data/doc/classes/Autobuild/Exception.src/M000118.html +0 -24
  103. data/doc/classes/Autobuild/GenomModule.html +0 -275
  104. data/doc/classes/Autobuild/GenomModule.src/M000091.html +0 -19
  105. data/doc/classes/Autobuild/GenomModule.src/M000092.html +0 -21
  106. data/doc/classes/Autobuild/GenomModule.src/M000093.html +0 -16
  107. data/doc/classes/Autobuild/GenomModule.src/M000094.html +0 -18
  108. data/doc/classes/Autobuild/GenomModule.src/M000095.html +0 -27
  109. data/doc/classes/Autobuild/GenomModule.src/M000096.html +0 -24
  110. data/doc/classes/Autobuild/GenomModule.src/M000097.html +0 -19
  111. data/doc/classes/Autobuild/GenomModule.src/M000098.html +0 -36
  112. data/doc/classes/Autobuild/GenomModule.src/M000119.html +0 -19
  113. data/doc/classes/Autobuild/GenomModule.src/M000120.html +0 -21
  114. data/doc/classes/Autobuild/GenomModule.src/M000121.html +0 -16
  115. data/doc/classes/Autobuild/GenomModule.src/M000122.html +0 -18
  116. data/doc/classes/Autobuild/GenomModule.src/M000123.html +0 -27
  117. data/doc/classes/Autobuild/GenomModule.src/M000124.html +0 -24
  118. data/doc/classes/Autobuild/GenomModule.src/M000125.html +0 -19
  119. data/doc/classes/Autobuild/GenomModule.src/M000126.html +0 -36
  120. data/doc/classes/Autobuild/Import.html +0 -131
  121. data/doc/classes/Autobuild/Import.src/M000033.html +0 -18
  122. data/doc/classes/Autobuild/Import.src/M000061.html +0 -18
  123. data/doc/classes/Autobuild/Importer.html +0 -154
  124. data/doc/classes/Autobuild/Importer.src/M000034.html +0 -18
  125. data/doc/classes/Autobuild/Importer.src/M000035.html +0 -38
  126. data/doc/classes/Autobuild/Importer.src/M000062.html +0 -18
  127. data/doc/classes/Autobuild/Importer.src/M000063.html +0 -38
  128. data/doc/classes/Autobuild/ImporterPackage.html +0 -171
  129. data/doc/classes/Autobuild/ImporterPackage.src/M000099.html +0 -18
  130. data/doc/classes/Autobuild/ImporterPackage.src/M000100.html +0 -22
  131. data/doc/classes/Autobuild/ImporterPackage.src/M000101.html +0 -16
  132. data/doc/classes/Autobuild/ImporterPackage.src/M000127.html +0 -18
  133. data/doc/classes/Autobuild/ImporterPackage.src/M000128.html +0 -22
  134. data/doc/classes/Autobuild/ImporterPackage.src/M000129.html +0 -16
  135. data/doc/classes/Autobuild/Interpolator.html +0 -227
  136. data/doc/classes/Autobuild/Interpolator.src/M000039.html +0 -18
  137. data/doc/classes/Autobuild/Interpolator.src/M000040.html +0 -21
  138. data/doc/classes/Autobuild/Interpolator.src/M000041.html +0 -45
  139. data/doc/classes/Autobuild/Interpolator.src/M000042.html +0 -39
  140. data/doc/classes/Autobuild/Interpolator.src/M000043.html +0 -29
  141. data/doc/classes/Autobuild/Interpolator.src/M000067.html +0 -18
  142. data/doc/classes/Autobuild/Interpolator.src/M000068.html +0 -21
  143. data/doc/classes/Autobuild/Interpolator.src/M000069.html +0 -45
  144. data/doc/classes/Autobuild/Interpolator.src/M000070.html +0 -39
  145. data/doc/classes/Autobuild/Interpolator.src/M000071.html +0 -29
  146. data/doc/classes/Autobuild/MailReporter.html +0 -207
  147. data/doc/classes/Autobuild/MailReporter.src/M000045.html +0 -24
  148. data/doc/classes/Autobuild/MailReporter.src/M000046.html +0 -21
  149. data/doc/classes/Autobuild/MailReporter.src/M000047.html +0 -20
  150. data/doc/classes/Autobuild/MailReporter.src/M000048.html +0 -18
  151. data/doc/classes/Autobuild/MailReporter.src/M000049.html +0 -42
  152. data/doc/classes/Autobuild/MailReporter.src/M000073.html +0 -24
  153. data/doc/classes/Autobuild/MailReporter.src/M000074.html +0 -21
  154. data/doc/classes/Autobuild/MailReporter.src/M000075.html +0 -20
  155. data/doc/classes/Autobuild/MailReporter.src/M000076.html +0 -18
  156. data/doc/classes/Autobuild/MailReporter.src/M000077.html +0 -42
  157. data/doc/classes/Autobuild/Package.html +0 -364
  158. data/doc/classes/Autobuild/Package.src/M000073.html +0 -16
  159. data/doc/classes/Autobuild/Package.src/M000074.html +0 -16
  160. data/doc/classes/Autobuild/Package.src/M000075.html +0 -16
  161. data/doc/classes/Autobuild/Package.src/M000076.html +0 -56
  162. data/doc/classes/Autobuild/Package.src/M000077.html +0 -16
  163. data/doc/classes/Autobuild/Package.src/M000078.html +0 -16
  164. data/doc/classes/Autobuild/Package.src/M000079.html +0 -28
  165. data/doc/classes/Autobuild/Package.src/M000080.html +0 -23
  166. data/doc/classes/Autobuild/Package.src/M000081.html +0 -19
  167. data/doc/classes/Autobuild/Package.src/M000082.html +0 -18
  168. data/doc/classes/Autobuild/Package.src/M000101.html +0 -16
  169. data/doc/classes/Autobuild/Package.src/M000102.html +0 -16
  170. data/doc/classes/Autobuild/Package.src/M000103.html +0 -16
  171. data/doc/classes/Autobuild/Package.src/M000104.html +0 -56
  172. data/doc/classes/Autobuild/Package.src/M000105.html +0 -16
  173. data/doc/classes/Autobuild/Package.src/M000106.html +0 -16
  174. data/doc/classes/Autobuild/Package.src/M000107.html +0 -28
  175. data/doc/classes/Autobuild/Package.src/M000108.html +0 -23
  176. data/doc/classes/Autobuild/Package.src/M000109.html +0 -19
  177. data/doc/classes/Autobuild/Package.src/M000110.html +0 -18
  178. data/doc/classes/Autobuild/PackageException.html +0 -145
  179. data/doc/classes/Autobuild/PackageException.src/M000050.html +0 -16
  180. data/doc/classes/Autobuild/PackageException.src/M000078.html +0 -16
  181. data/doc/classes/Autobuild/Reporter.html +0 -158
  182. data/doc/classes/Autobuild/Reporter.src/M000053.html +0 -16
  183. data/doc/classes/Autobuild/Reporter.src/M000054.html +0 -16
  184. data/doc/classes/Autobuild/Reporter.src/M000081.html +0 -16
  185. data/doc/classes/Autobuild/Reporter.src/M000082.html +0 -16
  186. data/doc/classes/Autobuild/Reporting.html +0 -224
  187. data/doc/classes/Autobuild/Reporting.src/M000025.html +0 -24
  188. data/doc/classes/Autobuild/Reporting.src/M000026.html +0 -18
  189. data/doc/classes/Autobuild/Reporting.src/M000027.html +0 -18
  190. data/doc/classes/Autobuild/Reporting.src/M000028.html +0 -18
  191. data/doc/classes/Autobuild/Reporting.src/M000029.html +0 -18
  192. data/doc/classes/Autobuild/Reporting.src/M000053.html +0 -24
  193. data/doc/classes/Autobuild/Reporting.src/M000054.html +0 -18
  194. data/doc/classes/Autobuild/Reporting.src/M000055.html +0 -18
  195. data/doc/classes/Autobuild/Reporting.src/M000056.html +0 -18
  196. data/doc/classes/Autobuild/Reporting.src/M000057.html +0 -18
  197. data/doc/classes/Autobuild/SVN.html +0 -139
  198. data/doc/classes/Autobuild/SVN.src/M000038.html +0 -22
  199. data/doc/classes/Autobuild/SVN.src/M000066.html +0 -22
  200. data/doc/classes/Autobuild/SourceTreeTask.html +0 -150
  201. data/doc/classes/Autobuild/SourceTreeTask.src/M000083.html +0 -18
  202. data/doc/classes/Autobuild/SourceTreeTask.src/M000111.html +0 -18
  203. data/doc/classes/Autobuild/StdoutReporter.html +0 -160
  204. data/doc/classes/Autobuild/StdoutReporter.src/M000051.html +0 -18
  205. data/doc/classes/Autobuild/StdoutReporter.src/M000052.html +0 -18
  206. data/doc/classes/Autobuild/StdoutReporter.src/M000079.html +0 -18
  207. data/doc/classes/Autobuild/StdoutReporter.src/M000080.html +0 -18
  208. data/doc/classes/Autobuild/SubcommandFailed.html +0 -200
  209. data/doc/classes/Autobuild/SubcommandFailed.src/M000084.html +0 -16
  210. data/doc/classes/Autobuild/SubcommandFailed.src/M000085.html +0 -32
  211. data/doc/classes/Autobuild/SubcommandFailed.src/M000086.html +0 -20
  212. data/doc/classes/Autobuild/SubcommandFailed.src/M000112.html +0 -16
  213. data/doc/classes/Autobuild/SubcommandFailed.src/M000113.html +0 -32
  214. data/doc/classes/Autobuild/SubcommandFailed.src/M000114.html +0 -20
  215. data/doc/classes/Autobuild/Subprocess.html +0 -170
  216. data/doc/classes/Autobuild/Subprocess.src/M000030.html +0 -18
  217. data/doc/classes/Autobuild/Subprocess.src/M000031.html +0 -98
  218. data/doc/classes/Autobuild/Subprocess.src/M000058.html +0 -18
  219. data/doc/classes/Autobuild/Subprocess.src/M000059.html +0 -98
  220. data/doc/classes/Autobuild/Subprocess/Failed.html +0 -150
  221. data/doc/classes/Autobuild/Subprocess/Failed.src/M000032.html +0 -18
  222. data/doc/classes/Autobuild/Subprocess/Failed.src/M000060.html +0 -18
  223. data/doc/classes/Autobuild/TarImporter.html +0 -287
  224. data/doc/classes/Autobuild/TarImporter.src/M000064.html +0 -28
  225. data/doc/classes/Autobuild/TarImporter.src/M000065.html +0 -53
  226. data/doc/classes/Autobuild/TarImporter.src/M000066.html +0 -26
  227. data/doc/classes/Autobuild/TarImporter.src/M000067.html +0 -16
  228. data/doc/classes/Autobuild/TarImporter.src/M000068.html +0 -20
  229. data/doc/classes/Autobuild/TarImporter.src/M000069.html +0 -20
  230. data/doc/classes/Autobuild/TarImporter.src/M000070.html +0 -30
  231. data/doc/classes/Autobuild/TarImporter.src/M000092.html +0 -28
  232. data/doc/classes/Autobuild/TarImporter.src/M000093.html +0 -53
  233. data/doc/classes/Autobuild/TarImporter.src/M000094.html +0 -26
  234. data/doc/classes/Autobuild/TarImporter.src/M000095.html +0 -16
  235. data/doc/classes/Autobuild/TarImporter.src/M000096.html +0 -20
  236. data/doc/classes/Autobuild/TarImporter.src/M000097.html +0 -20
  237. data/doc/classes/Autobuild/TarImporter.src/M000098.html +0 -30
  238. data/doc/classes/Autobuild/UndefinedVariable.html +0 -174
  239. data/doc/classes/Autobuild/UndefinedVariable.src/M000071.html +0 -19
  240. data/doc/classes/Autobuild/UndefinedVariable.src/M000072.html +0 -18
  241. data/doc/classes/Autobuild/UndefinedVariable.src/M000099.html +0 -19
  242. data/doc/classes/Autobuild/UndefinedVariable.src/M000100.html +0 -18
  243. data/doc/classes/Hash.html +0 -152
  244. data/doc/classes/Hash.src/M000002.html +0 -26
  245. data/doc/classes/Hash.src/M000003.html +0 -23
  246. data/doc/classes/Hash.src/M000020.html +0 -26
  247. data/doc/classes/Hash.src/M000021.html +0 -23
  248. data/doc/classes/RMail.html +0 -111
  249. data/doc/classes/RMail/Message.html +0 -140
  250. data/doc/classes/RMail/Message.src/M000004.html +0 -25
  251. data/doc/classes/RMail/Message.src/M000028.html +0 -25
  252. data/doc/classes/TC_CVSImport.html +0 -180
  253. data/doc/classes/TC_CVSImport.src/M000025.html +0 -22
  254. data/doc/classes/TC_CVSImport.src/M000026.html +0 -21
  255. data/doc/classes/TC_CVSImport.src/M000027.html +0 -36
  256. data/doc/classes/TC_Config.html +0 -182
  257. data/doc/classes/TC_Config.src/M000006.html +0 -20
  258. data/doc/classes/TC_Config.src/M000007.html +0 -18
  259. data/doc/classes/TC_Config.src/M000008.html +0 -29
  260. data/doc/classes/TC_Config.src/M000009.html +0 -20
  261. data/doc/classes/TC_ConfigInterpolation.html +0 -198
  262. data/doc/classes/TC_ConfigInterpolation.src/M000002.html +0 -18
  263. data/doc/classes/TC_ConfigInterpolation.src/M000003.html +0 -18
  264. data/doc/classes/TC_ConfigInterpolation.src/M000004.html +0 -26
  265. data/doc/classes/TC_ConfigInterpolation.src/M000005.html +0 -24
  266. data/doc/classes/TC_SVNImport.html +0 -180
  267. data/doc/classes/TC_SVNImport.src/M000017.html +0 -22
  268. data/doc/classes/TC_SVNImport.src/M000018.html +0 -21
  269. data/doc/classes/TC_SVNImport.src/M000019.html +0 -43
  270. data/doc/classes/TC_Subcommand.html +0 -208
  271. data/doc/classes/TC_Subcommand.src/M000022.html +0 -31
  272. data/doc/classes/TC_Subcommand.src/M000023.html +0 -18
  273. data/doc/classes/TC_Subcommand.src/M000024.html +0 -30
  274. data/doc/classes/TC_TarImporter.html +0 -247
  275. data/doc/classes/TC_TarImporter.src/M000010.html +0 -28
  276. data/doc/classes/TC_TarImporter.src/M000011.html +0 -21
  277. data/doc/classes/TC_TarImporter.src/M000012.html +0 -20
  278. data/doc/classes/TC_TarImporter.src/M000013.html +0 -20
  279. data/doc/classes/TC_TarImporter.src/M000014.html +0 -26
  280. data/doc/classes/TC_TarImporter.src/M000015.html +0 -31
  281. data/doc/classes/TC_TarImporter.src/M000016.html +0 -24
  282. data/doc/classes/TestTools.html +0 -189
  283. data/doc/classes/TestTools.src/M000029.html +0 -19
  284. data/doc/classes/TestTools.src/M000030.html +0 -18
  285. data/doc/classes/TestTools.src/M000031.html +0 -25
  286. data/doc/classes/TestTools.src/M000032.html +0 -24
  287. data/doc/created.rid +0 -1
  288. data/doc/files/README.html +0 -378
  289. data/doc/files/demo_rb.html +0 -115
  290. data/doc/files/lib/autobuild/config_rb.html +0 -136
  291. data/doc/files/lib/autobuild/config_rb.src/M000001.html +0 -18
  292. data/doc/files/lib/autobuild/environment_rb.html +0 -101
  293. data/doc/files/lib/autobuild/exceptions_rb.html +0 -101
  294. data/doc/files/lib/autobuild/import/cvs_rb.html +0 -110
  295. data/doc/files/lib/autobuild/import/darcs_rb.html +0 -110
  296. data/doc/files/lib/autobuild/import/svn_rb.html +0 -109
  297. data/doc/files/lib/autobuild/import/tar_rb.html +0 -108
  298. data/doc/files/lib/autobuild/importer_rb.html +0 -109
  299. data/doc/files/lib/autobuild/loaders/config-interpolator_rb.html +0 -108
  300. data/doc/files/lib/autobuild/loaders/config_rb.html +0 -113
  301. data/doc/files/lib/autobuild/package_rb.html +0 -110
  302. data/doc/files/lib/autobuild/packages/autotools_rb.html +0 -112
  303. data/doc/files/lib/autobuild/packages/genom_rb.html +0 -109
  304. data/doc/files/lib/autobuild/packages/import_rb.html +0 -109
  305. data/doc/files/lib/autobuild/reporting_rb.html +0 -114
  306. data/doc/files/lib/autobuild/subcommand_rb.html +0 -108
  307. data/doc/files/lib/autobuild/timestamps_rb.html +0 -124
  308. data/doc/files/lib/autobuild_rb.html +0 -110
  309. data/doc/files/test/test_config_interpolation_rb.html +0 -111
  310. data/doc/files/test/test_config_rb.html +0 -111
  311. data/doc/files/test/test_import_cvs_rb.html +0 -119
  312. data/doc/files/test/test_import_svn_rb.html +0 -119
  313. data/doc/files/test/test_import_tar_rb.html +0 -120
  314. data/doc/files/test/test_subcommand_rb.html +0 -120
  315. data/doc/files/test/tools_rb.html +0 -110
  316. data/doc/fr_class_index.html +0 -26
  317. data/doc/fr_file_index.html +0 -27
  318. data/doc/fr_method_index.html +0 -26
  319. data/doc/index.html +0 -24
  320. data/doc/rdoc-style.css +0 -208
data/CHANGES CHANGED
@@ -1,5 +1,26 @@
1
1
  = Autobuild ChangeLog
2
2
 
3
+ == Version 0.6.2
4
+
5
+ Small changes
6
+
7
+ * added the Ruby package, which does an import and builds all C extensions
8
+ * added the pkgconfig package, which allows to use an already-installed package
9
+ if this packages can be found through pkg-config
10
+ * check that working copies that are already checked out are from the right
11
+ source (for CVS and Subversion)
12
+
13
+ == Version 0.6.1
14
+
15
+ Bugfixes
16
+
17
+ * fix dependency handling for Genom modules. In particular, we add
18
+ dependencies between the module generation and the installed
19
+ genom files (includes, canvas, and the genom executable). Information
20
+ is taken from the pkg-config file
21
+ * new package types: InstalledPkgConfig, to reuse pkg-config based packages
22
+ installed by another autobuild script
23
+
3
24
  == Version 0.6
4
25
 
5
26
  Use a Ruby-based DSL instead of YAML config files. It is waaaaaay more
data/Manifest.txt ADDED
@@ -0,0 +1,34 @@
1
+ bin/autobuild
2
+ CHANGES
3
+ lib/autobuild/config.rb
4
+ lib/autobuild/environment.rb
5
+ lib/autobuild/exceptions.rb
6
+ lib/autobuild/import/cvs.rb
7
+ lib/autobuild/import/darcs.rb
8
+ lib/autobuild/import/svn.rb
9
+ lib/autobuild/importer.rb
10
+ lib/autobuild/import/tar.rb
11
+ lib/autobuild/package.rb
12
+ lib/autobuild/packages/autotools.rb
13
+ lib/autobuild/packages/genom.rb
14
+ lib/autobuild/packages/import.rb
15
+ lib/autobuild/packages/pkgconfig.rb
16
+ lib/autobuild/packages/ruby.rb
17
+ lib/autobuild/pkgconfig.rb
18
+ lib/autobuild.rb
19
+ lib/autobuild/reporting.rb
20
+ lib/autobuild/subcommand.rb
21
+ lib/autobuild/timestamps.rb
22
+ Manifest.txt
23
+ Rakefile
24
+ README.txt
25
+ samples/demo.rb
26
+ test/data/cvsroot.tar
27
+ test/data/svnroot.tar
28
+ test/data/tarimport.tar.gz
29
+ test/test_import_cvs.rb
30
+ test/test_import_svn.rb
31
+ test/test_import_tar.rb
32
+ test/test_subcommand.rb
33
+ test/tools.rb
34
+ TODO
File without changes
data/Rakefile CHANGED
@@ -1,164 +1,21 @@
1
- # Rakefile for Autobuild
2
-
3
- # Copyright 2005 by Aslak Hellesoy (aslak.hellesoy@gmail.org)
4
- # All rights reserved.
5
-
6
- # This file is may be distributed under an MIT style license. See
7
- # MIT-LICENSE for details.
1
+ require 'rubygems'
2
+ require 'hoe'
8
3
 
9
4
  $:.unshift('lib')
10
- require 'meta_project'
11
- require 'rake/gempackagetask'
12
- require 'rake/contrib/rubyforgepublisher'
13
- require 'rake/contrib/xforge'
14
- require 'rake/clean'
15
- require 'rake/testtask'
16
- require 'rake/rdoctask'
17
-
18
- # Versioning scheme: MAJOR.MINOR.PATCH
19
- # MAJOR bumps when API is broken backwards
20
- # MINOR bumps when the API is broken backwards in a very slight/subtle (but not fatal) way
21
- # -OR when a new release is made and propaganda is sent out.
22
- # PATCH is bumped for every API addition and/or bugfix (ideally for every commit)
23
- # Later DamageControl can bump PATCH automatically.
24
- #
25
- # REMEMBER TO KEEP PKG_VERSION IN SYNC WITH THE CHANGES FILE!
26
- PKG_NAME = "autobuild"
27
- UNIX_NAME = "autobuild"
28
- PKG_VERSION = "0.6"
29
- PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
30
- PKG_FILES = FileList[
31
- 'bin/*',
32
- '[A-Z]*',
33
- 'lib/**/*.rb',
34
- 'doc/**/*'
35
- ]
36
5
 
37
- task :default => [:gem]
38
-
39
- # Create a task to build the RDOC documentation tree.
40
- rd = Rake::RDocTask.new("rdoc") do |rdoc|
41
- rdoc.rdoc_dir = 'html'
42
- rdoc.title = "Autobuild"
43
- rdoc.options << '--main' << 'README'
44
- rdoc.rdoc_files.include('README', 'CHANGES', 'TODO')
45
- rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
46
- rdoc.rdoc_files.exclude('doc/**/*_attrs.rdoc')
47
- end
48
-
49
- # ====================================================================
50
- # Create a task that will package the Rake software into distributable
51
- # tar, zip and gem files.
52
-
53
- spec = Gem::Specification.new do |s|
54
-
55
- #### Basic information.
56
-
57
- s.name = PKG_NAME
58
- s.version = PKG_VERSION
59
- s.summary = 'Rake-based utility to build and install multiple packages with dependencies'
60
- s.description = <<-EOF
6
+ Hoe.new('autobuild', "0.6.2") do |p|
7
+ p.author = "Sylvain Joyeux"
8
+ p.email = "sylvain.joyeux@m4x.org"
9
+ p.summary = 'Rake-based utility to build and install multiple packages with dependencies'
10
+ p.url = "http://autobuild.rubyforge.org"
11
+ p.description = <<-EOF
61
12
  Autobuild imports, configures, builds and installs various kinds of software packages.
62
13
  It can be used in software development to make sure that nothing is broken in the
63
14
  build process of a set of packages, or can be used as an automated installation tool.
64
- EOF
65
-
66
- #### Documentation and testing.
67
-
68
- s.has_rdoc = true
69
- s.extra_rdoc_files = rd.rdoc_files.reject { |fn| fn =~ /\.rb$/ }.to_a
70
- s.rdoc_options <<
71
- '--title' << 'Autobuild' <<
72
- '--main' << 'README'
73
-
74
- #### Author and project details.
75
-
76
- s.author = "Sylvain Joyeux"
77
- s.email = "sylvain.joyeux@m4x.org"
78
- s.homepage = "http://autobuild.rubyforge.org"
79
- s.rubyforge_project = "autobuild"
80
-
81
- #### Advanced project information
82
- s.platform = Gem::Platform::RUBY
83
- s.require_paths << "lib"
84
- s.add_dependency('rake', '>= 0.7.0')
85
- s.add_dependency('rmail')
86
- s.add_dependency('daemons')
87
- s.files = PKG_FILES.to_a
88
- s.test_files = FileList['test/*' ]
89
- s.executables = 'autobuild'
90
- end
91
-
92
- # Fix 1.8.4 - 1.8.3 issue
93
- class << spec
94
- def to_yaml
95
- out = super
96
- out = '--- ' + out unless out =~ /^---/
97
- out
98
- end
99
- end
100
-
101
- desc "Build Gem"
102
- Rake::GemPackageTask.new(spec) do |pkg|
103
- pkg.need_zip = true
104
- pkg.need_tar = true
15
+ EOF
16
+ p.changes = p.paragraphs_of("CHANGES", 1).join("\n\n")
17
+ p.extra_deps << ['rake', '>= 0.7.0']
18
+ p.extra_deps << ['rmail']
19
+ p.extra_deps << ['daemons']
105
20
  end
106
21
 
107
- # Support Tasks ------------------------------------------------------
108
-
109
- desc "Look for TODO and FIXME tags in the code"
110
- task :todo do
111
- Pathname.new(File.dirname(__FILE__)).egrep(/#.*(FIXME|TODO|TBD|DEPRECATED)/) do |match|
112
- puts match
113
- end
114
- end
115
-
116
- task :release => [:verify_env_vars, :release_files, :publish_doc, :tag] # :publish_news,
117
-
118
- task :verify_env_vars do
119
- raise "RUBYFORGE_USER environment variable not set!" unless ENV['RUBYFORGE_USER']
120
- raise "RUBYFORGE_PASSWORD environment variable not set!" unless ENV['RUBYFORGE_PASSWORD']
121
- end
122
-
123
- task :publish_doc do
124
- publisher = Rake::RubyForgePublisher.new(UNIX_NAME, ENV['RUBYFORGE_USER'])
125
- publisher.upload
126
- end
127
-
128
- desc "Release files on RubyForge"
129
- task :release_files => [:gem] do
130
- release_files = FileList[
131
- "pkg/#{PKG_FILE_NAME}.gem"
132
- ]
133
-
134
- Rake::XForge::Release.new(MetaProject::Project::XForge::RubyForge.new(UNIX_NAME)) do |release|
135
- # Never hardcode user name and password in the Rakefile!
136
- release.user_name = ENV['RUBYFORGE_USER']
137
- release.password = ENV['RUBYFORGE_PASSWORD']
138
- release.files = release_files.to_a
139
- release.release_name = "Autobuild #{PKG_VERSION}"
140
- # The rest of the options are defaults (among others, release_notes and release_changes, parsed from CHANGES)
141
- end
142
- end
143
-
144
- desc "Publish news on RubyForge"
145
- task :publish_news => [:gem] do
146
- release_files = FileList[
147
- "pkg/#{PKG_FILE_NAME}.gem"
148
- ]
149
-
150
- Rake::XForge::NewsPublisher.new(MetaProject::Project::XForge::RubyForge.new(UNIX_NAME)) do |news|
151
- # Never hardcode user name and password in the Rakefile!
152
- news.user_name = ENV['RUBYFORGE_USER']
153
- news.password = ENV['RUBYFORGE_PASSWORD']
154
- end
155
- end
156
-
157
- desc "Tag all the svn files with the latest release number (REL=x.y.z)"
158
- task :tag do
159
- puts "Tagging release"
160
- base_url = %{svn+ssh://#{RUBYFORGE_USER}@rubyforge.org/var/svn/autobuild}
161
- sh %{svn cp #{base_url}/trunk/autobuild #{base_url}/tags/release/#{PKG_VERSION}}
162
- end
163
-
164
-
data/bin/autobuild CHANGED
@@ -27,7 +27,9 @@ begin
27
27
  Reporting << MailReporter.new(Autobuild.mail)
28
28
  end
29
29
 
30
- ['import', 'prepare', 'build'].each do |phase|
30
+ targets = ['import']
31
+ targets += ['prepare', 'build'] if Autobuild.do_build
32
+ targets.each do |phase|
31
33
  if packages.empty?
32
34
  Rake::Task[phase].invoke
33
35
  else
@@ -23,9 +23,15 @@ module Autobuild
23
23
  private
24
24
 
25
25
  def update(package)
26
- Dir.chdir(package.srcdir) {
26
+ Dir.chdir(package.srcdir) do
27
+ root = File.open("#{package.srcdir}/CVS/Root") { |io| io.read }.chomp
28
+ mod = File.open("#{package.srcdir}/CVS/Repository") { |io| io.read }.chomp
29
+
30
+ if root != @root || mod != @module
31
+ raise ArgumentError, "checkout in #{package.srcdir} is from #{root}:#{mod}, was expecting #{@root}:#{@mod}"
32
+ end
27
33
  Subprocess.run(package.name, :import, @program, 'up', *@options_up)
28
- }
34
+ end
29
35
  end
30
36
 
31
37
  def checkout(package)
@@ -15,6 +15,12 @@ module Autobuild
15
15
 
16
16
  def update(package)
17
17
  Dir.chdir(package.srcdir) {
18
+ url = IO.popen("svn info") { |io| io.readlines }.grep(/^URL: /).first.chomp
19
+ url =~ /URL: (.+)/
20
+ source = $1
21
+ if source != @source
22
+ raise ArgumentError, "current checkout found at #{package.srcdir} is from #{source}, was expecting #{@source}"
23
+ end
18
24
  Subprocess.run(package.name, :import, @program, 'up', *@options_up)
19
25
  }
20
26
  end
@@ -53,6 +53,7 @@ module Autobuild
53
53
 
54
54
  def initialize(options)
55
55
  @using = Hash.new
56
+ @configureflags = []
56
57
 
57
58
  super
58
59
 
@@ -93,7 +94,7 @@ module Autobuild
93
94
  configure
94
95
  end
95
96
 
96
- source_tree srcdir, builddir
97
+ source_tree srcdir, /^#{Regexp.quote(builddir)}/
97
98
  file buildstamp => [ srcdir, "#{builddir}/config.status" ] do
98
99
  ensure_dependencies_installed
99
100
  build
@@ -1,5 +1,6 @@
1
1
  require 'autobuild/packages/autotools'
2
2
  require 'open3'
3
+ require 'autobuild/pkgconfig'
3
4
 
4
5
  module Autobuild
5
6
  def self.genom(opts, &proc)
@@ -35,13 +36,18 @@ module Autobuild
35
36
 
36
37
  # Extracts dependencies using the requires: field in the .gen file
37
38
  def get_requires
39
+ apionly = genomflags.find { |f| f == '-a' }
38
40
  cpp = Autobuild.tool(:cpp)
39
41
  Open3.popen3("#{cpp} #{cpp_options.join(" ")} #{srcdir}/#{name}.gen") do |cin, out, err|
40
42
  out.each_line { |line|
41
- if line =~ /^\s*requires\s*:\s*([\w\-]+(?:\s*,\s*[\w\-]+)*);/
42
- $1.split(/, /).each { |name| depends_on name }
43
- elsif line =~ /^\s*requires/
44
- puts "failed to match #{line}"
43
+ if line =~ /^\s*(codels_)?requires\s*:\s*([\w\-]+(?:\s*,\s*[\w\-]+)*);/
44
+ # Remove the codels_requires lines if -a is given to genom
45
+ unless $1 == "codels_" && apionly
46
+ $2.split(/, /).each { |name| depends_on name }
47
+ end
48
+ elsif line =~ /^\s*(?:codels_)?requires/
49
+ # Check that the regexp is not too strict
50
+ STDERR.puts "failed to match #{line}"
45
51
  end
46
52
  }
47
53
  end
@@ -64,18 +70,40 @@ module Autobuild
64
70
  file genomstamp => packages.map { |p| Package[p].installstamp }
65
71
  end
66
72
 
73
+ # Make the genom-stamp file depend on
74
+ # * genom includes
75
+ # * genom canvas
76
+ # * the genom binary itself
77
+ def genom_dependencies
78
+ # Get the genom pkg-config
79
+ if Package['genom']
80
+ 'genom'
81
+ else
82
+ genom_pkg = PkgConfig.new('genom')
83
+
84
+ includedir = File.join(genom_pkg.includedir, 'genom')
85
+ source_tree includedir
86
+
87
+ canvasdir = File.join(genom_pkg.prefix, "share", "genom", genom_pkg.version);;
88
+ source_tree canvasdir
89
+
90
+ binary = File.join(genom_pkg.exec_prefix, "bin", "genom")
91
+ file binary
92
+
93
+ [binary, includedir, canvasdir]
94
+ end
95
+ end
96
+
67
97
  def regen
68
98
  cmdline = [ 'genom', "#{name}.gen", *genomflags ]
69
99
 
70
100
  file buildstamp => genomstamp
101
+ file genomstamp => genom_dependencies
71
102
  file genomstamp => srcdir do
72
103
  Dir.chdir(srcdir) do
73
104
  Subprocess.run(name, 'genom', *cmdline)
74
105
  end
75
106
  end
76
- if Package['genom']
77
- file genomstamp => Package['genom'].installstamp
78
- end
79
107
 
80
108
  acuser = File.join(srcdir, "configure.ac.user")
81
109
  file File.join(srcdir, 'configure') => acuser do
@@ -12,12 +12,11 @@ module Autobuild
12
12
  end
13
13
  def initialize(target)
14
14
  super
15
- source_tree srcdir, installstamp
15
+ source_tree srcdir, /^#{Regexp.quote(installstamp)}/
16
16
  file installstamp => srcdir do
17
17
  touch_stamp installstamp
18
18
  end
19
19
  end
20
- def prepare; end
21
20
  end
22
21
  end
23
22
 
@@ -0,0 +1,24 @@
1
+ require 'autobuild/pkgconfig'
2
+
3
+ module Autobuild
4
+ class InstalledPkgConfig < Package
5
+ def initialize(name)
6
+ @pkgconfig = PkgConfig.new(name)
7
+ @prefix = @pkgconfig.prefix
8
+ super
9
+ end
10
+
11
+ def installstamp
12
+ std_stamp = super
13
+ if File.file?(std_stamp)
14
+ std_stamp
15
+ else
16
+ raise "#{name} is either not installed or has not been built by autobuild (#{std_stamp} not found)"
17
+ end
18
+ end
19
+ end
20
+ def installed_pkgconfig(name, &block)
21
+ InstalledPkgConfig.new(name, &block)
22
+ end
23
+ end
24
+
@@ -0,0 +1,53 @@
1
+ require 'autobuild/timestamps'
2
+ require 'autobuild/package'
3
+ require 'enumerator'
4
+
5
+ module Autobuild
6
+ def self.ruby(spec, &proc)
7
+ RubyPackage.new(spec, &proc)
8
+ end
9
+
10
+ class RubyPackage < Package
11
+ # The list of all extension directories
12
+ attr_reader :extdir
13
+
14
+ def installstamp
15
+ "#{srcdir}/#{STAMPFILE}"
16
+ end
17
+ def initialize(target)
18
+ super
19
+ source_tree srcdir, [/Makefile$/, /\.(?:so|o)$/]
20
+ file installstamp => srcdir do
21
+ touch_stamp installstamp
22
+ end
23
+ end
24
+
25
+ def prepare
26
+ @extdir = Find.enum_for(:find, srcdir).
27
+ grep(/extconf.rb$/).
28
+ map { |f| File.dirname(f) }
29
+
30
+ extdir.each do |dir|
31
+ file "#{dir}/Makefile" => "#{dir}/extconf.rb" do
32
+ Dir.chdir(dir) do
33
+ Subprocess.run(name, 'ext', Autobuild.tool('ruby'), 'extconf.rb')
34
+ end
35
+ end
36
+ end
37
+ end
38
+
39
+ def extstamp(dir); "#{dir}/ext-#{STAMPFILE}" end
40
+ def build
41
+ extdir.each do |dir|
42
+ source_tree dir, [/Makefile$/, /\.(?:so|o)$/]
43
+ file extstamp(dir) => dir do
44
+ Dir.chdir(dir) do
45
+ Subprocess.run(name, 'ext', Autobuild.tool('make'))
46
+ touch_stamp extstamp(dir)
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+