pkg-config 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/NEWS.md +25 -0
- data/lib/pkg-config.rb +21 -11
- 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: a7e1cf5d660f2266bd2b7b33b4bea74f886eaf24018e6381ece093e3175fc9cc
|
4
|
+
data.tar.gz: 5297a48889e115f5f08a508eaf3bd43e409d56ea19354f6d8817b31422cc3106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f13c71bc84f415e69190fca6eb0518242896c4606fa56f585ced55cad394d2d5d8916fa098a978418736b145959c332056597be5570598e7fb94bd2e891c53
|
7
|
+
data.tar.gz: 2e88e75e57d264b56a756dd720a504f8138ecdced79ecde4358915a394793cfe7b4030bdf6e9c2bb9ad433d6566bad33efd588bd250abe4133a9fcee968114b5
|
data/NEWS.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# NEWS
|
2
2
|
|
3
|
+
## 1.6.2 - 2025-04-27
|
4
|
+
|
5
|
+
### Improvements
|
6
|
+
|
7
|
+
* Added support for detecting Homebrew's pkgconfig path without
|
8
|
+
`pkgconf`.
|
9
|
+
* [apche/arrow#46235](https://github.com/apache/arrow/issues/46245)
|
10
|
+
* Reported by Shizuo Fujita
|
11
|
+
|
12
|
+
### Thanks
|
13
|
+
|
14
|
+
* Shizuo Fujita
|
15
|
+
|
16
|
+
## 1.6.1 - 2025-04-17
|
17
|
+
|
18
|
+
### Improvements
|
19
|
+
|
20
|
+
* Added support for `--with-pkg-config-path`.
|
21
|
+
* [ruby-gnome/ruby-gnome#1670](https://github.com/ruby-gnome/ruby-gnome/issues/1670)
|
22
|
+
* Reported by Stanisław Pitucha
|
23
|
+
|
24
|
+
### Thanks
|
25
|
+
|
26
|
+
* Stanisław Pitucha
|
27
|
+
|
3
28
|
## 1.6.0 - 2025-03-02
|
4
29
|
|
5
30
|
### Improvements
|
data/lib/pkg-config.rb
CHANGED
@@ -19,7 +19,7 @@ require "rbconfig"
|
|
19
19
|
require "shellwords"
|
20
20
|
|
21
21
|
module PKGConfig
|
22
|
-
VERSION = "1.6.
|
22
|
+
VERSION = "1.6.2"
|
23
23
|
|
24
24
|
@@paths = []
|
25
25
|
@@override_variables = {}
|
@@ -340,21 +340,29 @@ class PackageConfig
|
|
340
340
|
if brew
|
341
341
|
homebrew_repository = run_command("brew", "--repository")
|
342
342
|
if homebrew_repository
|
343
|
-
|
344
|
-
|
343
|
+
homebrew_repository_candidates <<
|
344
|
+
Pathname(homebrew_repository.strip)
|
345
345
|
end
|
346
346
|
end
|
347
347
|
homebrew_repository_candidates.uniq.each do |candidate|
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
348
|
+
mac_pkgconfig_base_path =
|
349
|
+
candidate + "Library/Homebrew/os/mac/pkgconfig"
|
350
|
+
mac_pkgconfig_path = mac_pkgconfig_base_path + mac_os_version
|
351
|
+
unless mac_pkgconfig_path.exist?
|
352
|
+
mac_pkgconfig_path =
|
353
|
+
mac_pkgconfig_base_path + mac_os_version.gsub(/\.\d+\z/, "")
|
352
354
|
end
|
353
|
-
paths <<
|
355
|
+
paths << mac_pkgconfig_path.to_s if mac_pkgconfig_path.exist?
|
356
|
+
|
357
|
+
pkgconfig_path = candidate + "lib/pkgconfig"
|
358
|
+
paths << pkgconfig_path.to_s if pkgconfig_path.exist?
|
354
359
|
end
|
355
360
|
end
|
356
361
|
paths.concat(default_paths)
|
357
|
-
|
362
|
+
[
|
363
|
+
with_config("pkg-config-path") || ENV["PKG_CONFIG_PATH"],
|
364
|
+
*paths,
|
365
|
+
].compact.join(SEPARATOR)
|
358
366
|
end
|
359
367
|
|
360
368
|
def run_command(*command_line)
|
@@ -388,8 +396,10 @@ class PackageConfig
|
|
388
396
|
@name = name
|
389
397
|
end
|
390
398
|
@options = options
|
391
|
-
|
392
|
-
|
399
|
+
@paths = [
|
400
|
+
@options[:path],
|
401
|
+
self.class.default_path,
|
402
|
+
].compact.join(SEPARATOR).split(SEPARATOR)
|
393
403
|
@paths.unshift(*(@options[:paths] || []))
|
394
404
|
@paths = normalize_paths(@paths)
|
395
405
|
@msvc_syntax = @options[:msvc_syntax]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pkg-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sutou Kouhei
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: pkg-config can be used in your extconf.rb to properly detect need libraries
|
13
13
|
for compiling Ruby native extensions
|
@@ -44,7 +44,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
46
|
requirements: []
|
47
|
-
rubygems_version: 3.6.
|
47
|
+
rubygems_version: 3.6.7
|
48
48
|
specification_version: 4
|
49
49
|
summary: A pkg-config implementation for Ruby
|
50
50
|
test_files:
|