pkg-config 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +6 -0
- data/lib/pkg-config/version.rb +1 -1
- data/lib/pkg-config.rb +14 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4853ef3274189b7494ef228d87db6c067576f7d8
|
4
|
+
data.tar.gz: b9d10332ab8bf6e2d9f2e03df87d3507704be760
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f24dac3a3f4efda1a9332f25262bcd991bd048c57e6f308ed5221d94e87d16c8ce41303dae5d011f937262a36df2d8b5cbfb4a0a958ef192782c28bf3030064
|
7
|
+
data.tar.gz: 0b29180c716c7a27987c30ea544f897d90b043bbd0ba1c0051f1262077847ef2a4de27426d6f32c5e7585a4fc835a13cde48d35dc59c16f80fb8248d41e296ab
|
data/NEWS
CHANGED
data/lib/pkg-config/version.rb
CHANGED
data/lib/pkg-config.rb
CHANGED
@@ -376,9 +376,20 @@ class PackageConfig
|
|
376
376
|
if /-darwin\d+\z/ =~ RUBY_PLATFORM and
|
377
377
|
/\A(\d+\.\d+)\./ =~ `sw_vers -productVersion`
|
378
378
|
mac_os_version = $1
|
379
|
-
|
380
|
-
|
381
|
-
|
379
|
+
homebrew_repository_candidates = []
|
380
|
+
brew_path = pkg_config_prefix + "bin" + "brew"
|
381
|
+
if brew_path.exist?
|
382
|
+
escaped_brew_path = Shellwords.escape(brew_path.to_s)
|
383
|
+
homebrew_repository = `#{escaped_brew_path} --repository`.chomp
|
384
|
+
homebrew_repository_candidates << Pathname.new(homebrew_repository)
|
385
|
+
else
|
386
|
+
homebrew_repository_candidates << pkg_config_prefix + "Homebrew"
|
387
|
+
homebrew_repository_candidates << pkg_config_prefix
|
388
|
+
end
|
389
|
+
homebrew_repository_candidates.each do |candidate|
|
390
|
+
path = candidate + "Library/Homebrew/os/mac/pkgconfig/#{mac_os_version}"
|
391
|
+
paths << path.to_s if path.exist?
|
392
|
+
end
|
382
393
|
end
|
383
394
|
paths.concat(default_paths)
|
384
395
|
paths.join(SEPARATOR)
|
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.2.
|
4
|
+
version: 1.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kouhei Sutou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|