glib2 3.1.8 → 3.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f45d4e148fd64d2406fd51ab2b95504c21bbf3d
4
- data.tar.gz: 1454d6783265e478f6889d4c9b2a9c6ed7f3f29d
3
+ metadata.gz: c1c8eb28db7aee6ac06f5a721e2f16b7c49e1d9f
4
+ data.tar.gz: 98d3afb3b78d83dc43a9a57d308cf9308b8a31a5
5
5
  SHA512:
6
- metadata.gz: 277661596c6b0efda513736a9f1bbceda1e8828d9f02faa9576bc2ffec5237e60dbfc64395b9ed4173763f58b9404fe2318e37a63e22949ff8ae1dda39854255
7
- data.tar.gz: 30bff9269886f0d45a210373e75cb74d6a0dca59679eaaa664f1506b401e1b5badefa0f91d4ce8a54d3a920bf883639e076c42971fc17a38e24be5f3ef9d74c9
6
+ metadata.gz: 0fdd234ca217c0ac8a5a193b8b10baf64506a116c0838fe43ee70e996531ff16ec0f4a7beb96e40c529a7abd9d188d9ebe2aa9f57979e8258a6bb0364e49bf36
7
+ data.tar.gz: 5585355516dee22a8f55c8c78fc5e38ee5e4dcb8755570947b57c71a8b25230a17c27b7a2c62a6f37b9ffb4789bb91e744f304b6bd86d23c139c14af5571f134
data/Rakefile CHANGED
@@ -88,12 +88,12 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
88
88
  :name => "glib",
89
89
  :download_site => :gnome,
90
90
  :label => "GLib",
91
- :version => "2.52.3",
91
+ :version => "2.54.1",
92
92
  :compression_method => "xz",
93
93
  :windows => {
94
94
  :need_autoreconf => true,
95
95
  :patches => [
96
- "glib-2.48.0-add-missing-exeext.diff",
96
+ "glib-2.54.1-add-missing-exeext.diff",
97
97
  ],
98
98
  :built_file => "bin/libglib-2.0-0.dll",
99
99
  },
@@ -171,7 +171,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
171
171
  :name => "glib-networking",
172
172
  :download_site => :gnome,
173
173
  :label => "glib-networking",
174
- :version => "2.50.0",
174
+ :version => "2.54.0",
175
175
  :compression_method => "xz",
