diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg.rb | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 777b90cc1..2df1e147e 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -40,7 +40,7 @@ class Keg <Pathname $n=0 $d=0 - mkpaths=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal' + share_mkpaths=%w[aclocal doc info locale man]+(1..9).collect{|x|"man/man#{x}"} # yeah indeed, you have to force anything you need in the main tree into # these dirs REMEMBER that *NOT* everything needs to be in the main tree @@ -48,14 +48,20 @@ class Keg <Pathname link_dir('bin') {:skip} link_dir('sbin') {:link} link_dir('include') {:link} - link_dir('share') {|path| :mkpath if mkpaths.include? path.to_s} + link_dir('share') {|path| :mkpath if share_mkpaths.include? path.to_s} link_dir('lib') do |path| case path.to_s - when /^pkgconfig/ then :mkpath - when /^php/ then :mkpath + # pkg-config database gets explicitly created + when 'pkgconfig' then :mkpath + # lib/language folders also get explicitly created + when 'ghc' then :mkpath + when 'lua' then :mkpath + when 'ocaml' then :mkpath when /^perl5/ then :mkpath - when /^python2\.6/ then :mkpath + when 'php' then :mkpath + when /^python[23]\.\d$/ then :mkpath + else :link end end |
