pkg-config 1.3.9 → 1.4.0

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: 026c6c256fc6bb3656cfcde885adcc911f26987d1ac26d48d87f724ebc4045a2
4
- data.tar.gz: 95cbb634f8f37a2dd5d6ef3b644a45f810c8ef99d834e9281402e50ce5233dde
3
+ metadata.gz: a83385090e3b6e095368c03006b2c5acd72667ceb0b906f21e5fe0b3a1becf2e
4
+ data.tar.gz: 41816b28d440895d76ce10c57c64e323109a893a01a51a0011441dbb8205794f
5
5
  SHA512:
6
- metadata.gz: 64c6915207090a91ca6d24e4de7c34fb368d3c32c901e8b56c06c2fc0e275742658e05b29ee7477124cf4038eb6f8269abbf7712f1a538dfc9155d4976d7b048
7
- data.tar.gz: 5ff7d590b763b9b5c114887ec5ee32f311bdfad06da4c8e696bb1f129906b2f511a018d3508ce71dd69b1ff9bbc217fc596d7a2d0a9efaf1a0814d4ead86bb32
6
+ metadata.gz: eee27aa9f295b5f2d3570c1b2caa45790be5d4870c294db31cfeeebc52b512c24ccc8d4a7b406bcb9b189960ba5ddb17b9b17c34f2445517a374dd6acd140e80
7
+ data.tar.gz: 5fcace2bbadde0b6dc0f33eba70a90c587dbc339a60637f0020b9bbddc7615332aa40d55b19d52603c5575abbf40c538d0c4c00146bb904a2261d7517687de5b
data/NEWS CHANGED
@@ -1,5 +1,11 @@
1
1
  = NEWS
2
2
 
3
+ == 1.4.0 - 2019-10-24
4
+
5
+ === Improvements
6
+
7
+ * Improved Homebrew detection.
8
+
3
9
  == 1.3.9 - 2019-09-28
4
10
 
5
11
  === Improvements
@@ -122,6 +122,7 @@ class PackageConfig
122
122
  def compute_native_pkg_config_prefix
123
123
  pkg_config = native_pkg_config
124
124
  return nil unless pkg_config.absolute?
125
+ return nil unless pkg_config.exist?
125
126
 
126
127
  pkg_config_prefix = pkg_config.parent.parent
127
128
  if File::ALT_SEPARATOR
@@ -465,14 +466,13 @@ class PackageConfig
465
466
  homebrew_repository_candidates << pkg_config_prefix + "Homebrew"
466
467
  homebrew_repository_candidates << pkg_config_prefix
467
468
  end
468
- else
469
- brew = self.class.__send__(:search_executable_from_path, "brew")
470
- if brew
471
- homebrew_repository = `brew --repository`.chomp
472
- homebrew_repository_candidates << Pathname(homebrew_repository)
473
- end
474
469
  end
475
- homebrew_repository_candidates.each do |candidate|
470
+ brew = self.class.__send__(:search_executable_from_path, "brew")
471
+ if brew
472
+ homebrew_repository = `brew --repository`.chomp
473
+ homebrew_repository_candidates << Pathname(homebrew_repository)
474
+ end
475
+ homebrew_repository_candidates.uniq.each do |candidate|
476
476
  path = candidate + "Library/Homebrew/os/mac/pkgconfig/#{mac_os_version}"
477
477
  paths << path.to_s if path.exist?
478
478
  end
@@ -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.3.9"
18
+ VERSION = "1.4.0"
19
19
  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.3.9
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-27 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit