pkg-config 1.5.0 → 1.5.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2fa734326aace2a082621cebde9999bab5917805ff2148b046488471c5206db7
4
- data.tar.gz: 7d6b09c7530dcc1710e12286ce7dc8fd8d5d84018c90c0708f49879b59031077
3
+ metadata.gz: c90e9d9dd81d99b7fd6412e1befe74deaabf67d3c181d50261846a2da0fe9d43
4
+ data.tar.gz: 9dd90a3ffc4e140bce369c8b45ba0c34ba8f3ccea6f0a49ce884b8ba6a2d9825
5
5
  SHA512:
6
- metadata.gz: 3d0ccc44aed59fe08e92f7b2f3fda3979e48e4dec6356b11067c9068841b3a4483ede5d94dcd8fd7880e99a065aef466b89cb48b2905b29387ada1f95078bb8e
7
- data.tar.gz: 04e1038f82ecd393e0529a312baa6d4d0c887b10a36c7089fdef0d9b3c584040f056bc2e8b1945e995f1e49f24d197d5c98ca8f1fdb2682b4b1705398da97980
6
+ metadata.gz: de054c89cbe328715e28258636442959dfbca1c859e1fbff4f076bd945e019ced3aa0515f69cdb470288c76811b2d0138293b65398470acc24415c4631f298bc
7
+ data.tar.gz: a5414ffd42e1bc9cdde74df9ae83689473c9799ef7b6606ee9bb02379017b42db93b5d80f550820f9cea9befddd2a3402cf65435290b0f78db578c55480b9c00
data/NEWS CHANGED
@@ -1,5 +1,14 @@
1
1
  = NEWS
2
2
 
3
+ == 1.5.1 - 2022-11-23
4
+
5
+ === Improvements
6
+
7
+ * Improved the default search path. "/usr" in "/usr/bin/pkg-config"
8
+ isn't used for buidling the default search path if "pkg-config
9
+ --variable=pc_path pkg-config" is available.
10
+ [Reported by Watson][GitHub:#22]
11
+
3
12
  == 1.5.0 - 2022-11-23
4
13
 
5
14
  === 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.5.0"
18
+ VERSION = "1.5.1"
19
19
  end
data/lib/pkg-config.rb CHANGED
@@ -158,24 +158,34 @@ class PackageConfig
158
158
  end
159
159
  if default_paths.nil?
160
160
  arch_depended_path = Dir.glob("/usr/lib/*/pkgconfig")
161
- default_paths = [
162
- "/usr/local/lib64/pkgconfig",
163
- "/usr/local/libx32/pkgconfig",
164
- "/usr/local/lib/pkgconfig",
165
- "/usr/local/libdata/pkgconfig",
166
- "/usr/local/share/pkgconfig",
167
- "/opt/local/lib/pkgconfig",
168
- *arch_depended_path,
169
- "/usr/lib64/pkgconfig",
170
- "/usr/libx32/pkgconfig",
171
- "/usr/lib/pkgconfig",
172
- "/usr/libdata/pkgconfig",
173
- "/usr/X11R6/lib/pkgconfig",
174
- "/usr/X11R6/share/pkgconfig",
175
- "/usr/X11/lib/pkgconfig",
176
- "/opt/X11/lib/pkgconfig",
177
- "/usr/share/pkgconfig",
178
- ]
161
+ default_paths = []
162
+ pkg_config_prefix = native_pkg_config_prefix
163
+ if pkg_config_prefix
164
+ pkg_config_arch_depended_paths =
165
+ Dir.glob((pkg_config_prefix + "lib/*/pkgconfig").to_s)
166
+ default_paths.concat(pkg_config_arch_depended_paths)
167
+ default_paths << (pkg_config_prefix + "lib64/pkgconfig").to_s
168
+ default_paths << (pkg_config_prefix + "libx32/pkgconfig").to_s
169
+ default_paths << (pkg_config_prefix + "lib/pkgconfig").to_s
170
+ default_paths << (pkg_config_prefix + "libdata/pkgconfig").to_s
171
+ default_paths << (pkg_config_prefix + "share/pkgconfig").to_s
172
+ end
173
+ default_paths << "/usr/local/lib64/pkgconfig"
174
+ default_paths << "/usr/local/libx32/pkgconfig"
175
+ default_paths << "/usr/local/lib/pkgconfig"
176
+ default_paths << "/usr/local/libdata/pkgconfig"
177
+ default_paths << "/usr/local/share/pkgconfig"
178
+ default_paths << "/opt/local/lib/pkgconfig"
179
+ default_paths.concat(arch_depended_path)
180
+ default_paths << "/usr/lib64/pkgconfig"
181
+ default_paths << "/usr/libx32/pkgconfig"
182
+ default_paths << "/usr/lib/pkgconfig"
183
+ default_paths << "/usr/libdata/pkgconfig"
184
+ default_paths << "/usr/X11R6/lib/pkgconfig"
185
+ default_paths << "/usr/X11R6/share/pkgconfig"
186
+ default_paths << "/usr/X11/lib/pkgconfig"
187
+ default_paths << "/opt/X11/lib/pkgconfig"
188
+ default_paths << "/usr/share/pkgconfig"
179
189
  end
180
190
  if Object.const_defined?(:RubyInstaller)
181
191
  mingw_bin_path = RubyInstaller::Runtime.msys2_installation.mingw_bin_path
@@ -186,17 +196,6 @@ class PackageConfig
186
196
  default_paths.unshift(libdir) if libdir
187
197
 
188
198
  paths = []
189
- pkg_config_prefix = native_pkg_config_prefix
190
- if pkg_config_prefix
191
- pkg_config_arch_depended_paths =
192
- Dir.glob((pkg_config_prefix + "lib/*/pkgconfig").to_s)
193
- paths.concat(pkg_config_arch_depended_paths)
194
- paths << (pkg_config_prefix + "lib64/pkgconfig").to_s
195
- paths << (pkg_config_prefix + "libx32/pkgconfig").to_s
196
- paths << (pkg_config_prefix + "lib/pkgconfig").to_s
197
- paths << (pkg_config_prefix + "libdata/pkgconfig").to_s
198
- paths << (pkg_config_prefix + "share/pkgconfig").to_s
199
- end
200
199
  if /-darwin\d[\d\.]*\z/ =~ RUBY_PLATFORM and
201
200
  /\A(\d+\.\d+)/ =~ run_command("sw_vers", "-productVersion")
202
201
  mac_os_version = $1
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.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou