diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index b34513c3a2..d968a2fc45 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -10,8 +10,8 @@ class Keg < Pathname # locale-specific directories have the form language[_territory][.codeset][@modifier] LOCALEDIR_RX = /(locale|man)\/([a-z]{2}|C|POSIX)(_[A-Z]{2})?(\.[a-zA-Z\-0-9]+(@.+)?)?/ INFOFILE_RX = %r[info/([^.].*?\.info|dir)$] - TOP_LEVEL_DIRECTORIES = %w[bin etc include lib sbin share var] - PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Library/LinkedKegs] + TOP_LEVEL_DIRECTORIES = %w[bin etc include lib sbin share var Frameworks] + PRUNEABLE_DIRECTORIES = %w[bin etc include lib sbin share Frameworks Library/LinkedKegs] # if path is a file in a keg then this will return the containing Keg object def self.for path @@ -101,6 +101,7 @@ class Keg < Pathname link_dir('bin', mode) {:skip_dir} link_dir('sbin', mode) {:skip_dir} link_dir('include', mode) {:link} + link_dir('Frameworks', mode) { :link } link_dir('share', mode) do |path| case path.to_s