From: Kouhei S. <nu...@co...> - 2017-08-16 01:39:30
|
Kouhei Sutou 2017-08-16 10:38:22 +0900 (Wed, 16 Aug 2017) New Revision: 42ba8a9e4a0aaa1e6fb7d91227cbe62c36fcf854 https://github.com/ruby-gnome2/pkg-config/commit/42ba8a9e4a0aaa1e6fb7d91227cbe62c36fcf854 Message: Relax macOS version detection GitHub: fix rcairo/rcairo#49 Reported by Wyatt Kirby. Thanks!!! Modified files: lib/pkg-config.rb Modified: lib/pkg-config.rb (+1 -1) =================================================================== --- lib/pkg-config.rb 2017-08-13 20:23:52 +0900 (f1ff34a) +++ lib/pkg-config.rb 2017-08-16 10:38:22 +0900 (7fd5971) @@ -374,7 +374,7 @@ class PackageConfig paths << (pkg_config_prefix + "lib/pkgconfig").to_s paths << (pkg_config_prefix + "libdata/pkgconfig").to_s if /-darwin\d+\z/ =~ RUBY_PLATFORM and - /\A(\d+\.\d+)\./ =~ `sw_vers -productVersion` + /\A(\d+\.\d+)/ =~ `sw_vers -productVersion` mac_os_version = $1 homebrew_repository_candidates = [] brew_path = pkg_config_prefix + "bin" + "brew" |