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 +4 -4
- data/NEWS +11 -0
- data/lib/pkg-config/version.rb +1 -1
- data/lib/pkg-config.rb +1 -1
- data/test/test-pkg-config.rb +18 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56f761ee856442aa5a1cab954113684151dffb48a87069862a7600ae549ae583
|
4
|
+
data.tar.gz: c005ee17fbd0499d8a4f28c6cae27d670e0ef891e69f63fcf5aef42dc07e5a0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe85cafd6e90bcc5722631dc59e40e86944d8e0fe3603e55560a5ece0eea63bdbe9a631a44a80c7b116a562b7ec6445fa5a17a64f15b8c54ac1e41b282edfeca
|
7
|
+
data.tar.gz: 91e6dbeaa6205cabe300c12cfa6f93088145d79c3dffc7d30f3ed9868fe943fa22e0dcde683d7ed2e4d7df1f1d29939abe0763ae1f82bc273d17efb766021be4
|
data/NEWS
CHANGED
data/lib/pkg-config/version.rb
CHANGED
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 /-
|
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
|
data/test/test-pkg-config.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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
|