pkg-config 1.6.1 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS.md +13 -0
  3. data/lib/pkg-config.rb +13 -8
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef8beac3c87c96d3308aa5f2f8ef54f7f9036a70641609d523068ee9867c0703
4
- data.tar.gz: ef4c71b465bb7c533629b85a300a1e258320ac1f4eea7bb042f8a378fb3a56f5
3
+ metadata.gz: a7e1cf5d660f2266bd2b7b33b4bea74f886eaf24018e6381ece093e3175fc9cc
4
+ data.tar.gz: 5297a48889e115f5f08a508eaf3bd43e409d56ea19354f6d8817b31422cc3106
5
5
  SHA512:
6
- metadata.gz: f633d31398dc965c562933ecc42fa04c83451a5c7701fbed586534fbd0ecd740ae44b678c6dab666e2461c55b6601b126eb154d49be4965aacb7e0bcee0e6821
7
- data.tar.gz: 7284c972962f75e0b6147ee338ab4ad8c4791e93c74d7857af535293b32bfd74bb2e03d4671951176bf889965df3abb34f0a43c5d9008eb1c7e7f1a90701374d
6
+ metadata.gz: 18f13c71bc84f415e69190fca6eb0518242896c4606fa56f585ced55cad394d2d5d8916fa098a978418736b145959c332056597be5570598e7fb94bd2e891c53
7
+ data.tar.gz: 2e88e75e57d264b56a756dd720a504f8138ecdced79ecde4358915a394793cfe7b4030bdf6e9c2bb9ad433d6566bad33efd588bd250abe4133a9fcee968114b5
data/NEWS.md CHANGED
@@ -1,5 +1,18 @@
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
+
3
16
  ## 1.6.1 - 2025-04-17
4
17
 
5
18
  ### 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.2"
23
23
 
24
24
  @@paths = []
25
25
  @@override_variables = {}
@@ -340,17 +340,22 @@ 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
345
  end
346
346
  end
347
347
  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/, "")
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 << path.to_s if path.exist?
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)
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sutou Kouhei