176
176
  :windows => {
177
177
  :configure_args => [
@@ -185,7 +185,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
185
185
  ]
186
186
  package.cross_compiling do |spec|
187
187
  if /mingw|mswin/ =~ spec.platform.to_s
188
- spec.add_runtime_dependency("cairo", ">= 1.12.8")
188
+ spec.add_runtime_dependency("cairo", ">= 1.15.9")
189
189
  end
190
190
  end
191
191
  end
@@ -36,7 +36,7 @@ extern "C" {
36
36
 
37
37
  #define RBGLIB_MAJOR_VERSION 3
38
38
  #define RBGLIB_MINOR_VERSION 1
39
- #define RBGLIB_MICRO_VERSION 8
39
+ #define RBGLIB_MICRO_VERSION 9
40
40
 
41
41
  #ifndef RB_ZALLOC
42
42
  # ifdef ZALLOC
@@ -305,6 +305,7 @@ module GNOME2
305
305
  :include_paths,
306
306
  :library_paths,
307
307
  :configure_args,
308
+ :meson_args,
308
309
  :cmake_args,
309
310
  :cc_args,
310
311
  :patches,
@@ -338,6 +339,10 @@ module GNOME2
338
339
  super || []
339
340
  end
340
341
 
342
+ def meson_args
343
+ super || []
344
+ end
345
+
341
346
  def cmake_args
342
347
  super || []
343
348
  end
@@ -4,6 +4,8 @@
4
4
 
5
5
  require "open-uri"
6
6
  require "pathname"
7
+ require "tempfile"
8
+ require "tmpdir"
7
9
 
8
10
  module GNOME2
9
11
  module Rake
@@ -122,11 +124,6 @@ module GNOME2
122
124
  package.windows.patches.each do |patch|
123
125
  sh("patch -p1 < #{@package.patches_dir}/#{patch}")
124
126
  end
125
- if File.exist?("configure")
126
- configure(package)
127
- else
128
- cmake(package)
129
- end
130
127
  common_make_args = []
131
128
  common_make_args << "MAKE=make"
132
129
  common_make_args << "GLIB_COMPILE_SCHEMAS=glib-compile-schemas"
@@ -142,11 +139,29 @@ module GNOME2
142
139
  end
143
140
  ENV["GREP_OPTIONS"] = "--text"
144
141
  # ENV["GI_SCANNER_DEBUG"] = "save-temps"
145
- # build_make_args << "--debug"
146
- # build_make_args << "V=1"
147
- # build_make_args << "VERBOSE=1"
148
- sh("nice", "make", *build_make_args) or exit(false)
149
- sh("make", "install", *install_make_args) or exit(false)
142
+ if File.exist?("meson.build") and not File.exist?("Makefile.am")
143
+ source_dir = Dir.pwd
144
+ build_dir = "build"
145
+ mkdir_p(build_dir)
146
+ Dir.chdir(build_dir) do
147
+ meson(package, source_dir)
148
+ sh(make_args_to_env(build_make_args),
149
+ "nice", "ninja") or exit(false)
150
+ sh(make_args_to_env(install_make_args),
151
+ "ninja", "install") or exit(false)
152
+ end
153
+ else
154
+ if File.exist?("Makefile.in")
155
+ configure(package)
156
+ else
157
+ cmake(package)
158
+ end
159
+ # build_make_args << "--debug"
160
+ # build_make_args << "V=1"
161
+ # build_make_args << "VERBOSE=1"
162
+ sh("nice", "make", *build_make_args) or exit(false)
163
+ sh("make", "install", *install_make_args) or exit(false)
164
+ end
150
165
 
151
166
  package_license_dir = license_dir + package.name
152
167
  mkdir_p(package_license_dir)
@@ -180,6 +195,37 @@ module GNOME2
180
195
  *package.windows.configure_args) or exit(false)
181
196
  end
182
197
 
198
+ def meson(package, source_dir)
199
+ cross_file = Tempfile.new("meson-cross-file")
200
+ cross_file.puts(<<-CROSS_FILE)
201
+ [host_machine]
202
+ system = 'windows'
203
+ cpu_family = 'x86_64'
204
+ cpu = 'x86_64'
205
+ endian = 'littel'
206
+
207
+ [binaries]
208
+ c = '/usr/bin/#{cc(package)}'
209
+ cpp = '/usr/bin/#{cxx(package)}'
210
+ ar = '/usr/bin/#{ar}'
211
+ strip = '/usr/bin/#{strip}'
212
+ dlltool = '/usr/bin/#{dlltool}'
213
+ pkgconfig = '/usr/bin/pkg-config'
214
+ CROSS_FILE
215
+ cross_file.close
216
+ sh({
217
+ "PATH" => "#{g_ir_scanner_bin_dir}:#{ENV["PATH"]}",
218
+ "CPPFLAGS" => cppflags(package),
219
+ "LDFLAGS" => ldflags(package),
220
+ },
221
+ "meson",
222
+ source_dir,
223
+ ".",
224
+ "--prefix=#{dist_dir}",
225
+ "--cross-file=#{cross_file.path}",
226
+ *package.windows.meson_args) or exit(false)
227
+ end
228
+
183
229
  def cmake(package)
184
230
  sh("cmake",
185
231
  ".",
@@ -255,10 +301,27 @@ module GNOME2
255
301
  cxx_command_line.compact.join(" ")
256
302
  end
257
303
 
304
+ def ar
305
+ "#{@package.windows.build_host}-ar"
306
+ end
307
+
308
+ def strip
309
+ "#{@package.windows.build_host}-strip"
310
+ end
311
+
258
312
  def dlltool
259
313
  "#{@package.windows.build_host}-dlltool"
260
314
  end
261
315
 
316
+ def g_ir_scanner_bin_dir
317
+ "#{@package.project_root_dir}/gobject-introspection/" +
318
+ "#{@package.native.relative_binary_dir}/bin"
319
+ end
320
+
321
+ def g_ir_scanner
322
+ "#{g_ir_scanner_bin_dir}/g-ir-scanner"
323
+ end
324
+
262
325
  def cppflags(package)
263
326
  include_paths = package.windows.include_paths
264
327
  if @package.windows.build_dependencies.include?("glib2")
@@ -300,11 +363,18 @@ module GNOME2
300
363
  paths
301
364
  end
302
365
 
366
+ def make_args_to_env(make_args)
367
+ env = {}
368
+ make_args.each do |arg|
369
+ key, value = arg.split("=", 2)
370
+ env[key] = value
371
+ end
372
+ env
373
+ end
374
+
303
375
  def add_gobject_introspection_make_args(package, common_make_args)
304
376
  return unless use_gobject_introspection?(package)
305
377
 
306
- g_ir_scanner = "#{@package.project_root_dir}/gobject-introspection/"
307
- g_ir_scanner << "#{@package.native.relative_binary_dir}/bin/g-ir-scanner"
308
378
  introspection_scanner = "INTROSPECTION_SCANNER=#{g_ir_scanner}"
309
379
  common_make_args << introspection_scanner
310
380
 
@@ -22,7 +22,7 @@ top = File.expand_path(File.join(base, ".."))
22
22
  $LOAD_PATH.unshift(top)
23
23
  require 'test/glib-test-init'
24
24
 
25
- if system("which make > /dev/null")
25
+ if File.exist?("#{top}/Makefile") and system("which make > /dev/null")
26
26
  system("cd #{top.dump} && make > /dev/null") or exit(1)
27
27
  end
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.8
4
+ version: 3.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME2 Project Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-15 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.5.2
216
+ rubygems_version: 2.5.2.1
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Ruby/GLib2 is a Ruby binding of GLib-2.x.