Merge pull request #5170 from sjackman/keg-link-directories

Keg::MUST_EXIST_DIRECTORIES: Frameworks is for macOS
This commit is contained in:
Shaun Jackman 2018-10-23 22:38:11 -07:00 committed by GitHub
commit 53ecfda2b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1 @@
require "extend/os/mac/keg" if OS.mac?

View File

@ -0,0 +1,4 @@
class Keg
GENERIC_KEG_LINK_DIRECTORIES = remove_const :KEG_LINK_DIRECTORIES
KEG_LINK_DIRECTORIES = (GENERIC_KEG_LINK_DIRECTORIES + ["Frameworks"]).freeze
end

View File

@ -66,7 +66,7 @@ class Keg
LOCALEDIR_RX = %r{(locale|man)/([a-z]{2}|C|POSIX)(_[A-Z]{2})?(\.[a-zA-Z\-0-9]+(@.+)?)?}
INFOFILE_RX = %r{info/([^.].*?\.info|dir)$}
KEG_LINK_DIRECTORIES = %w[
bin etc include lib sbin share var Frameworks
bin etc include lib sbin share var
].freeze
MUST_EXIST_SUBDIRECTORIES = (
KEG_LINK_DIRECTORIES - %w[var] + %w[
@ -672,3 +672,5 @@ class Keg
end
end
end
require "extend/os/keg"