glib2 3.2.9 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +3 -7
- data/ext/glib2/rbglib.c +7 -7
- data/ext/glib2/rbglib.h +2 -2
- data/ext/glib2/rbglib_error.c +7 -4
- data/ext/glib2/rbgobj_signal.c +1 -1
- data/lib/gnome2/rake/native-binary-build-task.rb +11 -17
- data/lib/gnome2/rake/windows-binary-build-task.rb +2 -2
- 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: 42560ee70c7312fba3da7de85a532df79ee25bf3e5b4349cd1fedffab6456b4d
|
4
|
+
data.tar.gz: 0641f51f740794a4e5e766b4984b2cd2b7fdd614443c144b1515f6319f52065f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e17958d37d49057439955c13049dd29b5b1ba935ec413f507de857fcb4c0696c0fef6dbfcd8577f7906b9647ba49f9016b95fcaf87b66f6bc42d90cfa64c737
|
7
|
+
data.tar.gz: 4b13605e314b55f1319c76bc641a5299ffc596eb1dbbe5d8d5d28bee5c5226e1478406e54b6999007b62c882f84b3d31bf49dc32cdee33f81c217aae96215f0b
|
data/Rakefile
CHANGED
@@ -85,13 +85,9 @@ package_task = GNOME2::Rake::PackageTask.new(spec, __dir__) do |package|
|
|
85
85
|
:name => "glib",
|
86
86
|
:download_site => :gnome,
|
87
87
|
:label => "GLib",
|
88
|
-
:version => "2.
|
88
|
+
:version => "2.58.1",
|
89
89
|
:compression_method => "xz",
|
90
90
|
:windows => {
|
91
|
-
:need_autoreconf => true,
|
92
|
-
:patches => [
|
93
|
-
"glib-2.54.1-add-missing-exeext.diff",
|
94
|
-
],
|
95
91
|
:built_file => "bin/libglib-2.0-0.dll",
|
96
92
|
},
|
97
93
|
},
|
@@ -142,7 +138,7 @@ package_task = GNOME2::Rake::PackageTask.new(spec, __dir__) do |package|
|
|
142
138
|
:name => "p11-glue/p11-kit",
|
143
139
|
:download_site => :github,
|
144
140
|
:label => "p11-kit",
|
145
|
-
:version => "0.23.
|
141
|
+
:version => "0.23.14",
|
146
142
|
:windows => {
|
147
143
|
:built_file => "bin/libp11-kit-0.dll",
|
148
144
|
},
|
@@ -169,7 +165,7 @@ package_task = GNOME2::Rake::PackageTask.new(spec, __dir__) do |package|
|
|
169
165
|
:name => "glib-networking",
|
170
166
|
:download_site => :gnome,
|
171
167
|
:label => "glib-networking",
|
172
|
-
:version => "2.
|
168
|
+
:version => "2.58.0",
|
173
169
|
:compression_method => "xz",
|
174
170
|
:windows => {
|
175
171
|
:meson_args => [
|
data/ext/glib2/rbglib.c
CHANGED
@@ -1055,9 +1055,9 @@ Init_glib2(void)
|
|
1055
1055
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXSHORT", INT2FIX(G_MAXSHORT));
|
1056
1056
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXUSHORT", UINT2NUM(G_MAXUSHORT));
|
1057
1057
|
|
1058
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MINLONG",
|
1059
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MAXLONG",
|
1060
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MAXULONG",
|
1058
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MINLONG", LL2NUM(G_MINLONG));
|
1059
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MAXLONG", LL2NUM(G_MAXLONG));
|
1060
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MAXULONG", ULL2NUM(G_MAXULONG));
|
1061
1061
|
|
1062
1062
|
rb_define_const(RG_TARGET_NAMESPACE, "MININT8", INT2FIX(G_MININT8));
|
1063
1063
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXINT8", INT2FIX(G_MAXINT8));
|
@@ -1071,16 +1071,16 @@ Init_glib2(void)
|
|
1071
1071
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXINT32", INT2NUM(G_MAXINT32));
|
1072
1072
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXUINT32", UINT2NUM(G_MAXUINT32));
|
1073
1073
|
|
1074
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MININT64",
|
1074
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MININT64", LL2NUM(G_MININT64));
|
1075
1075
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXINT64", LL2NUM(G_MAXINT64));
|
1076
1076
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXUINT64", ULL2NUM(G_MAXUINT64));
|
1077
1077
|
|
1078
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MAXSIZE",
|
1078
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MAXSIZE", ULL2NUM(G_MAXSIZE));
|
1079
1079
|
|
1080
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MINFLOAT",
|
1080
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MINFLOAT", DBL2NUM(G_MINFLOAT));
|
1081
1081
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXFLOAT", DBL2NUM(G_MAXFLOAT));
|
1082
1082
|
|
1083
|
-
rb_define_const(RG_TARGET_NAMESPACE, "MINDOUBLE",
|
1083
|
+
rb_define_const(RG_TARGET_NAMESPACE, "MINDOUBLE", DBL2NUM(G_MINDOUBLE));
|
1084
1084
|
rb_define_const(RG_TARGET_NAMESPACE, "MAXDOUBLE", DBL2NUM(G_MAXDOUBLE));
|
1085
1085
|
|
1086
1086
|
/* Standard Macros */
|
data/ext/glib2/rbglib.h
CHANGED
data/ext/glib2/rbglib_error.c
CHANGED
@@ -127,12 +127,15 @@ rbgerr_define_gerror(GQuark domain, const gchar *name, VALUE module, VALUE paren
|
|
127
127
|
gchar *code_class_name;
|
128
128
|
|
129
129
|
code_constant_name = nick_to_constant_name(entry->value_nick);
|
130
|
-
|
131
|
-
|
132
|
-
|
130
|
+
code_class_name = nick_to_class_name(entry->value_nick);
|
131
|
+
|
132
|
+
if (strcmp(code_constant_name, code_class_name) != 0) {
|
133
|
+
rbgobj_define_const(error_class,
|
134
|
+
code_constant_name,
|
135
|
+
INT2NUM(entry->value));
|
136
|
+
}
|
133
137
|
g_free(code_constant_name);
|
134
138
|
|
135
|
-
code_class_name = nick_to_class_name(entry->value_nick);
|
136
139
|
code_class = rb_define_class_under(error_class,
|
137
140
|
code_class_name,
|
138
141
|
error_class);
|
data/ext/glib2/rbgobj_signal.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- ruby -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2013-
|
3
|
+
# Copyright (C) 2013-2018 Ruby-GNOME2 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
|
@@ -90,24 +90,18 @@ module GNOME2
|
|
90
90
|
package.native.patches.each do |patch|
|
91
91
|
sh("patch -p1 < #{@package.patches_dir}/#{patch}")
|
92
92
|
end
|
93
|
-
|
94
|
-
sh("autoreconf --install") if package.native.need_autoreconf?
|
95
|
-
sh("./configure",
|
96
|
-
"PKG_CONFIG_PATH=#{pkg_config_path}",
|
97
|
-
"--prefix=#{dist_dir}",
|
98
|
-
*package.native.configure_args) or exit(false)
|
93
|
+
build_dir = "build"
|
99
94
|
env = []
|
100
95
|
env << "PKG_CONFIG_PATH=#{pkg_config_path}"
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
sh("env", *env, "
|
110
|
-
sh("env", *env, "make", "install", *install_make_args) or exit(false)
|
96
|
+
env << "GLIB_COMPILE_SCHEMAS=glib-compile-schemas"
|
97
|
+
sh("env",
|
98
|
+
*env,
|
99
|
+
"meson",
|
100
|
+
build_dir,
|
101
|
+
"--prefix=#{dist_dir}",
|
102
|
+
"--libdir=lib") or exit(false)
|
103
|
+
sh("env", *env, "nice", "ninja", "-C", build_dir) or exit(false)
|
104
|
+
sh("env", *env, "ninja", "-C", build_dir, "install") or exit(false)
|
111
105
|
end
|
112
106
|
end
|
113
107
|
|
@@ -118,7 +118,7 @@ module GNOME2
|
|
118
118
|
# build_make_args << "V=1"
|
119
119
|
# build_make_args << "VERBOSE=1"
|
120
120
|
# env["GI_SCANNER_DEBUG"] = "save-temps"
|
121
|
-
if File.exist?("meson.build")
|
121
|
+
if File.exist?("meson.build")
|
122
122
|
source_dir = Dir.pwd
|
123
123
|
build_dir = "build"
|
124
124
|
mkdir_p(build_dir)
|
@@ -130,7 +130,7 @@ module GNOME2
|
|
130
130
|
"ninja", "install") or exit(false)
|
131
131
|
end
|
132
132
|
else
|
133
|
-
if File.exist?("Makefile.in")
|
133
|
+
if File.exist?("Makefile.am") or File.exist?("Makefile.in")
|
134
134
|
configure(env, package)
|
135
135
|
else
|
136
136
|
cmake(env, package)
|
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.
|
4
|
+
version: 3.3.0
|
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: 2018-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pkg-config
|