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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5bab9617d429bbf93a1a4f64aeda187505f1e92cc91771a22c1d5cf5ab9bcbbd
4
- data.tar.gz: 41746bd6918b289a5bf7076d2d104252cfc634e3bd839ef1af112eb01069d265
3
+ metadata.gz: 42560ee70c7312fba3da7de85a532df79ee25bf3e5b4349cd1fedffab6456b4d
4
+ data.tar.gz: 0641f51f740794a4e5e766b4984b2cd2b7fdd614443c144b1515f6319f52065f
5
5
  SHA512:
6
- metadata.gz: c9c083a3e5303382faac039b198265622c222928f8012efb6bb3370529dbb7dba1d2a8e176397d83a362ae7c97fe9ac25a5587e0893eaab80e1d349104cc6bac
7
- data.tar.gz: 6543568bef9d5aeef2e88d9557d202fa828b807d7a464247c7fc06b19a9e45bedba6acd94e82c4997a720e8ebaf09337db3bb7d989e46a01aa6db3cee178d28c
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.56.1",
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.12",
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.56.1",
168
+ :version => "2.58.0",
173
169
  :compression_method => "xz",
174
170
  :windows => {
175
171
  :meson_args => [
@@ -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", INT2FIX(G_MINLONG));
1059
- rb_define_const(RG_TARGET_NAMESPACE, "MAXLONG", INT2NUM(G_MAXLONG));
1060
- rb_define_const(RG_TARGET_NAMESPACE, "MAXULONG", UINT2NUM(G_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", INT2FIX(G_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", UINT2NUM(G_MAXSIZE));
1078
+ rb_define_const(RG_TARGET_NAMESPACE, "MAXSIZE", ULL2NUM(G_MAXSIZE));
1079
1079
 
1080
- rb_define_const(RG_TARGET_NAMESPACE, "MINFLOAT", INT2FIX(G_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", INT2FIX(G_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 */
@@ -35,8 +35,8 @@ extern "C" {
35
35
  #endif /* __cplusplus */
36
36
 
37
37
  #define RBGLIB_MAJOR_VERSION 3
38
- #define RBGLIB_MINOR_VERSION 2
39
- #define RBGLIB_MICRO_VERSION 9
38
+ #define RBGLIB_MINOR_VERSION 3
39
+ #define RBGLIB_MICRO_VERSION 0
40
40
 
41
41
  #ifndef RB_ZALLOC
42
42
  # ifdef ZALLOC
@@ -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
- rbgobj_define_const(error_class,
131
- code_constant_name,
132
- INT2NUM(entry->value));
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);
@@ -131,7 +131,7 @@ accumulator_func(G_GNUC_UNUSED GSignalInvocationHint *ihint,
131
131
  continue_emission = RVAL2CBOOL(rb_ary_entry(tmp, 0));
132
132
  val = rb_ary_entry(tmp, 1);
133
133
  } else {
134
- val = tmp;
134
+ val = tmp;
135
135
  }
136
136
  rbgobj_rvalue_to_gvalue(val, return_accu);
137
137
 
@@ -1,6 +1,6 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # Copyright (C) 2013-2015 Ruby-GNOME2 Project Team
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
- sh("./autogen.sh") if package.native.need_autogen?
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
- common_make_args = []
102
- common_make_args << "GLIB_COMPILE_SCHEMAS=glib-compile-schemas"
103
- build_make_args = common_make_args.dup
104
- install_make_args = common_make_args.dup
105
- if package.native.build_concurrently?
106
- make_n_jobs = ENV["MAKE_N_JOBS"]
107
- build_make_args << "-j#{make_n_jobs}" if make_n_jobs
108
- end
109
- sh("env", *env, "nice", "make", *build_make_args) or exit(false)
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") and not File.exist?("Makefile.am")
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.2.9
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-08-08 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pkg-config