cairo-gobject 3.5.1 → 4.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5fe625f3bfdcaecaf261b540c1cae43eaadb6762e65c411928166b44a6d39d61
4
- data.tar.gz: 05cabd0e385a6319efdf3ba310d067556d131e9b43ee18d45b97b332ca25e751
3
+ metadata.gz: 18b53b504c8adeb01a0ea35d8bd8f00f8a9ecc96760d10d9383f0deb681fd906
4
+ data.tar.gz: f36ecf441b1fb7caa3e3fa91c95ee07f1170d87ff8ef6320e1f406598273efd6
5
5
  SHA512:
6
- metadata.gz: f33a25dbf8a9314e83c666fc30b979978c0ff1e75a7a9635a25388b94a6c81dfece317f4682d8d2fd64a7fad5e642413668f25cd75711ff6b7273ceb23118664
7
- data.tar.gz: 340a2400d70fea349626d6379b88b4ac8d7b752909f2c5b16fcbc3700823c380438db661ffd178e24d5db6857baf135249e48d12b3e5bd605a1f1ba74e2223f2
6
+ metadata.gz: ee409e410713259b75c1717ce9589156a88570f6515e6b2857096343cddd5ec25c2c600222f942d5c037631d6e9dcc80f4daae2c20db9adda1784c6fb039bb7e
7
+ data.tar.gz: 7fd27ef7e4498fd362a275e907b561109850ef52602c73891e4874967e9ccff887fb3c629a03fbb9ff7f21a8e5914b337979099f127b042e3e7003f55fd1e52d
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
- # Copyright (C) 2013-2019 Ruby-GNOME Project Team
3
+ # Copyright (C) 2013-2023 Ruby-GNOME Project Team
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
@@ -24,15 +24,8 @@ top_dir = base_dir.parent.expand_path
24
24
  top_build_dir = Pathname(".").parent.parent.parent.expand_path
25
25
 
26
26
  mkmf_gnome2_dir = top_dir + "glib2" + "lib"
27
- version_suffix = ""
28
- unless mkmf_gnome2_dir.exist?
29
- if /(-\d+\.\d+\.\d+)(?:\.\d+)?\z/ =~ base_dir.basename.to_s
30
- version_suffix = $1
31
- mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + "lib"
32
- end
33
- end
27
+ $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s) if mkmf_gnome2_dir.exist?
34
28
 
35
- $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
36
29
 
37
30
  module_name = "cairo_gobject"
38
31
  package_id = "cairo-gobject"
@@ -40,12 +33,10 @@ package_id = "cairo-gobject"
40
33
  require "mkmf-gnome"
41
34
 
42
35
  ["glib2"].each do |package|
43
- directory = "#{package}#{version_suffix}"
44
- build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
45
- add_depend_package(package, "#{directory}/ext/#{package}",
36
+ add_depend_package(package,
37
+ "#{package}/ext/#{package}",
46
38
  top_dir.to_s,
47
- :top_build_dir => top_build_dir.to_s,
48
- :target_build_dir => build_dir)
39
+ top_build_dir: top_build_dir.to_s)
49
40
  end
50
41
 
51
42
  unless required_pkg_config_package(package_id,
@@ -68,6 +59,42 @@ create_pkg_config_file("Ruby/CairoGObject",
68
59
  ensure_objs
69
60
 
70
61
  $defs << "-DRUBY_CAIRO_GOBJECT_COMPILATION"
62
+ case RUBY_PLATFORM
63
+ when /darwin/
64
+ symbols_in_external_bundles = [
65
+ "_rb_cCairo_Context",
66
+ "_rb_cCairo_Device",
67
+ "_rb_cCairo_FontFace",
68
+ "_rb_cCairo_FontOptions",
69
+ "_rb_cCairo_Pattern",
70
+ "_rb_cCairo_Region",
71
+ "_rb_cCairo_ScaledFont",
72
+ "_rb_cCairo_Surface",
73
+ "_rb_cairo_context_from_ruby_object",
74
+ "_rb_cairo_context_to_ruby_object",
75
+ "_rb_cairo_device_from_ruby_object",
76
+ "_rb_cairo_device_to_ruby_object",
77
+ "_rb_cairo_font_face_from_ruby_object",
78
+ "_rb_cairo_font_face_to_ruby_object",
79
+ "_rb_cairo_font_options_from_ruby_object",
80
+ "_rb_cairo_font_options_to_ruby_object",
81
+ "_rb_cairo_pattern_from_ruby_object",
82
+ "_rb_cairo_pattern_to_ruby_object",
83
+ "_rb_cairo_region_from_ruby_object",
84
+ "_rb_cairo_region_to_ruby_object",
85
+ "_rb_cairo_scaled_font_from_ruby_object",
86
+ "_rb_cairo_scaled_font_to_ruby_object",
87
+ "_rb_cairo_surface_from_ruby_object",
88
+ "_rb_cairo_surface_to_ruby_object",
89
+ "_rbgobj_convert_define",
90
+ "_rbgobj_define_class",
91
+ "_rbgobj_gtype_new",
92
+ "_rbgobj_make_boxed",
93
+ ]
94
+ symbols_in_external_bundles.each do |symbol|
95
+ $DLDFLAGS << " -Wl,-U,#{symbol}"
96
+ end
97
+ end
71
98
  create_makefile(module_name)
72
99
 
73
100
  pkg_config_dir = with_config("pkg-config-dir")
@@ -136,21 +136,6 @@ DEFINE_CONVERSION(region,
136
136
  RVAL2CRREGION,
137
137
  CRREGION2RVAL)
138
138
 
139
- #ifdef _WIN32
140
- /* Workaround: See glib2/ext/glib2/rbglib.c for details. */
141
- BOOL WINAPI
142
- DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
143
- G_GNUC_UNUSED DWORD fdwReason,
144
- G_GNUC_UNUSED LPVOID lpvReserved);
145
- BOOL WINAPI
146
- DllMain(G_GNUC_UNUSED HINSTANCE hinstDLL,
147
- G_GNUC_UNUSED DWORD fdwReason,
148
- G_GNUC_UNUSED LPVOID lpvReserved)
149
- {
150
- return TRUE;
151
- }
152
- #endif
153
-
154
139
  void
155
140
  Init_cairo_gobject(void)
156
141
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cairo-gobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 4.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2023-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cairo
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.5.1
33
+ version: 4.1.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.5.1
40
+ version: 4.1.2
41
41
  description: Ruby/CairoGObject is a Ruby binding of cairo-gobject.
42
42
  email: ruby-gnome2-devel-en@lists.sourceforge.net
43
43
  executables: []
@@ -86,7 +86,7 @@ homepage: https://ruby-gnome2.osdn.jp/
86
86
  licenses:
87
87
  - LGPL-2.1+
88
88
  metadata: {}
89
- post_install_message:
89
+ post_install_message:
90
90
  rdoc_options: []
91
91
  require_paths:
92
92
  - lib
@@ -101,8 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.4.0.dev
105
- signing_key:
104
+ rubygems_version: 3.5.0.dev
105
+ signing_key:
106
106
  specification_version: 4
107
107
  summary: Ruby/CairoGObject is a Ruby binding of cairo-gobject.
108
108
  test_files: []