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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11b312f0ff5b0ea6b556ddf155f0298fb7ef5467
4
- data.tar.gz: e7a171afa76835a1c16ba38977a4d85ae5c45e46
3
+ metadata.gz: '09358e3bde84ec7d5a2a90f63c7645fb157826c1'
4
+ data.tar.gz: e51b468a0e04475368df7a1812dc8261fb1bd2e2
5
5
  SHA512:
6
- metadata.gz: dfbdd95f6930ea73e9d58568898ae35baba7b12dd466ab978d2c5543c23a635a0dd3d55e2d082eb8b2eb7075ce4016168f8fe074d8ee4a9a328fc8bf49e7ea89
7
- data.tar.gz: dddb03560e40be24ce601389205fd9f6c701c267adecc39c66e5f79391462a6938f573043cb8b9683a9f524b125af3d51d81b57decacecc47a57fcf69fbdbdeb
6
+ metadata.gz: 35f46161d07e06730e9411e4a0c5fee1a75e60c186af40dbcde8200f2a4093f3d4c35ed2f8ed8d4ff0ae4860144a8fb2c06b86e962ebf231bfc462fb44f136ec
7
+ data.tar.gz: 88a56de322a6d128145b5a07835a37a786b98bece0a90968badfdbd4c1a17a4c49b5f2482e91fd878b0c5300959f26bfb42f0cecc411a9667ff44b4e4ab1d46a
data/NEWS CHANGED
@@ -1,5 +1,16 @@
1
1
  = NEWS
2
2
 
3
+ == 1.2.5 - 2017-08-10
4
+
5
+ === Improvements
6
+
7
+ * Supported Homebrew bundled .pc files.
8
+ [GitHub:rcairo/rcairo#49][Reported by choboy11]
9
+
10
+ === Thanks
11
+
12
+ * choboy11
13
+
3
14
  == 1.2.4 - 2017-08-07
4
15
 
5
16
  === Improvements
@@ -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
- default_path = [libdir, default_path].join(SEPARATOR) if libdir
362
+ default_paths.unshift(libdir) if libdir
364
363
 
365
364
  pkg_config = self.class.native_pkg_config
366
- return default_path unless pkg_config.absolute?
365
+ return default_paths.join(SEPARATOR) unless pkg_config.absolute?
366
+
367
367
  pkg_config_prefix = pkg_config.parent.parent
368
- pkg_config_arch_depended_path =
369
- Dir.glob((pkg_config_prefix + "lib/*/pkgconfig").to_s).join(SEPARATOR)
370
- [pkg_config_arch_depended_path,
371
- (pkg_config_prefix + "lib64/pkgconfig").to_s,
372
- (pkg_config_prefix + "libx32/pkgconfig").to_s,
373
- (pkg_config_prefix + "lib/pkgconfig").to_s,
374
- (pkg_config_prefix + "libdata/pkgconfig").to_s,
375
- default_path].join(SEPARATOR)
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
@@ -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.2.4"
18
+ VERSION = "1.2.5"
19
19
  end
@@ -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]) < 0
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
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-06 00:00:00.000000000 Z
11
+ date: 2017-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit