pkg-config 1.5.2 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd3801ee52598218ff2e302d7f3333061b37e37b11c05f358bd879c74fe08830
4
- data.tar.gz: 555996afc720c1df211f3ab1a50df6187dc8c25319f7b7f6c7e2968f48584f7a
3
+ metadata.gz: 6bf34df050960d19597c3cbbd2df02927f4e85f00c4c8ad01e044933784ec408
4
+ data.tar.gz: 86f89afbb7cedd8dc4fe1a5ea6813b516a6452ad2572b41d2d31c33f2a836646
5
5
  SHA512:
6
- metadata.gz: c178151d14bab1004d468c23250b4b46e1d6eda4d21df0001773f16dbb75df959b60f6408ee77e24fbbea9ac1bfd20618b480d8c55fe08d081a49acb0ece6509
7
- data.tar.gz: 6f442145770a3ceaaa70d4de5c25845e141a8d50fd7ab0fa22a1114fad9abaf70c8e6d0cf11b012569d812883b282f9be96896a2534efd175391af61f0f98609
6
+ metadata.gz: 0c758e2d4005a6ea094c625ca08013becd5f585f8f8603efcd7421edf8be0cbfbaf649219e5d9f297a8a10237901a1c319993f6ff140b9b214115a7f234c65fb
7
+ data.tar.gz: 49640c01db3dca1d3c118ec44efdb93c515d4ae866a4d655a99d4e0da9c795002b0ef7d6bea5193accd68ea34070365d93d00fdfeb7b77571c5a634db3c4cfea
data/NEWS CHANGED
@@ -1,5 +1,18 @@
1
1
  = NEWS
2
2
 
3
+ == 1.5.4 - 2023-09-05
4
+
5
+ === Improvements
6
+
7
+ * Added package version to unsatisfied version is only found case.
8
+
9
+ == 1.5.3 - 2023-08-29
10
+
11
+ === Improvements
12
+
13
+ * Accepted spaces between "=" and ":". For example, "prefix = /usr"
14
+ is accepted.
15
+
3
16
  == 1.5.2 - 2023-06-25
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.2"
18
+ VERSION = "1.5.4"
19
19
  end
data/lib/pkg-config.rb CHANGED
@@ -509,9 +509,9 @@ class PackageConfig
509
509
  line = line.gsub(/#.*/, "").strip
510
510
  next if line.empty?
511
511
  case line
512
- when /^(#{IDENTIFIER_RE})=/
512
+ when /^(#{IDENTIFIER_RE})\s*=\s*/
513
513
  @variables[$1] = $POSTMATCH.strip
514
- when /^(#{IDENTIFIER_RE}):/
514
+ when /^(#{IDENTIFIER_RE})\s*:\s*/
515
515
  @declarations[$1] = $POSTMATCH.strip
516
516
  end
517
517
  end
@@ -644,7 +644,11 @@ module PKGConfig
644
644
  if check_version?(pkg, major, minor, micro)
645
645
  "yes (#{modversion(pkg)})"
646
646
  else
647
- "no"
647
+ if exist?(pkg)
648
+ "no (#{modversion(pkg)}"
649
+ else
650
+ "no (nonexistent)"
651
+ end
648
652
  end
649
653
  end
650
654
  enough_version = (result != "no")
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.2
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-15 00:00:00.000000000 Z
11
+ date: 2023-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit