glib2 0.90.5-x86-mingw32 → 0.90.6-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. data/ChangeLog +79 -0
  2. data/Rakefile +8 -65
  3. data/ext/glib2/rbglib.h +1 -1
  4. data/ext/glib2/rbgobj_type.c +1 -1
  5. data/lib/1.8/glib2.so +0 -0
  6. data/lib/1.9/glib2.so +0 -0
  7. data/lib/glib2.rb +2 -2
  8. data/lib/gnome2-raketask.rb +185 -0
  9. data/lib/gnome2-win32-binary-downloader.rb +49 -9
  10. data/lib/mkmf-gnome2.rb +55 -43
  11. data/test-unit/History.txt +5 -0
  12. data/test-unit/html/index.html +2 -2
  13. data/test-unit/html/index.html.ja +2 -2
  14. data/test-unit/lib/test/unit/assertions.rb +9 -4
  15. data/test-unit/lib/test/unit/autorunner.rb +13 -1
  16. data/test-unit/lib/test/unit/testsuite.rb +4 -2
  17. data/test-unit/lib/test/unit/version.rb +1 -1
  18. data/test-unit/test/test-testcase.rb +11 -3
  19. data/test-unit/test/test_assertions.rb +24 -3
  20. data/vendor/local/bin/glib-genmarshal.exe +0 -0
  21. data/vendor/local/bin/glib-gettextize +2 -2
  22. data/vendor/local/bin/glib-mkenums +1 -1
  23. data/vendor/local/bin/gobject-query.exe +0 -0
  24. data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
  25. data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
  26. data/vendor/local/bin/libgio-2.0-0.dll +0 -0
  27. data/vendor/local/bin/libglib-2.0-0.dll +0 -0
  28. data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
  29. data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
  30. data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
  31. data/vendor/local/lib/gio-2.0.lib +0 -0
  32. data/vendor/local/lib/glib-2.0.lib +0 -0
  33. data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
  34. data/vendor/local/lib/gmodule-2.0.lib +0 -0
  35. data/vendor/local/lib/gobject-2.0.lib +0 -0
  36. data/vendor/local/lib/gthread-2.0.lib +0 -0
  37. data/vendor/local/lib/libgio-2.0.dll.a +0 -0
  38. data/vendor/local/lib/libglib-2.0.dll.a +0 -0
  39. data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
  40. data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
  41. data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
  42. data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
  43. data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +2 -2
  44. data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
  45. data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
  46. data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
  47. data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
  48. data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
  49. data/vendor/local/manifest/{glib-dev_2.26.0-2_win32.mft → glib-dev_2.26.1-1_win32.mft} +4 -4
  50. data/vendor/local/manifest/{glib_2.26.0-2_win32.mft → glib_2.26.1-1_win32.mft} +2 -2
  51. data/vendor/local/share/doc/{glib-2.26.0 → glib-2.26.1}/COPYING +0 -0
  52. data/vendor/local/share/doc/{glib-dev-2.26.0 → glib-dev-2.26.1}/COPYING +0 -0
  53. data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +47 -47
  54. data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +19 -19
  55. data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +16 -16
  56. data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +30 -30
  57. data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +24 -24
  58. data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +25 -25
  59. data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +19 -19
  60. data/vendor/local/share/gtk-doc/html/gio/GConverter.html +17 -17
  61. data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +17 -17
  62. data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +14 -14
  63. data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +81 -81
  64. data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +65 -65
  65. data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +24 -24
  66. data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +52 -52
  67. data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +29 -29
  68. data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +51 -51
  69. data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +26 -26
  70. data/vendor/local/share/gtk-doc/html/gio/GDrive.html +46 -46
  71. data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +20 -20
  72. data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +15 -15
  73. data/vendor/local/share/gtk-doc/html/gio/GFile.html +221 -231
  74. data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +12 -12
  75. data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +22 -22
  76. data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +15 -15
  77. data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +16 -16
  78. data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +157 -157
  79. data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +14 -14
  80. data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +21 -21
  81. data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +15 -15
  82. data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +20 -20
  83. data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +16 -16
  84. data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +16 -16
  85. data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +16 -16
  86. data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +24 -24
  87. data/vendor/local/share/gtk-doc/html/gio/GIcon.html +17 -17
  88. data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +53 -53
  89. data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +17 -17
  90. data/vendor/local/share/gtk-doc/html/gio/GInitable.html +19 -19
  91. data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +23 -23
  92. data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +16 -16
  93. data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +14 -14
  94. data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +24 -24
  95. data/vendor/local/share/gtk-doc/html/gio/GMount.html +48 -48
  96. data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +43 -43
  97. data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +21 -21
  98. data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +22 -22
  99. data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +28 -28
  100. data/vendor/local/share/gtk-doc/html/gio/GPermission.html +24 -24
  101. data/vendor/local/share/gtk-doc/html/gio/GProxy.html +16 -16
  102. data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +24 -24
  103. data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +17 -17
  104. data/vendor/local/share/gtk-doc/html/gio/GResolver.html +27 -27
  105. data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +18 -18
  106. data/vendor/local/share/gtk-doc/html/gio/GSettings.html +83 -108
  107. data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +23 -23
  108. data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +33 -33
  109. data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +12 -12
  110. data/vendor/local/share/gtk-doc/html/gio/GSocket.html +79 -79
  111. data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +20 -20
  112. data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +60 -64
  113. data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +23 -23
  114. data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +19 -19
  115. data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +15 -15
  116. data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +36 -40
  117. data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +17 -17
  118. data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +16 -16
  119. data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +28 -28
  120. data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +19 -19
  121. data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +14 -14
  122. data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +18 -18
  123. data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +25 -25
  124. data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +26 -26
  125. data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +18 -18
  126. data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +18 -18
  127. data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +28 -28
  128. data/vendor/local/share/gtk-doc/html/gio/GVfs.html +29 -29
  129. data/vendor/local/share/gtk-doc/html/gio/GVolume.html +40 -40
  130. data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +33 -33
  131. data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +19 -19
  132. data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +16 -16
  133. data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +4 -4
  134. data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +4 -4
  135. data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +4 -4
  136. data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +4 -4
  137. data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +4 -4
  138. data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +4 -4
  139. data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +4 -4
  140. data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4 -8
  141. data/vendor/local/share/gtk-doc/html/gio/async.html +4 -4
  142. data/vendor/local/share/gtk-doc/html/gio/ch01.html +5 -5
  143. data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
  144. data/vendor/local/share/gtk-doc/html/gio/ch03.html +21 -21
  145. data/vendor/local/share/gtk-doc/html/gio/ch24.html +5 -5
  146. data/vendor/local/share/gtk-doc/html/gio/ch25.html +9 -9
  147. data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +6 -6
  148. data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +7 -7
  149. data/vendor/local/share/gtk-doc/html/gio/ch26.html +8 -8
  150. data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +7 -7
  151. data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +25 -25
  152. data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +7 -7
  153. data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +6 -6
  154. data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +6 -6
  155. data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +70 -5
  156. data/vendor/local/share/gtk-doc/html/gio/ch27.html +8 -8
  157. data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +23 -23
  158. data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +8 -8
  159. data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +7 -7
  160. data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +7 -7
  161. data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +7 -7
  162. data/vendor/local/share/gtk-doc/html/gio/conversion.html +4 -4
  163. data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +12 -12
  164. data/vendor/local/share/gtk-doc/html/gio/extending.html +4 -4
  165. data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +4 -4
  166. data/vendor/local/share/gtk-doc/html/gio/file_mon.html +4 -4
  167. data/vendor/local/share/gtk-doc/html/gio/file_ops.html +4 -4
  168. data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +4 -4
  169. data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +4 -4
  170. data/vendor/local/share/gtk-doc/html/gio/gdbus.html +19 -19
  171. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +13 -13
  172. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +44 -44
  173. data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +13 -13
  174. data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +20 -20
  175. data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +23 -23
  176. data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +18 -18
  177. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -15
  178. data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -15
  179. data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +20 -20
  180. data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +27 -33
  181. data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +11 -11
  182. data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +13 -13
  183. data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +16 -16
  184. data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +16 -16
  185. data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +45 -45
  186. data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +15 -15
  187. data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +4 -4
  188. data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +7 -7
  189. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +9 -10
  190. data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +9 -10
  191. data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +11 -11
  192. data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +4 -4
  193. data/vendor/local/share/gtk-doc/html/gio/icons.html +4 -4
  194. data/vendor/local/share/gtk-doc/html/gio/index.html +8 -8
  195. data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -1
  196. data/vendor/local/share/gtk-doc/html/gio/migrating.html +7 -7
  197. data/vendor/local/share/gtk-doc/html/gio/networking.html +4 -4
  198. data/vendor/local/share/gtk-doc/html/gio/permissions.html +4 -4
  199. data/vendor/local/share/gtk-doc/html/gio/pt01.html +5 -5
  200. data/vendor/local/share/gtk-doc/html/gio/pt02.html +5 -5
  201. data/vendor/local/share/gtk-doc/html/gio/resolver.html +4 -4
  202. data/vendor/local/share/gtk-doc/html/gio/settings.html +4 -4
  203. data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
  204. data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
  205. data/vendor/local/share/gtk-doc/html/gio/types.html +4 -4
  206. data/vendor/local/share/gtk-doc/html/gio/utils.html +4 -4
  207. data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
  208. data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +10 -4
  209. data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +4 -4
  210. data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +4 -4
  211. data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +4 -4
  212. data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +4 -4
  213. data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
  214. data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +4 -4
  215. data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +4 -4
  216. data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +4 -4
  217. data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +4 -4
  218. data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +4 -4
  219. data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
  220. data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +5 -9
  221. data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +4 -4
  222. data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +4 -4
  223. data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +9 -33
  224. data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +53 -53
  225. data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +38 -38
  226. data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +21 -21
  227. data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +32 -32
  228. data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +36 -36
  229. data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +15 -15
  230. data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +38 -38
  231. data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +49 -49
  232. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +40 -40
  233. data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +70 -70
  234. data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +22 -22
  235. data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +42 -46
  236. data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +45 -45
  237. data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +23 -23
  238. data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +21 -21
  239. data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +83 -83
  240. data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +62 -62
  241. data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +97 -97
  242. data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +31 -31
  243. data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +31 -31
  244. data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +50 -50
  245. data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +112 -118
  246. data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +22 -22
  247. data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +227 -261
  248. data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +91 -107
  249. data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +16 -16
  250. data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +60 -60
  251. data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +66 -66
  252. data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +12 -12
  253. data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +26 -26
  254. data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
  255. data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +78 -78
  256. data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +25 -25
  257. data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +51 -51
  258. data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
  259. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +38 -38
  260. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +15 -15
  261. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +45 -45
  262. data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +21 -21
  263. data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +64 -109
  264. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +65 -65
  265. data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +97 -97
  266. data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +80 -80
  267. data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +19 -19
  268. data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +50 -50
  269. data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +41 -41
  270. data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +20 -20
  271. data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +34 -34
  272. data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +35 -35
  273. data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +45 -45
  274. data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +16 -16
  275. data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +29 -29
  276. data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +87 -87
  277. data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +20 -20
  278. data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +27 -27
  279. data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +22 -22
  280. data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +154 -154
  281. data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +93 -93
  282. data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +73 -73
  283. data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +122 -128
  284. data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +25 -25
  285. data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +134 -134
  286. data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +19 -19
  287. data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +12 -12
  288. data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +14 -14
  289. data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +19 -19
  290. data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +97 -97
  291. data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +16 -119
  292. data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +25 -25
  293. data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +33 -33
  294. data/vendor/local/share/gtk-doc/html/glib/glib-building.html +29 -29
  295. data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +8 -8
  296. data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +6 -6
  297. data/vendor/local/share/gtk-doc/html/glib/glib-core.html +4 -4
  298. data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +20 -20
  299. data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +4 -4
  300. data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +4 -4
  301. data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
  302. data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +83 -83
  303. data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +10 -10
  304. data/vendor/local/share/gtk-doc/html/glib/glib-running.html +30 -30
  305. data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +4 -4
  306. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +30 -36
  307. data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +30 -36
  308. data/vendor/local/share/gtk-doc/html/glib/glib.html +4 -4
  309. data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
  310. data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
  311. data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +44 -44
  312. data/vendor/local/share/gtk-doc/html/glib/index.html +5 -5
  313. data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -6
  314. data/vendor/local/share/gtk-doc/html/glib/tools.html +4 -4
  315. data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +31 -31
  316. data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +22 -22
  317. data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +20 -20
  318. data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +4 -4
  319. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
  320. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +4 -4
  321. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +4 -4
  322. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +4 -4
  323. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +4 -4
  324. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +4 -4
  325. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +4 -4
  326. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +4 -4
  327. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
  328. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +4 -4
  329. data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +4 -4
  330. data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +4 -4
  331. data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +4 -4
  332. data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +8 -8
  333. data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +5 -5
  334. data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +5 -5
  335. data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +7 -7
  336. data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +7 -7
  337. data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +15 -15
  338. data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +23 -23
  339. data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +17 -17
  340. data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +26 -26
  341. data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +74 -74
  342. data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +44 -44
  343. data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +71 -71
  344. data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +36 -36
  345. data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
  346. data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +262 -262
  347. data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +97 -97
  348. data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +158 -158
  349. data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +37 -37
  350. data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +13 -13
  351. data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +7 -7
  352. data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +9 -9
  353. data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +11 -11
  354. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
  355. data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
  356. data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +7 -7
  357. data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +5 -5
  358. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +6 -6
  359. data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +4 -4
  360. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +6 -6
  361. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +4 -4
  362. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +4 -4
  363. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +4 -4
  364. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +10 -10
  365. data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +9 -9
  366. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +5 -5
  367. data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +8 -8
  368. data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +5 -5
  369. data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +7 -7
  370. data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -11
  371. data/vendor/local/share/gtk-doc/html/gobject/pr01.html +5 -5
  372. data/vendor/local/share/gtk-doc/html/gobject/pt01.html +8 -8
  373. data/vendor/local/share/gtk-doc/html/gobject/pt02.html +9 -9
  374. data/vendor/local/share/gtk-doc/html/gobject/pt03.html +6 -6
  375. data/vendor/local/share/gtk-doc/html/gobject/rn01.html +5 -5
  376. data/vendor/local/share/gtk-doc/html/gobject/rn02.html +5 -5
  377. data/vendor/local/share/gtk-doc/html/gobject/signal.html +12 -12
  378. data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +4 -4
  379. data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +4 -4
  380. data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +4 -4
  381. data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +4 -4
  382. data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +4 -4
  383. data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
  384. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
  385. data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
  386. data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
  387. data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
  388. data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
  389. data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
  390. data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
  391. data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
  392. data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
  393. data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
  394. data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
  395. data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
  396. data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
  397. data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
  398. data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
  399. data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
  400. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
  401. data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
  402. data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
  403. data/vendor/local/share/man/man1/glib-genmarshal.1 +15 -6
  404. data/vendor/local/share/man/man1/glib-mkenums.1 +12 -3
  405. data/vendor/local/share/man/man1/gobject-query.1 +13 -4
  406. data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.log → glib_2.26.1-1_win32.log} +549 -558
  407. data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.sh → glib_2.26.1-1_win32.sh} +2 -2
  408. metadata +860 -857
