pkg-config 1.6.1 → 1.6.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.md +26 -0
  3. data/lib/pkg-config.rb +18 -8
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef8beac3c87c96d3308aa5f2f8ef54f7f9036a70641609d523068ee9867c0703
4
- data.tar.gz: ef4c71b465bb7c533629b85a300a1e258320ac1f4eea7bb042f8a378fb3a56f5
3
+ metadata.gz: 53a3d87cdf57d9d78a5458eb6743ae3dd175e0760284c0ed6b885149ef3ebd53
4
+ data.tar.gz: d6c27bc63a6e3191ee88b53387428cfedbced08104f8d5c71a68f6deb75a82a8
5
5
  SHA512:
6
- metadata.gz: f633d31398dc965c562933ecc42fa04c83451a5c7701fbed586534fbd0ecd740ae44b678c6dab666e2461c55b6601b126eb154d49be4965aacb7e0bcee0e6821
7
- data.tar.gz: 7284c972962f75e0b6147ee338ab4ad8c4791e93c74d7857af535293b32bfd74bb2e03d4671951176bf889965df3abb34f0a43c5d9008eb1c7e7f1a90701374d
6
+ metadata.gz: 488102c7ff0f8d6bfb6ba89d28a3db6bc98a1ecf4bcfa78df1d04020b1fede9e4517549830214fcd941832fe2db878a643951b7943b4d2edfee9d59a0777fd89
7
+ data.tar.gz: b3d212d31f385b43dbf5e24d2632fc99b0523d1b1f1defc458daceae11bb4021ecfc9a3fc34e7609c3fd94638c970dc9f34e6c6f4abee14c2f1e33a6f9dc4da3
data/NEWS.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # NEWS
2
2
 
3
+ ## 1.6.3 - 2025-08-27
4
+
5
+ ### Improvements
6
+
7
+ * Added support for detecting Homebrew's pkgconfig path by `brew
8
+ --path`.
9
+ * [ruby-gnome/pkg-config#36](https://github.com/ruby-gnome/pkg-config/issues/36)
10
+ * Patch by meredith
11
+
12
+ ### Thanks
13
+
14
+ * meredith
15
+
16
+ ## 1.6.2 - 2025-04-27
17
+
18
+ ### Improvements
19
+
20
+ * Added support for detecting Homebrew's pkgconfig path without
21
+ `pkgconf`.
22
+ * [apche/arrow#46235](https://github.com/apache/arrow/issues/46245)
23
+ * Reported by Shizuo Fujita
24
+
25
+ ### Thanks
26
+
27
+ * Shizuo Fujita
28
+
3
29
  ## 1.6.1 - 2025-04-17
4
30
 
5
31
  ### 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.1"
22
+ VERSION = "1.6.3"
23
23
 
24
24
  @@paths = []
25
25
  @@override_variables = {}
@@ -340,17 +340,27 @@ class PackageConfig
340
340
  if brew
341
341
  homebrew_repository = run_command("brew", "--repository")
342
342
  if homebrew_repository
343
- homebrew_repository_candidates <<
344
- Pathname(homebrew_repository.to_s)
343
+ homebrew_repository_candidates <<
344
+ Pathname(homebrew_repository.strip)
345
+ end
346
+ homebrew_prefix = run_command("brew", "--prefix")
347
+ if homebrew_prefix
348
+ homebrew_repository_candidates <<
349
+ Pathname(homebrew_prefix.strip)
345
350
  end
346
351
  end
347
352
  homebrew_repository_candidates.uniq.each do |candidate|
348
- pkgconfig_base_path = candidate + "Library/Homebrew/os/mac/pkgconfig"
349
- path = pkgconfig_base_path + mac_os_version
350
- unless path.exist?
351
- path = pkgconfig_base_path + mac_os_version.gsub(/\.\d+\z/, "")
353
+ mac_pkgconfig_base_path =
354
+ candidate + "Library/Homebrew/os/mac/pkgconfig"
355
+ mac_pkgconfig_path = mac_pkgconfig_base_path + mac_os_version
356
+ unless mac_pkgconfig_path.exist?
357
+ mac_pkgconfig_path =
358
+ mac_pkgconfig_base_path + mac_os_version.gsub(/\.\d+\z/, "")
352
359
  end
353
- paths << path.to_s if path.exist?
360
+ paths << mac_pkgconfig_path.to_s if mac_pkgconfig_path.exist?
361
+
362
+ pkgconfig_path = candidate + "lib/pkgconfig"
363
+ paths << pkgconfig_path.to_s if pkgconfig_path.exist?
354
364
  end
355
365
  end
356
366
  paths.concat(default_paths)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pkg-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.1
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei
@@ -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.7
47
+ rubygems_version: 3.6.9
48
48
  specification_version: 4
49
49
  summary: A pkg-config implementation for Ruby
50
50
  test_files: