aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorPatrick Walton2010-04-29 15:50:24 -0700
committerAdam Vandenberg2010-06-23 11:31:52 -0700
commitfe0dffe843545991365987c721f33288f8c9bfdd (patch)
treeb4e4a08b70069af76edbf6dc9b7d232f8a3a807d /Library
parent41f0978b115b908bb4e47207f934ebe71c32edda (diff)
downloadhomebrew-fe0dffe843545991365987c721f33288f8c9bfdd.tar.bz2
Create explicit folders for more language libs.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb16
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