data/ChangeLog CHANGED
@@ -1,3 +1,82 @@
1
+ 2011-01-30 Kouhei Sutou <kou@cozmixng.org>
2
+
3
+ * lib/mkmf-gnome2.rb (setup_win32): add vendor/local/ existence check.
4
+
5
+ * lib/gnome2-win32-binary-downloader.rb
6
+ (GNOME2Win32BinaryDownloader#download_package): support old Win32
7
+ binary URL for goocanvas.
8
+
9
+ * lib/gnome2-win32-binary-downloader.rb
10
+ (GNOME2Win32BinaryDownloader#download_package): support old Win32
11
+ binary URL for gtksourceview.
12
+
13
+ * lib/gnome2-win32-binary-downloader.rb
14
+ (GNOME2Win32BinaryDownloader#download_dependency): support
15
+ specifying version.
16
+
17
+ * lib/gnome2-win32-binary-downloader.rb
18
+ (GNOME2Win32BinaryDownloader#download_dependency): improve error
19
+ handling.
20
+
21
+ * lib/gnome2-win32-binary-downloader.rb
22
+ (GNOME2Win32BinaryDownloader#download_package): just handle
23
+ "PACKAGE_VERSION-win32.zip" and "PACKAGE-dev_VERSION-win32.zip".
24
+
25
+ * lib/mkmf-gnome2.rb (setup_win32): use rcairo's
26
+ vendor/local/lib/pkgconfig if it exists.
27
+
28
+ * lib/mkmf-gnome2.rb (setup_win32): don't override 'prefix=' in *.pc.
29
+
30
+ * lib/mkmf-gnome2.rb (add_depend_package): add dependency
31
+ package's vendor/local/lib/pkgconfig to PKGConfig path.
32
+
33
+ * lib/gnome2-raketask.rb (GNOME2Package#define_win32_tasks): don't
34
+ require 'vendor/local'.
35
+
36
+ * lib/gnome2-win32-binary-downloader.rb: override "prefix=" for
37
+ downloaded *.pc.
38
+
39
+ * lib/gnome2-raketask.rb: add missing "require 'find'".
40
+
41
+ * lib/gnome2-win32-binary-downloader.rb
42
+ (GNOME2Win32BinaryDownloader#click_zip_link): override existing
43
+ files without prompting.
44
+
45
+ 2011-01-29 Kouhei Sutou <kou@cozmixng.org>
46
+
47
+ * lib/mkmf-gnome2.rb:
48
+ - add load error check.
49
+ - remove needless rb_cairo.h check.
50
+
51
+ 2011-01-28 Masaaki Aoyagi
52
+
53
+ * lib/mkmf-gnome2.rb: fix check_cairo.
54
+
55
+ 2011-01-21 Masaaki Aoyagi
56
+
57
+ * lib/gnome2-raketask.rb: add.
58
+
59
+ * Rakefile: change to use gnome2-raketask.rb.
60
+
61
+ 2011-01-02 Kouhei Sutou <kou@cozmixng.org>
62
+
63
+ * lib/mkmf-gnome2.rb: support "2.0b7" style module
64
+ version for xulrunner-2.0b7. #3141244
65
+ Reported by reandr. Thanks!!!
66
+
67
+ 2010-11-04 Nikolai Weibull
68
+
69
+ * lib/glib2.rb: Use ::File to access Ruby File class.
70
+
71
+ 2010-10-30 Kouhei Sutou <kou@cozmixng.org>
72
+
73
+ * ext/glib2/rbgobj_type.c (rbgobj_gtype_new): fix GType
74
+ conversion. GType is unsigned long not unsigned int.
75
+
76
+ 2010-10-28 Kouhei Sutou <kou@clear-code.com>
77
+
78
+ * ext/glib2/rbglib.h: 0.90.5 -> 0.90.6.
79
+
1
80
  2010-10-27 Kouhei Sutou <kou@clear-code.com>
2
81
 
3
82
  * lib/glib-mkenums.rb: work on LANG=C environment.
data/Rakefile CHANGED
@@ -1,70 +1,13 @@
1
1
  # -*- ruby -*-
2
2
 
3
- require 'find'
4
- require 'rubygems'
5
- require 'rake/extensiontask'
3
+ require './lib/gnome2-raketask'
6
4
 
7
- task :default => :build
8
-
9
- def version
10
- @version ||= ENV["VERSION"] || guess_version
11
- end
12
-
13
- def guess_version
14
- versions = {}
15
- File.open("ext/glib2/rbglib.h") do |rbglib_h|
16
- rbglib_h.each_line do |line|
17
- if /#define\s+RBGLIB_([A-Z]+)_VERSION\s+(\d+)/ =~ line
18
- versions[$1.downcase] = $2.to_i
19
- end
20
- end
21
- end
22
- ["major", "minor", "micro"].collect {|type| versions[type]}.compact.join(".")
23
- end
24
-
25
- package_name = "glib2"
26
-
27
- spec = Gem::Specification.new do |s|
28
- s.name = package_name
29
- s.summary = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
30
- s.description = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
31
- s.author = "The Ruby-GNOME2 Proejct Team"
32
- s.email = "ruby-gnome2-devel-en@lists.sourceforge.net"
33
- s.homepage = "http://ruby-gnome2.sourceforge.jp/"
34
- s.version = version
35
- s.platform = Gem::Platform::RUBY
36
- s.extensions = FileList["ext/#{package_name}/extconf.rb"]
37
- s.require_paths = ["lib"]
38
- s.add_dependency("pkg-config", ">= 0")
39
- s.files = FileList["ChangeLog", "README", "Rakefile", "extconf.rb",
40
- "lib/**/*.rb", "{ext,sample,test,test-unit}/**/*"]
5
+ package = GNOME2Package.new do |_package|
6
+ _package.summary = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
7
+ _package.description = "Ruby/GLib2 is a Ruby binding of GLib-2.x."
8
+ _package.dependency.gem.runtime = [["pkg-config", ">= 0"]]
9
+ _package.win32.packages = ["glib"]
10
+ _package.win32.dependencies = ["gettext-runtime"]
41
11
  end
12
+ package.define_tasks
42
13
 
43
- Rake::GemPackageTask.new(spec) do |pkg|
44
- end
45
-
46
- Rake::ExtensionTask.new(package_name, spec) do |ext|
47
- ext.cross_compile = true
48
- ext.cross_compiling do |spec|
49
- if /mingw|mswin/ =~ spec.platform.to_s
50
- win32_dir = File.join("vendor", "local")
51
- win32_files = []
52
- Find.find(win32_dir) do |file|
53
- next if /\.zip\z/ =~ file
54
- win32_files << file
55
- end
56
- spec.files += win32_files
57
- end
58
- end
59
- end
60
-
61
- namespace :win32 do
62
- desc "download Windows binaries"
63
- task :download do
64
- base_dir = File.join(File.dirname(__FILE__), "lib")
65
- $LOAD_PATH.unshift(base_dir)
66
- require 'gnome2-win32-binary-downloader'
67
- GNOME2Win32BinaryDownloader.download(:package => "glib",
68
- :dependencies => ["gettext-runtime"])
69
- end
70
- end
data/ext/glib2/rbglib.h CHANGED
@@ -23,7 +23,7 @@ extern "C" {
23
23
 
24
24
  #define RBGLIB_MAJOR_VERSION 0
25
25
  #define RBGLIB_MINOR_VERSION 90
26
- #define RBGLIB_MICRO_VERSION 5
26
+ #define RBGLIB_MICRO_VERSION 6
27
27
 
28
28
  #ifndef RSTRING_PTR
29
29
  # define RSTRING_PTR(s) (RSTRING(s)->ptr)
@@ -411,7 +411,7 @@ rbgobj_gtype_new(gtype)
411
411
  GType gtype;
412
412
  {
413
413
  VALUE result = rb_obj_alloc(rbgobj_cType);
414
- VALUE arg = UINT2NUM(gtype);
414
+ VALUE arg = ULONG2NUM(gtype);
415
415
  rb_obj_call_init(result, 1, &arg);
416
416
  return result;
417
417
  }
data/lib/1.8/glib2.so CHANGED
Binary file
data/lib/1.9/glib2.so CHANGED
Binary file
data/lib/glib2.rb CHANGED
@@ -65,11 +65,11 @@ module GLib
65
65
  path = Pathname(path) unless path.is_a?(Pathname)
66
66
  if path.exist?
67
67
  environment_name = "PATH"
68
- separator = File::PATH_SEPARATOR
68
+ separator = ::File::PATH_SEPARATOR
69
69
 
70
70
  paths = (ENV[environment_name] || '').split(/#{separator}/)
71
71
  dir = path.to_s
72
- dir = dir.gsub(/\//, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
72
+ dir = dir.gsub(/\//, ::File::ALT_SEPARATOR) if ::File::ALT_SEPARATOR
73
73
  unless paths.include?(dir)
74
74
  paths = [dir] + paths
75
75
  ENV[environment_name] = paths.join(separator)
@@ -0,0 +1,185 @@
1
+ # coding: utf-8
2
+
3
+ # Copyright(C) 2011 Ruby-GNOME2 Project.
4
+ #
5
+ # This program is licenced under the same license of Ruby-GNOME2.
6
+
7
+ require 'find'
8
+
9
+ require 'rubygems'
10
+ require 'rake/extensiontask'
11
+
12
+ class GNOME2Package
13
+ attr_accessor :name, :summary, :description, :author, :email, :homepage, :post_install_message
14
+ def initialize
15
+ initialize_variables
16
+ initialize_configurations
17
+ file, line, method = caller[1].scan(/^(.*):(\d+)(?::.*`(.*)')?\Z/).first
18
+ @package_root = File.dirname(file)
19
+ @glib2_root = File.expand_path("#{@package_root}/../glib2")
20
+ @packages = FileList["#{File.dirname(@package_root)}/*"].map{|f| File.directory?(f) ? File.basename(f) : nil}.compact
21
+ @name = File.basename(@package_root)
22
+ yield(self) if block_given?
23
+ end
24
+
25
+ def define_tasks
26
+ task :default => :build
27
+ define_gem_tasks
28
+ define_win32_tasks
29
+ end
30
+
31
+ def ruby_gnome2_package?(name)
32
+ @packages.include?(name)
33
+ end
34
+
35
+ def dependency
36
+ @dependency_configuration
37
+ end
38
+
39
+ def win32
40
+ @win32_configuration
41
+ end
42
+
43
+ def version
44
+ ENV["VERSION"] || guess_version
45
+ end
46
+
47
+ def guess_version
48
+ versions = {}
49
+ File.open("#{@glib2_root}/ext/glib2/rbglib.h") do |rbglib_h|
50
+ rbglib_h.each_line do |line|
51
+ if /#define\s+RBGLIB_([A-Z]+)_VERSION\s+(\d+)/ =~ line
52
+ versions[$1.downcase] = $2.to_i
53
+ end
54
+ end
55
+ end
56
+ ["major", "minor", "micro"].collect {|type| versions[type]}.compact.join(".")
57
+ end
58
+
59
+ private
60
+ def initialize_variables
61
+ @name = ""
62
+ @summary = ""
63
+ @description = ""
64
+ @author = "The Ruby-GNOME2 Proejct Team"
65
+ @email = "ruby-gnome2-devel-en@lists.sourceforge.net"
66
+ @homepage = "http://ruby-gnome2.sourceforge.jp/"
67
+ end
68
+
69
+ def initialize_configurations
70
+ @dependency_configuration = DependencyConfiguration.new(self)
71
+ @win32_configuration = Win32Configuration.new(self)
72
+ end
73
+
74
+ def define_gem_tasks
75
+ @spec = Gem::Specification.new do |s|
76
+ s.name = @name
77
+ s.summary = @summary
78
+ s.description = @description
79
+ s.author = @author
80
+ s.email = @email
81
+ s.homepage = @homepage
82
+ s.version = version
83
+ s.extensions = FileList["ext/#{@name}/extconf.rb"]
84
+ s.require_paths = ["lib"]
85
+ s.files = FileList[
86
+ "ChangeLog", "README", "Rakefile", "extconf.rb",
87
+ "lib/**/*.rb", "{ext,sample,test,test-unit}/**/*"]
88
+ s.post_install_message = @post_install_message
89
+ @dependency_configuration.apply(s)
90
+ end
91
+
92
+ Rake::GemPackageTask.new(@spec) do |pkg|
93
+ end
94
+ end
95
+
96
+ def define_win32_tasks
97
+ Rake::ExtensionTask.new(@name, @spec) do |ext|
98
+ ext.cross_compile = true
99
+ ext.cross_compiling do |spec|
100
+ if /mingw|mswin/ =~ spec.platform.to_s
101
+ win32_dir = File.join("vendor", "local")
102
+ win32_files = []
103
+ if File.exist?(win32_dir)
104
+ Find.find(win32_dir) do |file|
105
+ next if /\.zip\z/ =~ file
106
+ win32_files << file
107
+ end
108
+ end
109
+ spec.files += win32_files
110
+ end
111
+ end
112
+ end
113
+
114
+ namespace :win32 do
115
+ desc "download Windows binaries"
116
+ task :download do
117
+ $LOAD_PATH.unshift("#{@glib2_root}/lib")
118
+ require 'gnome2-win32-binary-downloader'
119
+ GNOME2Win32BinaryDownloader.download(@win32_configuration.to_hash)
120
+ end
121
+ end
122
+ end
123
+
124
+ class DependencyConfiguration
125
+ attr_accessor :platform, :ruby
126
+ def initialize(package)
127
+ @package = package
128
+ @platform = Gem::Platform::RUBY
129
+ @ruby = ">=1.8.5"
130
+ @gem_configuration = GemConfiguration.new(@package)
131
+ end
132
+
133
+ def gem
134
+ @gem_configuration
135
+ end
136
+
137
+ def apply(spec)
138
+ spec.platform = @platform
139
+ spec.required_ruby_version = @ruby
140
+ @gem_configuration.apply(spec)
141
+ end
142
+
143
+ class GemConfiguration
144
+ attr_accessor :runtime, :development
145
+ def initialize(package)
146
+ @package = package
147
+ @runtime = []
148
+ @development = []
149
+ end
150
+
151
+ def apply(spec)
152
+ @runtime.each do |dependency|
153
+ spec.add_runtime_dependency(*append_version(dependency))
154
+ end
155
+
156
+ @development.each do |dependency|
157
+ spec.add_development_dependency(*append_version(dependency))
158
+ end
159
+ end
160
+
161
+ def append_version(dependency)
162
+ name, *ver = dependency.is_a?(Array) ? dependency : [dependency]
163
+ ver << ">= #{@package.version}" if @package.ruby_gnome2_package?(name)
164
+ [name, *ver]
165
+ end
166
+ end
167
+ end
168
+
169
+ class Win32Configuration
170
+ attr_accessor :packages, :dependencies
171
+ def initialize(package)
172
+ @package = package
173
+ @packages = []
174
+ @dependencies = []
175
+ end
176
+
177
+ def to_hash
178
+ {
179
+ :packages => @packages,
180
+ :dependencies => @dependencies,
181
+ }
182
+ end
183
+ end
184
+ end
185
+
@@ -23,11 +23,13 @@ class GNOME2Win32BinaryDownloader
23
23
 
24
24
  URL_BASE = "http://ftp.gnome.org/pub/gnome/binaries/win32"
25
25
  def initialize(options={})
26
- @output_dir = options[:output_dir] || File.join("vendor", "local")
26
+ output_dir = options[:output_dir] || File.join("vendor", "local")
27
+ @output_dir = File.expand_path(output_dir)
27
28
  end
28
29
 
29
30
  def download_package(package)
30
- version_page = agent.get("#{URL_BASE}/#{package}")
31
+ version_page_url = "#{URL_BASE}/#{package}"
32
+ version_page = agent.get(version_page_url)
31
33
  latest_version_link = version_page.links.sort_by do |link|
32
34
  if /\A(\d+\.\d+)\/\z/ =~ link.href
33
35
  $1.split(/\./).collect {|component| component.to_i}
@@ -36,11 +38,18 @@ class GNOME2Win32BinaryDownloader
36
38
  end
37
39
  end.last
38
40
 
41
+ escaped_package = Regexp.escape(package)
39
42
  latest_version_page = latest_version_link.click
40
43
  latest_version = latest_version_page.links.collect do |link|
41
- if /_([\d\.\-]+)_win32\.zip\z/ =~ link.href
44
+ case link.href
45
+ when /#{escaped_package}_([\d\.\-]+)_win32\.zip\z/,
46
+ /#{escaped_package}-([\d\.\-]+)-win32\.zip\z/, # old
47
+ /#{escaped_package}-([\d\.\-]+)\.zip\z/ # old
42
48
  version = $1
43
- [version.split(/[\.\-]/).collect {|component| component.to_i}, version]
49
+ normalized_version = version.split(/[\.\-]/).collect do |component|
50
+ component.to_i
51
+ end
52
+ [normalized_version, version]
44
53
  else
45
54
  [[-1], nil]
46
55
  end
@@ -48,17 +57,33 @@ class GNOME2Win32BinaryDownloader
48
57
  normalized_version
49
58
  end.last[1]
50
59
 
60
+ if latest_version.nil?
61
+ raise "can't find package: <#{package}>:<#{version_page_url}>"
62
+ end
63
+ escaped_latest_version = Regexp.escape(latest_version)
51
64
  latest_version_page.links.each do |link|
52
- if /_#{Regexp.escape(latest_version)}_win32\.zip\z/ =~ link.href
65
+ case link.href
66
+ when /#{escaped_package}(?:-dev)?_#{escaped_latest_version}_win32\.zip\z/,
67
+ /#{escaped_package}(?:-dev)?-#{escaped_latest_version}-win32\.zip\z/, # old
68
+ /#{escaped_package}(?:-dev)?-#{escaped_latest_version}\.zip\z/ # old
53
69
  click_zip_link(link)
54
70
  end
55
71
  end
56
72
  end
57
73
 
58
74
  def download_dependency(dependency)
59
- dependencies_page = agent.get("#{URL_BASE}/dependencies")
75
+ dependency_version = "any"
76
+ dependency_version_re = /[\d\.\-]+/
77
+ if dependency.is_a?(Array)
78
+ dependency, dependency_version = dependency
79
+ dependency_version_re = /#{Regexp.escape(dependency_version)}/
80
+ end
81
+ escaped_dependency = Regexp.escape(dependency)
82
+ dependencies_url = "#{URL_BASE}/dependencies"
83
+ dependencies_page = agent.get(dependencies_url)
60
84
  latest_version = dependencies_page.links.collect do |link|
61
- if /\A#{Regexp.escape(dependency)}_([\d\.\-]+)_win32\.zip\z/ =~ link.href
85
+ case link.href
86
+ when /\A#{escaped_dependency}_(#{dependency_version_re})_win32\.zip\z/
62
87
  version = $1
63
88
  [version.split(/[\.\-]/).collect {|component| component.to_i}, version]
64
89
  else
@@ -67,8 +92,16 @@ class GNOME2Win32BinaryDownloader
67
92
  end.sort_by do |normalized_version, version|
68
93
  normalized_version
69
94
  end.last[1]
95
+
96
+ if latest_version.nil?
97
+ message = "can't find dependency package: " +
98
+ "<#{dependency}>(#{dependency_version}):<#{dependencies_url}>"
99
+ raise message
100
+ end
101
+ escaped_latest_version = Regexp.escape(latest_version)
70
102
  dependencies_page.links.each do |link|
71
- if /\A#{Regexp.escape(dependency)}(?:-dev)?_#{Regexp.escape(latest_version)}_win32.zip/ =~ link.href
103
+ case link.href
104
+ when /\A#{escaped_dependency}(?:-dev)?_#{escaped_latest_version}_win32.zip/
72
105
  click_zip_link(link)
73
106
  end
74
107
  end
@@ -86,7 +119,14 @@ class GNOME2Win32BinaryDownloader
86
119
  open(zip.filename, "wb") do |file|
87
120
  file.print(zip.body)
88
121
  end
89
- system("unzip '#{zip.filename}'")
122
+ system("unzip", "-o", zip.filename)
123
+ Dir.glob("lib/pkgconfig/*.pc") do |pc_path|
124
+ pc = File.read(pc_path)
125
+ pc = pc.gsub(/\Aprefix=.+$/) {"prefix=#{@output_dir}"}
126
+ File.open(pc_path, "w") do |pc_file|
127
+ pc_file.print(pc)
128
+ end
129
+ end
90
130
  end
91
131
  end
92
132
  end