pkg-config 1.4.6 → 1.4.7

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: b1c1b5cb0cedf685a806efd09bdfbf787852c2b2eef92b43754a69156f5acb65
4
- data.tar.gz: 4528eb9c10553f8547159793f39a21cae9f6ff33a98d7790c57b9f9f69c6718b
3
+ metadata.gz: 56f761ee856442aa5a1cab954113684151dffb48a87069862a7600ae549ae583
4
+ data.tar.gz: c005ee17fbd0499d8a4f28c6cae27d670e0ef891e69f63fcf5aef42dc07e5a0b
5
5
  SHA512:
6
- metadata.gz: 0cae292cac6ced18946b212af545098462422f69b8be86b40a8e069640934060d6449ba2dcdc7cf81f99f9e28c962b5ac61c4236831cdbc50e45be02e2f8e89a
7
- data.tar.gz: 0d1fc6aa1408c6b72a83e8381e36db9944a6bc704ad8814cde4807cf06195b840de7e666342ae440a76bdc155400e3e5036ba2d3a3e9a6a5b91250172aeb5243
6
+ metadata.gz: fe85cafd6e90bcc5722631dc59e40e86944d8e0fe3603e55560a5ece0eea63bdbe9a631a44a80c7b116a562b7ec6445fa5a17a64f15b8c54ac1e41b282edfeca
7
+ data.tar.gz: 91e6dbeaa6205cabe300c12cfa6f93088145d79c3dffc7d30f3ed9868fe943fa22e0dcde683d7ed2e4d7df1f1d29939abe0763ae1f82bc273d17efb766021be4
data/NEWS CHANGED
@@ -1,5 +1,16 @@
1
1
  = NEWS
2
2
 
3
+ == 1.4.7 - 2022-01-16
4
+
5
+ === Improvements
6
+
7
+ * Added support for RubyInstaller2 3.1 or later.
8
+ [Reported by golirev][GitHub:ruby-gnome/ruby-gnome#1457]
9
+
10
+ === Thanks
11
+
12
+ * golirev
13
+
3
14
  == 1.4.6 - 2021-04-12
4
15
 
5
16
  === Improvements
@@ -15,5 +15,5 @@
15
15
  # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
  module PKGConfig
18
- VERSION = "1.4.6"
18
+ VERSION = "1.4.7"
19
19
  end
data/lib/pkg-config.rb CHANGED
@@ -301,7 +301,7 @@ class PackageConfig
301
301
  end
302
302
 
303
303
  def normalize_path_flags(path_flags, flag_option)
304
- return path_flags unless /-mingw32\z/ === RUBY_PLATFORM
304
+ return path_flags unless /-mingw(?:32|-ucrt)\z/ === RUBY_PLATFORM
305
305
 
306
306
  pkg_config_prefix = self.class.native_pkg_config_prefix
307
307
  return path_flags unless pkg_config_prefix
@@ -25,12 +25,14 @@ class PkgConfigTest < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  def test_cflags
28
+ omit("Fragile on macOS") if RUBY_PLATFORM.include?("darwin")
28
29
  assert_pkg_config("cairo", ["--cflags"], @cairo.cflags)
29
30
  only_pkg_config_version(0, 29)
30
31
  assert_pkg_config("cairo-png", ["--cflags"], @cairo_png.cflags)
31
32
  end
32
33
 
33
34
  def test_cflags_only_I
35
+ omit("Fragile on macOS") if RUBY_PLATFORM.include?("darwin")
34
36
  assert_pkg_config("cairo", ["--cflags-only-I"], @cairo.cflags_only_I)
35
37
  only_pkg_config_version(0, 29)
36
38
  assert_pkg_config("cairo-png", ["--cflags-only-I"], @cairo_png.cflags_only_I)
@@ -175,7 +177,22 @@ class PkgConfigTest < Test::Unit::TestCase
175
177
  def pkg_config(package, *args)
176
178
  args.unshift("--define-variable=libdir=#{@custom_libdir}")
177
179
  args = args.collect {|arg| arg.dump}.join(" ")
178
- `pkg-config #{args} #{package}`.strip
180
+ normalize_pkg_config_result(`pkg-config #{args} #{package}`.strip)
181
+ end
182
+
183
+ def normalize_pkg_config_result(result)
184
+ case RUBY_PLATFORM
185
+ when /mingw/
186
+ result = result.gsub(/\/bin\/..\//, "/")
187
+ if result.include?(" -mms-bitfields ")
188
+ # Reorder -mms-bitfields (non path flag)
189
+ result = result.gsub(" -mms-bitfields ", " ")
190
+ result = "-mms-bitfields #{result}"
191
+ end
192
+ result
193
+ else
194
+ result
195
+ end
179
196
  end
180
197
 
181
198
  def assert_pkg_config(package, pkg_config_args, actual)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2022-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.3.0.dev
92
+ rubygems_version: 3.4.0.dev
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: A pkg-config implementation for Ruby