glib2 0.90.4 → 0.90.5

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,3 +1,13 @@
1
+ 2010-10-27 Kouhei Sutou <kou@clear-code.com>
2
+
3
+ * lib/glib-mkenums.rb: work on LANG=C environment.
4
+
5
+ * Rakefile: depend on pkg-config as not development library.
6
+
7
+ 2010-10-24 Kouhei Sutou <kou@cozmixng.org>
8
+
9
+ * ext/glib2/rbglib.h: 0.90.4 -> 0.90.5.
10
+
1
11
  2010-10-24 Kouhei Sutou <kou@clear-code.com>
2
12
 
3
13
  * ext/glib2/rbglib.c (rbg_rval2cstr): add missing '*'.
data/Rakefile CHANGED
@@ -35,7 +35,7 @@ spec = Gem::Specification.new do |s|
35
35
  s.platform = Gem::Platform::RUBY
36
36
  s.extensions = FileList["ext/#{package_name}/extconf.rb"]
37
37
  s.require_paths = ["lib"]
38
- s.add_development_dependency("pkg-config", ">= 0")
38
+ s.add_dependency("pkg-config", ">= 0")
39
39
  s.files = FileList["ChangeLog", "README", "Rakefile", "extconf.rb",
40
40
  "lib/**/*.rb", "{ext,sample,test,test-unit}/**/*"]
41
41
  end
@@ -58,3 +58,11 @@ glib_mkenums(enum_type_prefix, headers, "G_TYPE_", ["glib-object.h"])
58
58
 
59
59
  $defs << "-DRUBY_GLIB2_COMPILATION"
60
60
  create_makefile(module_name)
61
+
62
+ pkg_config_dir = with_config("pkg-config-dir")
63
+ if pkg_config_dir.is_a?(String)
64
+ File.open("Makefile", "ab") do |makefile|
65
+ makefile.puts
66
+ makefile.puts("pkgconfigdir=#{pkg_config_dir}")
67
+ end
68
+ end
@@ -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 4
26
+ #define RBGLIB_MICRO_VERSION 5
27
27
 
28
28
  #ifndef RSTRING_PTR
29
29
  # define RSTRING_PTR(s) (RSTRING(s)->ptr)
@@ -96,6 +96,7 @@ GType #{@enum_name}_get_type (void);
96
96
  def self.parse(data, g_type_prefix, options={})
97
97
  options ||= {}
98
98
  enums = []
99
+ data.force_encoding("utf-8") if data.respond_to?(:force_encoding)
99
100
  data.scan(/^\s*typedef\s+enum\s*
100
101
  \{?\s*(.*?)
101
102
  \}\s*(\w+);/mx){|constants, name|
@@ -167,7 +168,7 @@ GType #{@enum_name}_get_type (void);
167
168
 
168
169
  # Create a C source as a String.
169
170
  def create_c
170
- ret = "\n/* Generated by glib-mkenums.rb ($Id: glib-mkenums.rb 3896 2010-09-25 07:49:34Z ktou $) */ \n\n"
171
+ ret = "\n/* Generated by glib-mkenums.rb ($Id: glib-mkenums.rb 3990 2010-10-27 03:38:42Z ktou $) */ \n\n"
171
172
  ret << %Q[#include "#{@target_filename}.h"\n]
172
173
  @include_files.each do |file|
173
174
  ret << "#include <#{file}>\n"
@@ -183,7 +184,7 @@ GType #{@enum_name}_get_type (void);
183
184
  header = "#{@target_filename}.h"
184
185
  const = "__#{File.basename(header).upcase.gsub(/-|\./, '_')}__"
185
186
 
186
- ret = "\n/* Generated by glib-mkenums.rb ($Id: glib-mkenums.rb 3896 2010-09-25 07:49:34Z ktou $) */ \n\n"
187
+ ret = "\n/* Generated by glib-mkenums.rb ($Id: glib-mkenums.rb 3990 2010-10-27 03:38:42Z ktou $) */ \n\n"
187
188
  ret << "#ifndef #{const}\n"
188
189
  ret << "#define #{const}\n\n"
189
190
  ret << "#include <glib-object.h>\n\n"
@@ -331,16 +331,20 @@ def check_cairo(options={})
331
331
  unless have_rb_cairo_h
332
332
  begin
333
333
  require 'rubygems'
334
- gem 'cairo'
335
- require 'cairo'
336
- rcairo_src_gem_path_re =
337
- /\A#{Regexp.escape(Gem.dir)}\/gems\/cairo-[\d.]+\/ext\/cairo\z/
338
- $LOAD_PATH.each do |path|
339
- if rcairo_src_gem_path_re =~ path
340
- $CFLAGS += " -I#{path} "
341
- have_rb_cairo_h = have_header('rb_cairo.h')
342
- break
343
- end
334
+ rcairo_gem = Gem.cache.find_name("cairo").sort_by do |gem|
335
+ gem.version
336
+ end.last
337
+ if rcairo_gem
338
+ rcairo_source_dir = rcairo_gem.full_gem_path
339
+ rb_cairo_h_dir = File.join(rcairo_source_dir, "ext", "cairo")
340
+ $CFLAGS += " -I#{rb_cairo_h_dir} "
341
+ have_rb_cairo_h = have_header('rb_cairo.h')
342
+ else
343
+ require "cairo"
344
+ rcairo_source_dir = File.dirname($".grep(/cairo\.(?!rb\z)\w+\z/).first)
345
+ rb_cairo_h_dir = rcairo_source_dir
346
+ $CFLAGS += " -I#{rcairo_h_dir} "
347
+ have_rb_cairo_h = have_header('rb_cairo.h')
344
348
  end
345
349
  rescue LoadError
346
350
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 383
4
+ hash: 381
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 90
9
- - 4
10
- version: 0.90.4
9
+ - 5
10
+ version: 0.90.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - The Ruby-GNOME2 Proejct Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-24 00:00:00 +09:00
18
+ date: 2010-10-29 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -30,7 +30,7 @@ dependencies:
30
30
  segments:
31
31
  - 0
32
32
  version: "0"
33
- type: :development
33
+ type: :runtime
34
34
  version_requirements: *id001
35
35
  description: Ruby/GLib2 is a Ruby binding of GLib-2.x.
36
36
  email: ruby-gnome2-devel-en@lists.sourceforge.net
@@ -45,198 +45,198 @@ files:
45
45
  - README
46
46
  - Rakefile
47
47
  - extconf.rb
48
- - lib/gnome2-win32-binary-downloader.rb
48
+ - lib/glib-mkenums.rb
49
49
  - lib/glib2.rb
50
50
  - lib/mkmf-gnome2.rb
51
- - lib/glib-mkenums.rb
52
- - ext/glib2/rbglib_timer.c
53
- - ext/glib2/rbglib_completion.c
54
- - ext/glib2/rbgobj_param.c
55
- - ext/glib2/rbgobj_valuearray.c
56
- - ext/glib2/rbglib_threads.c
57
- - ext/glib2/rbgobj_value.c
51
+ - lib/gnome2-win32-binary-downloader.rb
52
+ - ext/glib2/rbgutil_callback.c
53
+ - ext/glib2/rbglib_source.c
54
+ - ext/glib2/rbglib_int64.c
58
55
  - ext/glib2/rbglib_fileutils.c
59
- - ext/glib2/rbglib.c
60
- - ext/glib2/rbglib_iochannel.c
61
- - ext/glib2/rbgobj_type.c
62
- - ext/glib2/rbgobj_typeplugin.c
63
- - ext/glib2/rbglib.h
64
- - ext/glib2/rbgobj_convert.c
65
- - ext/glib2/rbgobj_strv.c
66
- - ext/glib2/rbglib_messages.c
67
- - ext/glib2/rbgutil.c
56
+ - ext/glib2/rbglib_win32.c
57
+ - ext/glib2/rbgprivate.h
58
+ - ext/glib2/rbglib_bookmarkfile.c
59
+ - ext/glib2/rbgobj_closure.c
60
+ - ext/glib2/rbgobj_valuetypes.c
61
+ - ext/glib2/rbglib_pollfd.c
68
62
  - ext/glib2/rbglib_maincontext.c
69
- - ext/glib2/rbgobj_object.c
70
- - ext/glib2/rbgobj_typeinstance.c
71
- - ext/glib2/rbglib_error.c
72
- - ext/glib2/rbgobj_paramspecs.c
73
- - ext/glib2/rbgutil_callback.c
74
- - ext/glib2/rbgobj_typemodule.c
75
- - ext/glib2/rbglib_utils.c
76
- - ext/glib2/rbglib_mainloop.c
63
+ - ext/glib2/rbgobj_valuearray.c
64
+ - ext/glib2/rbglib.h
77
65
  - ext/glib2/extconf.rb
78
- - ext/glib2/rbgobj_enums.c
79
- - ext/glib2/rbglib_win32.c
80
- - ext/glib2/rbglib_int64.c
81
- - ext/glib2/glib2.def
82
- - ext/glib2/rbgobj_fundamental.c
66
+ - ext/glib2/rbglib_convert.c
67
+ - ext/glib2/rbgutil.c
68
+ - ext/glib2/depend
83
69
  - ext/glib2/rbgcompat.h
84
- - ext/glib2/rbgobj_closure.c
85
70
  - ext/glib2/rbgobject.c
86
71
  - ext/glib2/rbgobj_boxed.c
72
+ - ext/glib2/rbgobj_typemodule.c
73
+ - ext/glib2/rbgobj_enums.c
74
+ - ext/glib2/rbglib_threads.c
75
+ - ext/glib2/rbgobj_typeinterface.c
76
+ - ext/glib2/rbgobj_param.c
77
+ - ext/glib2/rbgobj_object.c
78
+ - ext/glib2/rbglib_spawn.c
79
+ - ext/glib2/glib2.def
80
+ - ext/glib2/rbgobj_signal.c
81
+ - ext/glib2/rbgobj_convert.c
82
+ - ext/glib2/rbglib_error.c
83
+ - ext/glib2/rbglib_i18n.c
84
+ - ext/glib2/rbgobj_value.c
85
+ - ext/glib2/rbglib_messages.c
87
86
  - ext/glib2/rbglib_shell.c
87
+ - ext/glib2/rbglib_completion.c
88
88
  - ext/glib2/rbgobject.h
89
- - ext/glib2/rbgobj_typeinterface.c
90
- - ext/glib2/rbglib_convert.c
91
89
  - ext/glib2/rbglib_keyfile.c
92
- - ext/glib2/rbgobj_valuetypes.c
93
- - ext/glib2/rbglib_i18n.c
94
- - ext/glib2/rbglib_unicode.c
95
- - ext/glib2/depend
96
- - ext/glib2/rbgprivate.h
97
- - ext/glib2/rbglib_pollfd.c
90
+ - ext/glib2/rbgobj_typeplugin.c
91
+ - ext/glib2/rbglib_mainloop.c
92
+ - ext/glib2/rbgobj_strv.c
93
+ - ext/glib2/rbglib_iochannel.c
94
+ - ext/glib2/rbgobj_typeinstance.c
95
+ - ext/glib2/rbglib_timer.c
96
+ - ext/glib2/rbgobj_type.c
98
97
  - ext/glib2/rbgutil.h
99
- - ext/glib2/rbglib_bookmarkfile.c
100
- - ext/glib2/rbglib_source.c
101
- - ext/glib2/rbgobj_signal.c
102
- - ext/glib2/rbglib_spawn.c
103
- - sample/timeout2.rb
104
- - sample/completion.rb
98
+ - ext/glib2/rbglib.c
99
+ - ext/glib2/rbglib_utils.c
100
+ - ext/glib2/rbgobj_fundamental.c
101
+ - ext/glib2/rbglib_unicode.c
102
+ - ext/glib2/rbgobj_paramspecs.c
105
103
  - sample/utils.rb
104
+ - sample/completion.rb
105
+ - sample/spawn.rb
106
+ - sample/iochannel.rb
106
107
  - sample/timeout.rb
107
- - sample/idle.rb
108
+ - sample/type-register2.rb
108
109
  - sample/bookmarkfile.rb
109
- - sample/keyfile.rb
110
+ - sample/idle.rb
110
111
  - sample/shell.rb
111
- - sample/timer.rb
112
- - sample/iochannel.rb
113
- - sample/type-register2.rb
114
- - sample/spawn.rb
112
+ - sample/keyfile.rb
113
+ - sample/timeout2.rb
115
114
  - sample/type-register.rb
116
- - test/test_mkenums.rb
117
- - test/test_enum.rb
115
+ - sample/timer.rb
118
116
  - test/test_file_utils.rb
117
+ - test/test_timeout.rb
119
118
  - test/test_key_file.rb
120
- - test/glib-test-utils.rb
121
- - test/run-test.rb
122
- - test/test_win32.rb
123
119
  - test/test_signal.rb
124
- - test/test_glib2.rb
125
- - test/test_timeout.rb
126
- - test/test_utils.rb
127
- - test/test_unicode.rb
120
+ - test/run-test.rb
121
+ - test/glib-test-utils.rb
122
+ - test/test_mkenums.rb
128
123
  - test/test_iochannel.rb
124
+ - test/test_utils.rb
125
+ - test/test_enum.rb
129
126
  - test/glib-test-init.rb
130
- - test-unit/Manifest.txt
131
- - test-unit/TODO
132
- - test-unit/html/rubyforge.png
133
- - test-unit/html/test-unit.css
134
- - test-unit/html/reference.png
135
- - test-unit/html/tutorial.svg
136
- - test-unit/html/jp.png
137
- - test-unit/html/tango-logo.png
138
- - test-unit/html/install.svg
139
- - test-unit/html/heading-mark.png
140
- - test-unit/html/developer.svg
141
- - test-unit/html/kinotan-failure.png
142
- - test-unit/html/developer.png
143
- - test-unit/html/heading-mark.svg
144
- - test-unit/html/logo.png
145
- - test-unit/html/tutorial.png
146
- - test-unit/html/us.png
147
- - test-unit/html/bar.svg
148
- - test-unit/html/index.html
149
- - test-unit/html/index.html.ja
150
- - test-unit/html/bar.png
151
- - test-unit/html/favicon.svg
152
- - test-unit/html/favicon.png
153
- - test-unit/html/favicon.ico
154
- - test-unit/html/install.png
155
- - test-unit/html/kinotan-pass.png
156
- - test-unit/html/logo.svg
157
- - test-unit/html/famfamfam-logo.png
158
- - test-unit/History.txt
159
- - test-unit/README.txt
160
- - test-unit/images/color-diff.png
127
+ - test/test_unicode.rb
128
+ - test/test_glib2.rb
129
+ - test/test_win32.rb
161
130
  - test-unit/COPYING
131
+ - test-unit/Rakefile
132
+ - test-unit/TODO
162
133
  - test-unit/lib/test/unit.rb
163
- - test-unit/lib/test/unit/attribute.rb
164
- - test-unit/lib/test/unit/color.rb
134
+ - test-unit/lib/test/unit/priority.rb
165
135
  - test-unit/lib/test/unit/version.rb
166
- - test-unit/lib/test/unit/runner/emacs.rb
167
- - test-unit/lib/test/unit/runner/console.rb
168
- - test-unit/lib/test/unit/runner/tap.rb
169
- - test-unit/lib/test/unit/ui/testrunnerutilities.rb
136
+ - test-unit/lib/test/unit/pending.rb
137
+ - test-unit/lib/test/unit/error.rb
138
+ - test-unit/lib/test/unit/util/procwrapper.rb
139
+ - test-unit/lib/test/unit/util/method-owner-finder.rb
140
+ - test-unit/lib/test/unit/util/observable.rb
141
+ - test-unit/lib/test/unit/util/output.rb
142
+ - test-unit/lib/test/unit/util/backtracefilter.rb
143
+ - test-unit/lib/test/unit/testcase.rb
144
+ - test-unit/lib/test/unit/omission.rb
145
+ - test-unit/lib/test/unit/assertions.rb
170
146
  - test-unit/lib/test/unit/ui/emacs/testrunner.rb
171
- - test-unit/lib/test/unit/ui/testrunner.rb
147
+ - test-unit/lib/test/unit/ui/testrunnermediator.rb
172
148
  - test-unit/lib/test/unit/ui/tap/testrunner.rb
173
149
  - test-unit/lib/test/unit/ui/console/outputlevel.rb
174
150
  - test-unit/lib/test/unit/ui/console/testrunner.rb
175
- - test-unit/lib/test/unit/ui/testrunnermediator.rb
176
- - test-unit/lib/test/unit/assertionfailederror.rb
177
- - test-unit/lib/test/unit/failure.rb
178
- - test-unit/lib/test/unit/autorunner.rb
179
- - test-unit/lib/test/unit/exceptionhandler.rb
180
- - test-unit/lib/test/unit/assertions.rb
181
- - test-unit/lib/test/unit/error.rb
182
- - test-unit/lib/test/unit/omission.rb
183
- - test-unit/lib/test/unit/fixture.rb
151
+ - test-unit/lib/test/unit/ui/testrunner.rb
152
+ - test-unit/lib/test/unit/ui/testrunnerutilities.rb
184
153
  - test-unit/lib/test/unit/collector/descendant.rb
185
154
  - test-unit/lib/test/unit/collector/load.rb
186
155
  - test-unit/lib/test/unit/collector/dir.rb
187
156
  - test-unit/lib/test/unit/collector/objectspace.rb
188
- - test-unit/lib/test/unit/color-scheme.rb
189
- - test-unit/lib/test/unit/testcase.rb
190
- - test-unit/lib/test/unit/util/method-owner-finder.rb
191
- - test-unit/lib/test/unit/util/output.rb
192
- - test-unit/lib/test/unit/util/procwrapper.rb
193
- - test-unit/lib/test/unit/util/observable.rb
194
- - test-unit/lib/test/unit/util/backtracefilter.rb
195
- - test-unit/lib/test/unit/pending.rb
157
+ - test-unit/lib/test/unit/fixture.rb
158
+ - test-unit/lib/test/unit/testsuite.rb
159
+ - test-unit/lib/test/unit/assertionfailederror.rb
160
+ - test-unit/lib/test/unit/failure.rb
196
161
  - test-unit/lib/test/unit/testresult.rb
197
- - test-unit/lib/test/unit/collector.rb
162
+ - test-unit/lib/test/unit/color-scheme.rb
198
163
  - test-unit/lib/test/unit/diff.rb
199
- - test-unit/lib/test/unit/priority.rb
164
+ - test-unit/lib/test/unit/runner/emacs.rb
165
+ - test-unit/lib/test/unit/runner/tap.rb
166
+ - test-unit/lib/test/unit/runner/console.rb
167
+ - test-unit/lib/test/unit/collector.rb
168
+ - test-unit/lib/test/unit/autorunner.rb
169
+ - test-unit/lib/test/unit/exceptionhandler.rb
200
170
  - test-unit/lib/test/unit/notification.rb
201
- - test-unit/lib/test/unit/testsuite.rb
202
- - test-unit/bin/testrb
203
- - test-unit/sample/test_subtracter.rb
204
- - test-unit/sample/subtracter.rb
205
- - test-unit/sample/test_user.rb
171
+ - test-unit/lib/test/unit/attribute.rb
172
+ - test-unit/lib/test/unit/color.rb
206
173
  - test-unit/sample/test_adder.rb
207
174
  - test-unit/sample/adder.rb
208
- - test-unit/Rakefile
209
- - test-unit/PSFL
210
- - test-unit/GPL
175
+ - test-unit/sample/subtracter.rb
176
+ - test-unit/sample/test_user.rb
177
+ - test-unit/sample/test_subtracter.rb
178
+ - test-unit/images/color-diff.png
179
+ - test-unit/README.txt
180
+ - test-unit/Manifest.txt
211
181
  - test-unit/test/testunit-test-util.rb
212
- - test-unit/test/test-testcase.rb
213
- - test-unit/test/ui/test_testrunmediator.rb
214
- - test-unit/test/ui/test_tap.rb
215
- - test-unit/test/test_testresult.rb
216
- - test-unit/test/test-pending.rb
217
- - test-unit/test/test-emacs-runner.rb
218
- - test-unit/test/test-fixture.rb
219
- - test-unit/test/test-attribute.rb
220
182
  - test-unit/test/test_failure.rb
221
- - test-unit/test/test_testsuite.rb
222
- - test-unit/test/collector/test_objectspace.rb
223
- - test-unit/test/collector/test-descendant.rb
224
- - test-unit/test/collector/test_dir.rb
225
- - test-unit/test/collector/test-load.rb
226
- - test-unit/test/run-test.rb
227
- - test-unit/test/test-priority.rb
183
+ - test-unit/test/util/test-output.rb
184
+ - test-unit/test/util/test_procwrapper.rb
228
185
  - test-unit/test/util/test_backtracefilter.rb
229
186
  - test-unit/test/util/test_observable.rb
230
- - test-unit/test/util/test_procwrapper.rb
231
187
  - test-unit/test/util/test-method-owner-finder.rb
232
- - test-unit/test/util/test-output.rb
233
- - test-unit/test/test_error.rb
234
- - test-unit/test/test-diff.rb
235
- - test-unit/test/test-notification.rb
236
188
  - test-unit/test/test-color-scheme.rb
237
- - test-unit/test/test-omission.rb
189
+ - test-unit/test/test-priority.rb
190
+ - test-unit/test/test_testsuite.rb
191
+ - test-unit/test/test-pending.rb
192
+ - test-unit/test/test_error.rb
193
+ - test-unit/test/run-test.rb
194
+ - test-unit/test/test-emacs-runner.rb
195
+ - test-unit/test/ui/test_tap.rb
196
+ - test-unit/test/ui/test_testrunmediator.rb
197
+ - test-unit/test/collector/test_dir.rb
198
+ - test-unit/test/collector/test_objectspace.rb
199
+ - test-unit/test/collector/test-descendant.rb
200
+ - test-unit/test/collector/test-load.rb
201
+ - test-unit/test/test-testcase.rb
202
+ - test-unit/test/test-fixture.rb
203
+ - test-unit/test/test_testresult.rb
238
204
  - test-unit/test/test-color.rb
205
+ - test-unit/test/test-diff.rb
239
206
  - test-unit/test/test_assertions.rb
207
+ - test-unit/test/test-attribute.rb
208
+ - test-unit/test/test-omission.rb
209
+ - test-unit/test/test-notification.rb
210
+ - test-unit/History.txt
211
+ - test-unit/html/developer.svg
212
+ - test-unit/html/reference.png
213
+ - test-unit/html/favicon.ico
214
+ - test-unit/html/tutorial.png
215
+ - test-unit/html/jp.png
216
+ - test-unit/html/index.html
217
+ - test-unit/html/heading-mark.png
218
+ - test-unit/html/install.svg
219
+ - test-unit/html/favicon.svg
220
+ - test-unit/html/famfamfam-logo.png
221
+ - test-unit/html/heading-mark.svg
222
+ - test-unit/html/kinotan-pass.png
223
+ - test-unit/html/logo.svg
224
+ - test-unit/html/test-unit.css
225
+ - test-unit/html/bar.svg
226
+ - test-unit/html/us.png
227
+ - test-unit/html/rubyforge.png
228
+ - test-unit/html/bar.png
229
+ - test-unit/html/favicon.png
230
+ - test-unit/html/logo.png
231
+ - test-unit/html/index.html.ja
232
+ - test-unit/html/kinotan-failure.png
233
+ - test-unit/html/tutorial.svg
234
+ - test-unit/html/tango-logo.png
235
+ - test-unit/html/developer.png
236
+ - test-unit/html/install.png
237
+ - test-unit/GPL
238
+ - test-unit/bin/testrb
239
+ - test-unit/PSFL
240
240
  has_rdoc: true
241
241
  homepage: http://ruby-gnome2.sourceforge.jp/
242
242
  licenses: []