pkg-config 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NEWS +11 -0
- data/lib/pkg-config.rb +20 -11
- data/lib/pkg-config/version.rb +1 -1
- data/test/test_pkg_config.rb +1 -1
- 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: '09358e3bde84ec7d5a2a90f63c7645fb157826c1'
|
4
|
+
data.tar.gz: e51b468a0e04475368df7a1812dc8261fb1bd2e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f46161d07e06730e9411e4a0c5fee1a75e60c186af40dbcde8200f2a4093f3d4c35ed2f8ed8d4ff0ae4860144a8fb2c06b86e962ebf231bfc462fb44f136ec
|
7
|
+
data.tar.gz: 88a56de322a6d128145b5a07835a37a786b98bece0a90968badfdbd4c1a17a4c49b5f2482e91fd878b0c5300959f26bfb42f0cecc411a9667ff44b4e4ab1d46a
|
data/NEWS
CHANGED
data/lib/pkg-config.rb
CHANGED
@@ -358,21 +358,30 @@ class PackageConfig
|
|
358
358
|
when "x64-mingw32"
|
359
359
|
default_paths.concat(Dir.glob("c:/msys*/mingw64/lib/pkgconfig"))
|
360
360
|
end
|
361
|
-
default_path = default_paths.join(SEPARATOR)
|
362
361
|
libdir = ENV["PKG_CONFIG_LIBDIR"]
|
363
|
-
|
362
|
+
default_paths.unshift(libdir) if libdir
|
364
363
|
|
365
364
|
pkg_config = self.class.native_pkg_config
|
366
|
-
return
|
365
|
+
return default_paths.join(SEPARATOR) unless pkg_config.absolute?
|
366
|
+
|
367
367
|
pkg_config_prefix = pkg_config.parent.parent
|
368
|
-
|
369
|
-
Dir.glob((pkg_config_prefix + "lib/*/pkgconfig").to_s)
|
370
|
-
[
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
368
|
+
pkg_config_arch_depended_paths =
|
369
|
+
Dir.glob((pkg_config_prefix + "lib/*/pkgconfig").to_s)
|
370
|
+
paths = []
|
371
|
+
paths.concat(pkg_config_arch_depended_paths)
|
372
|
+
paths << (pkg_config_prefix + "lib64/pkgconfig").to_s
|
373
|
+
paths << (pkg_config_prefix + "libx32/pkgconfig").to_s
|
374
|
+
paths << (pkg_config_prefix + "lib/pkgconfig").to_s
|
375
|
+
paths << (pkg_config_prefix + "libdata/pkgconfig").to_s
|
376
|
+
if /-darwin\d+\z/ =~ RUBY_PLATFORM and
|
377
|
+
/\A(\d+\.\d+)\./ =~ `sw_vers -productVersion`
|
378
|
+
mac_os_version = $1
|
379
|
+
path = pkg_config_prefix +
|
380
|
+
"Library/Homebrew/os/mac/pkgconfig/#{mac_os_version}"
|
381
|
+
paths << path.to_s if path.exist?
|
382
|
+
end
|
383
|
+
paths.concat(default_paths)
|
384
|
+
paths.join(SEPARATOR)
|
376
385
|
end
|
377
386
|
|
378
387
|
def required_packages
|
data/lib/pkg-config/version.rb
CHANGED
data/test/test_pkg_config.rb
CHANGED
@@ -12,7 +12,7 @@ class PkgConfigTest < Test::Unit::TestCase
|
|
12
12
|
def only_pkg_config_version(major, minor)
|
13
13
|
pkg_config_version = `pkg-config --version`.chomp
|
14
14
|
current_major, current_minor = pkg_config_version.split(".").collect(&:to_i)
|
15
|
-
return if ([major, minor] <=> [current_major, current_minor])
|
15
|
+
return if ([major, minor] <=> [current_major, current_minor]) <= 0
|
16
16
|
omit("Require pkg-config #{pkg_config_version} or later")
|
17
17
|
end
|
18
18
|
|
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.5
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: test-unit
|