os/mac/pkgconfig_spec: fix brew style.

This commit is contained in:
Mike McQuaid 2020-12-28 15:59:06 +00:00
parent 7cc48a03d5
commit 3dcb35d96f
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -39,7 +39,7 @@ describe "pkg-config" do
.grep(/^#define XML_(MAJOR|MINOR|MICRO)_VERSION (\d+)$/) do .grep(/^#define XML_(MAJOR|MINOR|MICRO)_VERSION (\d+)$/) do
{ Regexp.last_match(1).downcase => Regexp.last_match(2) } { Regexp.last_match(1).downcase => Regexp.last_match(2) }
end end
.inject(:merge!) .reduce(:merge!)
version = "#{version["major"]}.#{version["minor"]}.#{version["micro"]}" version = "#{version["major"]}.#{version["minor"]}.#{version["micro"]}"
expect(pc_version("expat")).to eq(version) expect(pc_version("expat")).to eq(version)
@ -100,7 +100,7 @@ describe "pkg-config" do
.grep(/^#define NCURSES_VERSION_(MAJOR|MINOR|PATCH) (\d+)$/) do .grep(/^#define NCURSES_VERSION_(MAJOR|MINOR|PATCH) (\d+)$/) do
{ Regexp.last_match(1).downcase => Regexp.last_match(2) } { Regexp.last_match(1).downcase => Regexp.last_match(2) }
end end
.inject(:merge!) .reduce(:merge!)
version = "#{version["major"]}.#{version["minor"]}.#{version["patch"]}" version = "#{version["major"]}.#{version["minor"]}.#{version["patch"]}"
expect(pc_version("ncurses")).to eq(version) expect(pc_version("ncurses")).to eq(version)