Link Frameworks into top-level Frameworks directory

This commit is contained in:
Jack Nagel 2012-11-05 18:13:14 -06:00
parent 2f542f657e
commit 7f9c03c1ff

View File

@ -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