glib2 4.0.5 → 4.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/glib2/rbglib.h +1 -1
- data/lib/mkmf-gnome.rb +52 -23
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91d58ebbc67faae560e463b38b00e84116cfd264a108d42df4224facb91fecb6
|
4
|
+
data.tar.gz: 131c0aae3faa569924120d50d727ea39fcff6c2c960e3a6a70ef0873f4c9747d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a8a8582efd75c41738c782af415bc51ff895ef955a6f5e0fc94df15f7c0238679b8b072b9dcd48a759b5c60670937a75550a3578621ab1a59d2c297e8720d7
|
7
|
+
data.tar.gz: cd18a1b1b4496de1211a39dcf8a50ebec9ee1aaf2bcd63b301ff0af8f742fbdaf45dfc26cce9239b9cc817a0599546fe184629290cab3fd1d25ea31ae01cc03e
|
data/ext/glib2/rbglib.h
CHANGED
data/lib/mkmf-gnome.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2003-
|
1
|
+
# Copyright (C) 2003-2022 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -155,21 +155,15 @@ setup_homebrew
|
|
155
155
|
|
156
156
|
#add_depend_package("glib2", "ext/glib2", "/...../ruby-gnome2")
|
157
157
|
def add_depend_package(target_name, target_srcdir, top_srcdir, options={})
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
target_build_dir)
|
165
|
-
end
|
166
|
-
|
167
|
-
[top_srcdir,
|
168
|
-
File.join(top_srcdir, target_name),
|
169
|
-
$configure_args['--topdir'],
|
170
|
-
File.join($configure_args['--topdir'], target_name)].each do |topdir|
|
158
|
+
[
|
159
|
+
top_srcdir,
|
160
|
+
File.join(top_srcdir, target_name),
|
161
|
+
$configure_args['--topdir'],
|
162
|
+
File.join($configure_args['--topdir'], target_name),
|
163
|
+
].each do |topdir|
|
171
164
|
topdir = File.expand_path(topdir)
|
172
165
|
target_source_dir_full_path = File.join(topdir, target_srcdir)
|
166
|
+
next unless File.exist?(target_source_dir_full_path)
|
173
167
|
|
174
168
|
top_build_dir = options[:top_build_dir] || topdir
|
175
169
|
target_build_dir = options[:target_build_dir] || target_srcdir
|
@@ -185,11 +179,34 @@ def add_depend_package(target_name, target_srcdir, top_srcdir, options={})
|
|
185
179
|
end
|
186
180
|
add_depend_package_path(target_name,
|
187
181
|
target_source_dir_full_path,
|
188
|
-
target_build_dir_full_path
|
182
|
+
target_build_dir_full_path,
|
183
|
+
false)
|
184
|
+
return
|
189
185
|
end
|
186
|
+
|
187
|
+
gem_spec = find_gem_spec(target_name)
|
188
|
+
raise "depended gem isn't found: #{target_name}" unless gem_spec
|
189
|
+
target_source_dir = File.join(gem_spec.full_gem_path, "ext/#{target_name}")
|
190
|
+
target_build_dir = target_source_dir
|
191
|
+
add_depend_package_path(target_name, target_source_dir, target_build_dir)
|
190
192
|
end
|
191
193
|
|
192
|
-
def add_depend_package_path(target_name,
|
194
|
+
def add_depend_package_path(target_name,
|
195
|
+
target_source_dir,
|
196
|
+
target_build_dir,
|
197
|
+
is_gem=true)
|
198
|
+
pp [__method__,
|
199
|
+
target_name,
|
200
|
+
target_source_dir,
|
201
|
+
target_build_dir,
|
202
|
+
is_gem,
|
203
|
+
File.exist?(target_source_dir),
|
204
|
+
File.exist?(target_build_dir),
|
205
|
+
File.join(target_source_dir, "..", "..", "lib", target_name.gsub(/-/, "_") + ".so"),
|
206
|
+
File.exist?(File.join(target_source_dir, "..", "..", "lib", target_name.gsub(/-/, "_") + ".so")),
|
207
|
+
File.join(target_build_dir, target_name.gsub(/-/, "_") + ".so"),
|
208
|
+
File.exist?(File.join(target_build_dir, target_name.gsub(/-/, "_") + ".so")),
|
209
|
+
]
|
193
210
|
if File.exist?(target_source_dir)
|
194
211
|
$INCFLAGS = "-I#{target_source_dir}".quote + " #{$INCFLAGS}"
|
195
212
|
end
|
@@ -199,12 +216,20 @@ def add_depend_package_path(target_name, target_source_dir, target_build_dir)
|
|
199
216
|
$INCFLAGS = "-I#{target_build_dir}".quote + " #{$INCFLAGS}"
|
200
217
|
end
|
201
218
|
|
202
|
-
library_base_name =
|
219
|
+
library_base_name = target_name.gsub(/-/, "_")
|
220
|
+
if is_gem
|
221
|
+
# .../glib2/ext/glib2/ -> .../glib2/ext/glib2/../../lib/
|
222
|
+
# (.../glib2/lib/)
|
223
|
+
library_dir = File.join(target_source_dir, "..", "..", "lib")
|
224
|
+
else
|
225
|
+
library_dir = target_build_dir
|
226
|
+
end
|
203
227
|
case RUBY_PLATFORM
|
204
228
|
when /cygwin|mingw/
|
205
|
-
|
229
|
+
library_path = File.join(library_dir, "#{library_base_name}.so")
|
230
|
+
$libs << " #{library_path}"
|
206
231
|
when /mswin/
|
207
|
-
$DLDFLAGS << " /libpath:#{
|
232
|
+
$DLDFLAGS << " /libpath:#{library_dir}"
|
208
233
|
$libs << " #{library_base_name}-$(arch).lib"
|
209
234
|
end
|
210
235
|
end
|
@@ -431,10 +456,14 @@ def check_cairo(options={})
|
|
431
456
|
end
|
432
457
|
if rcairo_source_dir.nil?
|
433
458
|
cairo_gem_spec = find_gem_spec("cairo")
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
459
|
+
if cairo_gem_spec
|
460
|
+
rcairo_source_dir = cairo_gem_spec.full_gem_path
|
461
|
+
rcairo_ext_source_dir = File.join(rcairo_source_dir, "ext", "cairo")
|
462
|
+
add_depend_package_path("cairo",
|
463
|
+
rcairo_ext_source_dir,
|
464
|
+
rcairo_ext_source_dir)
|
465
|
+
end
|
466
|
+
else
|
438
467
|
options = {}
|
439
468
|
build_dir = "tmp/#{RUBY_PLATFORM}/cairo/#{RUBY_VERSION}"
|
440
469
|
if File.exist?(File.join(rcairo_source_dir, build_dir))
|
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: 4.0.
|
4
|
+
version: 4.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|