From 7f9c03c1ff86364fc75c7a0f2ae8e754adab3875 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 5 Nov 2012 18:13:14 -0600 Subject: [PATCH] Link Frameworks into top-level Frameworks directory --- Library/Homebrew/keg.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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