Skip to content

Commit

Permalink
Merge pull request #10129 from carlocab/big-sur-pkg-config
Browse files Browse the repository at this point in the history
os/mac/pkgconfig: merge pc files for 11.1 and 11.0
  • Loading branch information
MikeMcQuaid authored Dec 28, 2020
2 parents 8fa6970 + d7323f3 commit e74be0f
Show file tree
Hide file tree
Showing 29 changed files with 17 additions and 199 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/mac/extend/ENV/std.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Stdenv
undef homebrew_extra_pkg_config_paths

def homebrew_extra_pkg_config_paths
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"]
["#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
end

def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_arch: nil, testing_formula: false)
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/extend/os/mac/extend/ENV/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def homebrew_extra_paths
# @private
def homebrew_extra_pkg_config_paths
paths = \
["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.sdk_version}"]
["/usr/lib/pkgconfig", "#{HOMEBREW_LIBRARY}/Homebrew/os/mac/pkgconfig/#{MacOS.version}"]
paths << "#{MacOS::XQuartz.lib}/pkgconfig" << "#{MacOS::XQuartz.share}/pkgconfig" if x11?
paths
end
Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/os/mac/pkgconfig/11.0
40 changes: 0 additions & 40 deletions Library/Homebrew/os/mac/pkgconfig/11.0/libcurl.pc

This file was deleted.

12 changes: 0 additions & 12 deletions Library/Homebrew/os/mac/pkgconfig/11.0/libedit.pc

This file was deleted.

13 changes: 0 additions & 13 deletions Library/Homebrew/os/mac/pkgconfig/11.0/libexslt.pc

This file was deleted.

14 changes: 0 additions & 14 deletions Library/Homebrew/os/mac/pkgconfig/11.0/libxml-2.0.pc

This file was deleted.

13 changes: 0 additions & 13 deletions Library/Homebrew/os/mac/pkgconfig/11.0/libxslt.pc

This file was deleted.

14 changes: 0 additions & 14 deletions Library/Homebrew/os/mac/pkgconfig/11.0/ncurses.pc

This file was deleted.

14 changes: 0 additions & 14 deletions Library/Homebrew/os/mac/pkgconfig/11.0/ncursesw.pc

This file was deleted.

12 changes: 0 additions & 12 deletions Library/Homebrew/os/mac/pkgconfig/11.0/sqlite3.pc

This file was deleted.

1 change: 1 addition & 0 deletions Library/Homebrew/os/mac/pkgconfig/11.1
12 changes: 0 additions & 12 deletions Library/Homebrew/os/mac/pkgconfig/11.1/expat.pc

This file was deleted.

12 changes: 0 additions & 12 deletions Library/Homebrew/os/mac/pkgconfig/11.1/libffi.pc

This file was deleted.

14 changes: 0 additions & 14 deletions Library/Homebrew/os/mac/pkgconfig/11.1/uuid.pc

This file was deleted.

14 changes: 0 additions & 14 deletions Library/Homebrew/os/mac/pkgconfig/11.1/zlib.pc

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
homebrew_sdkroot=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
prefix=${homebrew_sdkroot}/usr
exec_prefix=/usr
libdir=${exec_prefix}/lib
Expand Down
2 changes: 1 addition & 1 deletion Library/Homebrew/test/os/mac/pkgconfig_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# For indeterminable cases, consult https://opensource.apple.com for the version used.
describe "pkg-config" do
def pc_version(library)
path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.sdk_version}/#{library}.pc"
path = HOMEBREW_LIBRARY_PATH/"os/mac/pkgconfig/#{MacOS.version}/#{library}.pc"
version = File.foreach(path)
.lazy
.grep(/^Version:\s*?(.+)$/) { Regexp.last_match(1) }
Expand Down

0 comments on commit e74be0f

Please sign in to comment.