pkg-config 1.5.1 → 1.5.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c90e9d9dd81d99b7fd6412e1befe74deaabf67d3c181d50261846a2da0fe9d43
4
- data.tar.gz: 9dd90a3ffc4e140bce369c8b45ba0c34ba8f3ccea6f0a49ce884b8ba6a2d9825
3
+ metadata.gz: b8f8608045409d2dc9f4a097f405fe644617dec61748090a8f91c34aa928b22c
4
+ data.tar.gz: 170c6e40f9597496bc95d9841d5539735d0ca6e0c0a6f2ea5db3892b084796e5
5
5
  SHA512:
6
- metadata.gz: de054c89cbe328715e28258636442959dfbca1c859e1fbff4f076bd945e019ced3aa0515f69cdb470288c76811b2d0138293b65398470acc24415c4631f298bc
7
- data.tar.gz: a5414ffd42e1bc9cdde74df9ae83689473c9799ef7b6606ee9bb02379017b42db93b5d80f550820f9cea9befddd2a3402cf65435290b0f78db578c55480b9c00
6
+ metadata.gz: 842cf238cbe237abfa28d1f099caf1860f754c1097006ace8cd0f08bff8aa07874173db767931e3c50a734c5b031d7a3d5ef0be4edebaf71f7705b9623590a8d
7
+ data.tar.gz: cb1f06e6a205ae14d575c940cb6607130e45690deb08ccc8a2c3c015ec9744d89151ff59d71c676049fae37a3e181773aefebfd212928cf1b643ed52017b9435
data/NEWS CHANGED
@@ -1,5 +1,18 @@
1
1
  = NEWS
2
2
 
3
+ == 1.5.3 - 2023-08-29
4
+
5
+ === Improvements
6
+
7
+ * Accepted spaces between "=" and ":". For example, "prefix = /usr"
8
+ is accepted.
9
+
10
+ == 1.5.2 - 2023-06-25
11
+
12
+ === Improvements
13
+
14
+ * Added support for conda.
15
+
3
16
  == 1.5.1 - 2022-11-23
4
17
 
5
18
  === Improvements
@@ -1,4 +1,4 @@
1
- # Copyright 2012-2022 Sutou Kouhei <kou@cozmixng.org>
1
+ # Copyright 2012-2023 Sutou Kouhei <kou@cozmixng.org>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -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.1"
18
+ VERSION = "1.5.3"
19
19
  end
data/lib/pkg-config.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright 2008-2022 Sutou Kouhei <kou@cozmixng.org>
1
+ # Copyright 2008-2023 Sutou Kouhei <kou@cozmixng.org>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -170,6 +170,10 @@ class PackageConfig
170
170
  default_paths << (pkg_config_prefix + "libdata/pkgconfig").to_s
171
171
  default_paths << (pkg_config_prefix + "share/pkgconfig").to_s
172
172
  end
173
+ conda_prefix = ENV["CONDA_PREFIX"]
174
+ if conda_prefix
175
+ default_paths << File.join(conda_prefix, "lib", "pkgconfig")
176
+ end
173
177
  default_paths << "/usr/local/lib64/pkgconfig"
174
178
  default_paths << "/usr/local/libx32/pkgconfig"
175
179
  default_paths << "/usr/local/lib/pkgconfig"
@@ -505,9 +509,9 @@ class PackageConfig
505
509
  line = line.gsub(/#.*/, "").strip
506
510
  next if line.empty?
507
511
  case line
508
- when /^(#{IDENTIFIER_RE})=/
512
+ when /^(#{IDENTIFIER_RE})\s*=\s*/
509
513
  @variables[$1] = $POSTMATCH.strip
510
- when /^(#{IDENTIFIER_RE}):/
514
+ when /^(#{IDENTIFIER_RE})\s*:\s*/
511
515
  @declarations[$1] = $POSTMATCH.strip
512
516
  end
513
517
  end
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.5.1
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-23 00:00:00.000000000 Z
11
+ date: 2023-08-29 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.4.0.dev
92
+ rubygems_version: 3.5.0.dev
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: A pkg-config implementation for Ruby