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.
- data/ChangeLog +79 -0
- data/Rakefile +8 -65
- data/ext/glib2/rbglib.h +1 -1
- data/ext/glib2/rbgobj_type.c +1 -1
- data/lib/1.8/glib2.so +0 -0
- data/lib/1.9/glib2.so +0 -0
- data/lib/glib2.rb +2 -2
- data/lib/gnome2-raketask.rb +185 -0
- data/lib/gnome2-win32-binary-downloader.rb +49 -9
- data/lib/mkmf-gnome2.rb +55 -43
- data/test-unit/History.txt +5 -0
- data/test-unit/html/index.html +2 -2
- data/test-unit/html/index.html.ja +2 -2
- data/test-unit/lib/test/unit/assertions.rb +9 -4
- data/test-unit/lib/test/unit/autorunner.rb +13 -1
- data/test-unit/lib/test/unit/testsuite.rb +4 -2
- data/test-unit/lib/test/unit/version.rb +1 -1
- data/test-unit/test/test-testcase.rb +11 -3
- data/test-unit/test/test_assertions.rb +24 -3
- data/vendor/local/bin/glib-genmarshal.exe +0 -0
- data/vendor/local/bin/glib-gettextize +2 -2
- data/vendor/local/bin/glib-mkenums +1 -1
- data/vendor/local/bin/gobject-query.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper-console.exe +0 -0
- data/vendor/local/bin/gspawn-win32-helper.exe +0 -0
- data/vendor/local/bin/libgio-2.0-0.dll +0 -0
- data/vendor/local/bin/libglib-2.0-0.dll +0 -0
- data/vendor/local/bin/libgmodule-2.0-0.dll +0 -0
- data/vendor/local/bin/libgobject-2.0-0.dll +0 -0
- data/vendor/local/bin/libgthread-2.0-0.dll +0 -0
- data/vendor/local/lib/gio-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0.lib +0 -0
- data/vendor/local/lib/glib-2.0/include/glibconfig.h +1 -1
- data/vendor/local/lib/gmodule-2.0.lib +0 -0
- data/vendor/local/lib/gobject-2.0.lib +0 -0
- data/vendor/local/lib/gthread-2.0.lib +0 -0
- data/vendor/local/lib/libgio-2.0.dll.a +0 -0
- data/vendor/local/lib/libglib-2.0.dll.a +0 -0
- data/vendor/local/lib/libgmodule-2.0.dll.a +0 -0
- data/vendor/local/lib/libgobject-2.0.dll.a +0 -0
- data/vendor/local/lib/libgthread-2.0.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/gio-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gio-windows-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/glib-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gmodule-no-export-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gobject-2.0.pc +2 -2
- data/vendor/local/lib/pkgconfig/gthread-2.0.pc +2 -2
- data/vendor/local/manifest/{glib-dev_2.26.0-2_win32.mft → glib-dev_2.26.1-1_win32.mft} +4 -4
- data/vendor/local/manifest/{glib_2.26.0-2_win32.mft → glib_2.26.1-1_win32.mft} +2 -2
- data/vendor/local/share/doc/{glib-2.26.0 → glib-2.26.1}/COPYING +0 -0
- data/vendor/local/share/doc/{glib-dev-2.26.0 → glib-dev-2.26.1}/COPYING +0 -0
- data/vendor/local/share/gtk-doc/html/gio/GAppInfo.html +47 -47
- data/vendor/local/share/gtk-doc/html/gio/GAsyncInitable.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GAsyncResult.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GBufferedInputStream.html +30 -30
- data/vendor/local/share/gtk-doc/html/gio/GBufferedOutputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GCancellable.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/GCharsetConverter.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GConverter.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GCredentials.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GDBusAuthObserver.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GDBusConnection.html +81 -81
- data/vendor/local/share/gtk-doc/html/gio/GDBusMessage.html +65 -65
- data/vendor/local/share/gtk-doc/html/gio/GDBusMethodInvocation.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GDBusProxy.html +52 -52
- data/vendor/local/share/gtk-doc/html/gio/GDBusServer.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GDataInputStream.html +51 -51
- data/vendor/local/share/gtk-doc/html/gio/GDataOutputStream.html +26 -26
- data/vendor/local/share/gtk-doc/html/gio/GDrive.html +46 -46
- data/vendor/local/share/gtk-doc/html/gio/GEmblem.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GEmblemedIcon.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFile.html +221 -231
- data/vendor/local/share/gtk-doc/html/gio/GFileDescriptorBased.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/GFileEnumerator.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GFileIOStream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFileIcon.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GFileInfo.html +157 -157
- data/vendor/local/share/gtk-doc/html/gio/GFileInputStream.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GFileMonitor.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/GFileOutputStream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GFilenameCompleter.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GFilterInputStream.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GFilterOutputStream.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GIOModule.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GIOStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GIcon.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GInetAddress.html +53 -53
- data/vendor/local/share/gtk-doc/html/gio/GInetSocketAddress.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GInitable.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GInputStream.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GLoadableIcon.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GMemoryInputStream.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GMemoryOutputStream.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GMount.html +48 -48
- data/vendor/local/share/gtk-doc/html/gio/GMountOperation.html +43 -43
- data/vendor/local/share/gtk-doc/html/gio/GNetworkAddress.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/GNetworkService.html +22 -22
- data/vendor/local/share/gtk-doc/html/gio/GOutputStream.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GPermission.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GProxy.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GProxyAddress.html +24 -24
- data/vendor/local/share/gtk-doc/html/gio/GProxyResolver.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GResolver.html +27 -27
- data/vendor/local/share/gtk-doc/html/gio/GSeekable.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GSettings.html +83 -108
- data/vendor/local/share/gtk-doc/html/gio/GSettingsBackend.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GSimpleAsyncResult.html +33 -33
- data/vendor/local/share/gtk-doc/html/gio/GSimplePermission.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/GSocket.html +79 -79
- data/vendor/local/share/gtk-doc/html/gio/GSocketAddress.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/GSocketClient.html +60 -64
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnectable.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/GSocketConnection.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GSocketControlMessage.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/GSocketListener.html +36 -40
- data/vendor/local/share/gtk-doc/html/gio/GSocketService.html +17 -17
- data/vendor/local/share/gtk-doc/html/gio/GTcpConnection.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/GThemedIcon.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GThreadedSocketService.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GUnixConnection.html +14 -14
- data/vendor/local/share/gtk-doc/html/gio/GUnixCredentialsMessage.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDList.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/GUnixFDMessage.html +26 -26
- data/vendor/local/share/gtk-doc/html/gio/GUnixInputStream.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixOutputStream.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/GUnixSocketAddress.html +28 -28
- data/vendor/local/share/gtk-doc/html/gio/GVfs.html +29 -29
- data/vendor/local/share/gtk-doc/html/gio/GVolume.html +40 -40
- data/vendor/local/share/gtk-doc/html/gio/GVolumeMonitor.html +33 -33
- data/vendor/local/share/gtk-doc/html/gio/GZlibCompressor.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/GZlibDecompressor.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/annotation-glossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-20.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/api-index-full.html +4 -8
- data/vendor/local/share/gtk-doc/html/gio/async.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/ch01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch03.html +21 -21
- data/vendor/local/share/gtk-doc/html/gio/ch24.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/ch25.html +9 -9
- data/vendor/local/share/gtk-doc/html/gio/ch25s02.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch25s03.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch26s02.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26s03.html +25 -25
- data/vendor/local/share/gtk-doc/html/gio/ch26s04.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch26s05.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch26s06.html +6 -6
- data/vendor/local/share/gtk-doc/html/gio/ch26s07.html +70 -5
- data/vendor/local/share/gtk-doc/html/gio/ch27.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch27s02.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/ch27s03.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/ch27s04.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch27s05.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/ch27s06.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/conversion.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/extending-gio.html +12 -12
- data/vendor/local/share/gtk-doc/html/gio/extending.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/failable_initialization.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/file_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/file_ops.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus-convenience.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus-lowlevel.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gdbus.html +19 -19
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Addresses.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Introspection-Data.html +44 -44
- data/vendor/local/share/gtk-doc/html/gio/gio-D-Bus-Utilities.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-Desktop-file-based-GAppInfo.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-Extension-Points.html +23 -23
- data/vendor/local/share/gtk-doc/html/gio/gio-GContentType.html +18 -18
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterInputstream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-GConverterOutputstream.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-GDBusError.html +20 -20
- data/vendor/local/share/gtk-doc/html/gio/gio-GFileAttribute.html +27 -33
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOError.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/gio-GIOScheduler.html +13 -13
- data/vendor/local/share/gtk-doc/html/gio/gio-GSrvTarget.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-Owning-Bus-Names.html +16 -16
- data/vendor/local/share/gtk-doc/html/gio/gio-Unix-Mounts.html +45 -45
- data/vendor/local/share/gtk-doc/html/gio/gio-Watching-Bus-Names.html +15 -15
- data/vendor/local/share/gtk-doc/html/gio/gio-hierarchy.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/gio-querymodules.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp +9 -10
- data/vendor/local/share/gtk-doc/html/gio/gio.devhelp2 +9 -10
- data/vendor/local/share/gtk-doc/html/gio/glib-compile-schemas.html +11 -11
- data/vendor/local/share/gtk-doc/html/gio/highlevel-socket.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/icons.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/index.html +8 -8
- data/vendor/local/share/gtk-doc/html/gio/index.sgml +0 -1
- data/vendor/local/share/gtk-doc/html/gio/migrating.html +7 -7
- data/vendor/local/share/gtk-doc/html/gio/networking.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/permissions.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/pt01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/pt02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gio/resolver.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/settings.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/streaming.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/types.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/utils.html +4 -4
- data/vendor/local/share/gtk-doc/html/gio/volume_mon.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/annotation-glossary.html +10 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-14.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-16.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-2.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-20.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-6.html +5 -9
- data/vendor/local/share/gtk-doc/html/glib/api-index-2-8.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/api-index-full.html +9 -33
- data/vendor/local/share/gtk-doc/html/glib/glib-Arrays.html +53 -53
- data/vendor/local/share/gtk-doc/html/glib/glib-Asynchronous-Queues.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Atomic-Operations.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Automatic-String-Completion.html +32 -32
- data/vendor/local/share/gtk-doc/html/glib/glib-Balanced-Binary-Trees.html +36 -36
- data/vendor/local/share/gtk-doc/html/glib/glib-Base64-Encoding.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Bookmark-file-parser.html +49 -49
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Arrays.html +40 -40
- data/vendor/local/share/gtk-doc/html/glib/glib-Byte-Order-Macros.html +70 -70
- data/vendor/local/share/gtk-doc/html/glib/glib-Caches.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-Character-Set-Conversion.html +42 -46
- data/vendor/local/share/gtk-doc/html/glib/glib-Commandline-option-parser.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Data-Checksums.html +23 -23
- data/vendor/local/share/gtk-doc/html/glib/glib-Datasets.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Date-and-Time-Functions.html +83 -83
- data/vendor/local/share/gtk-doc/html/glib/glib-Double-ended-Queues.html +62 -62
- data/vendor/local/share/gtk-doc/html/glib/glib-Doubly-Linked-Lists.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Dynamic-Loading-of-Modules.html +31 -31
- data/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html +31 -31
- data/vendor/local/share/gtk-doc/html/glib/glib-File-Utilities.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-GDateTime.html +112 -118
- data/vendor/local/share/gtk-doc/html/glib/glib-GTimeZone.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariant.html +227 -261
- data/vendor/local/share/gtk-doc/html/glib/glib-GVariantType.html +91 -107
- data/vendor/local/share/gtk-doc/html/glib/glib-Glob-style-pattern-matching.html +16 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Hash-Tables.html +60 -60
- data/vendor/local/share/gtk-doc/html/glib/glib-Hook-Functions.html +66 -66
- data/vendor/local/share/gtk-doc/html/glib/glib-Hostname-Utilities.html +12 -12
- data/vendor/local/share/gtk-doc/html/glib/glib-I18N.html +26 -26
- data/vendor/local/share/gtk-doc/html/glib/glib-IO-Channels.html +72 -72
- data/vendor/local/share/gtk-doc/html/glib/glib-Key-value-file-parser.html +78 -78
- data/vendor/local/share/gtk-doc/html/glib/glib-Keyed-Data-Lists.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Lexical-Scanner.html +51 -51
- data/vendor/local/share/gtk-doc/html/glib/glib-Limits-of-Basic-Types.html +37 -37
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocation.html +38 -38
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Allocators.html +15 -15
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Chunks.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Memory-Slices.html +21 -21
- data/vendor/local/share/gtk-doc/html/glib/glib-Message-Logging.html +64 -109
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Macros.html +65 -65
- data/vendor/local/share/gtk-doc/html/glib/glib-Miscellaneous-Utility-Functions.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-N-ary-Trees.html +80 -80
- data/vendor/local/share/gtk-doc/html/glib/glib-Numerical-Definitions.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Perl-compatible-regular-expressions.html +50 -50
- data/vendor/local/share/gtk-doc/html/glib/glib-Pointer-Arrays.html +41 -41
- data/vendor/local/share/gtk-doc/html/glib/glib-Quarks.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Random-Numbers.html +34 -34
- data/vendor/local/share/gtk-doc/html/glib/glib-Relations-and-Tuples.html +35 -35
- data/vendor/local/share/gtk-doc/html/glib/glib-Sequences.html +45 -45
- data/vendor/local/share/gtk-doc/html/glib/glib-Shell-related-Utilities.html +16 -16
- data/vendor/local/share/gtk-doc/html/glib/glib-Simple-XML-Subset-Parser.html +29 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-Singly-Linked-Lists.html +87 -87
- data/vendor/local/share/gtk-doc/html/glib/glib-Spawning-Processes.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html +27 -27
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Chunks.html +22 -22
- data/vendor/local/share/gtk-doc/html/glib/glib-String-Utility-Functions.html +154 -154
- data/vendor/local/share/gtk-doc/html/glib/glib-Strings.html +93 -93
- data/vendor/local/share/gtk-doc/html/glib/glib-Testing.html +73 -73
- data/vendor/local/share/gtk-doc/html/glib/glib-The-Main-Event-Loop.html +122 -128
- data/vendor/local/share/gtk-doc/html/glib/glib-Thread-Pools.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Threads.html +134 -134
- data/vendor/local/share/gtk-doc/html/glib/glib-Timers.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Trash-Stacks.html +12 -12
- data/vendor/local/share/gtk-doc/html/glib/glib-Type-Conversion-Macros.html +14 -14
- data/vendor/local/share/gtk-doc/html/glib/glib-URI-Functions.html +19 -19
- data/vendor/local/share/gtk-doc/html/glib/glib-Unicode-Manipulation.html +97 -97
- data/vendor/local/share/gtk-doc/html/glib/glib-Version-Information.html +16 -119
- data/vendor/local/share/gtk-doc/html/glib/glib-Warnings-and-Assertions.html +25 -25
- data/vendor/local/share/gtk-doc/html/glib/glib-Windows-Compatibility-Functions.html +33 -33
- data/vendor/local/share/gtk-doc/html/glib/glib-building.html +29 -29
- data/vendor/local/share/gtk-doc/html/glib/glib-changes.html +8 -8
- data/vendor/local/share/gtk-doc/html/glib/glib-compiling.html +6 -6
- data/vendor/local/share/gtk-doc/html/glib/glib-core.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-cross-compiling.html +20 -20
- data/vendor/local/share/gtk-doc/html/glib/glib-data-types.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-fundamentals.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib-gettextize.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/glib-regex-syntax.html +83 -83
- data/vendor/local/share/gtk-doc/html/glib/glib-resources.html +10 -10
- data/vendor/local/share/gtk-doc/html/glib/glib-running.html +30 -30
- data/vendor/local/share/gtk-doc/html/glib/glib-utilities.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp +30 -36
- data/vendor/local/share/gtk-doc/html/glib/glib.devhelp2 +30 -36
- data/vendor/local/share/gtk-doc/html/glib/glib.html +4 -4
- data/vendor/local/share/gtk-doc/html/glib/gtester-report.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gtester.html +11 -11
- data/vendor/local/share/gtk-doc/html/glib/gvariant-format-strings.html +44 -44
- data/vendor/local/share/gtk-doc/html/glib/index.html +5 -5
- data/vendor/local/share/gtk-doc/html/glib/index.sgml +1 -6
- data/vendor/local/share/gtk-doc/html/glib/tools.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/GBinding.html +31 -31
- data/vendor/local/share/gtk-doc/html/gobject/GTypeModule.html +22 -22
- data/vendor/local/share/gtk-doc/html/gobject/GTypePlugin.html +20 -20
- data/vendor/local/share/gtk-doc/html/gobject/annotation-glossary.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-10.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-12.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-14.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-18.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-2.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-22.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-24.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-26.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-4.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-6.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-2-8.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-deprecated.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/api-index-full.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/ch01s02.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/ch06s03.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gobject.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/chapter-gtype.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/chapter-intro.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/chapter-signal.html +15 -15
- data/vendor/local/share/gtk-doc/html/gobject/glib-genmarshal.html +23 -23
- data/vendor/local/share/gtk-doc/html/gobject/glib-mkenums.html +17 -17
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Boxed-Types.html +26 -26
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Closures.html +74 -74
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Enumeration-and-Flag-Types.html +44 -44
- data/vendor/local/share/gtk-doc/html/gobject/gobject-GParamSpec.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Generic-values.html +36 -36
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Signals.html +71 -71
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Standard-Parameter-and-Value-Types.html +262 -262
- data/vendor/local/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html +97 -97
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Type-Information.html +158 -158
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Value-arrays.html +37 -37
- data/vendor/local/share/gtk-doc/html/gobject/gobject-Varargs-Value-Collection.html +13 -13
- data/vendor/local/share/gtk-doc/html/gobject/gobject-memory.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/gobject-properties.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/gobject-query.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gobject.devhelp2 +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/gtype-conventions.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/gtype-instantiable-classed.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable-classed.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/gtype-non-instantiable.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-chainup.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-code.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-construction.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-destruction.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject-methods.html +10 -10
- data/vendor/local/share/gtk-doc/html/gobject/howto-gobject.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-implement.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface-properties.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/howto-interface.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/howto-signals.html +7 -7
- data/vendor/local/share/gtk-doc/html/gobject/index.html +11 -11
- data/vendor/local/share/gtk-doc/html/gobject/pr01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/pt01.html +8 -8
- data/vendor/local/share/gtk-doc/html/gobject/pt02.html +9 -9
- data/vendor/local/share/gtk-doc/html/gobject/pt03.html +6 -6
- data/vendor/local/share/gtk-doc/html/gobject/rn01.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/rn02.html +5 -5
- data/vendor/local/share/gtk-doc/html/gobject/signal.html +12 -12
- data/vendor/local/share/gtk-doc/html/gobject/tools-ginspector.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-gob.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-gtkdoc.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-refdb.html +4 -4
- data/vendor/local/share/gtk-doc/html/gobject/tools-vala.html +4 -4
- data/vendor/local/share/locale/bg/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/glib20.mo +0 -0
- data/vendor/local/share/man/man1/glib-genmarshal.1 +15 -6
- data/vendor/local/share/man/man1/glib-mkenums.1 +12 -3
- data/vendor/local/share/man/man1/gobject-query.1 +13 -4
- data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.log → glib_2.26.1-1_win32.log} +549 -558
- data/vendor/local/src/tml/packaging/{glib_2.26.0-2_win32.sh → glib_2.26.1-1_win32.sh} +2 -2
- 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 '
|
4
|
-
require 'rubygems'
|
5
|
-
require 'rake/extensiontask'
|
3
|
+
require './lib/gnome2-raketask'
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
data/ext/glib2/rbgobj_type.c
CHANGED
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
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
|