Create explicit folders for more language libs.
This commit is contained in:
parent
c51d74a2e3
commit
6fbf125970
@ -40,7 +40,7 @@ class Keg <Pathname
|
|||||||
$n=0
|
$n=0
|
||||||
$d=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
|
# 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
|
# 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('bin') {:skip}
|
||||||
link_dir('sbin') {:link}
|
link_dir('sbin') {:link}
|
||||||
link_dir('include') {: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|
|
link_dir('lib') do |path|
|
||||||
case path.to_s
|
case path.to_s
|
||||||
when /^pkgconfig/ then :mkpath
|
# pkg-config database gets explicitly created
|
||||||
when /^php/ then :mkpath
|
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 /^perl5/ then :mkpath
|
||||||
when /^python2\.6/ then :mkpath
|
when 'php' then :mkpath
|
||||||
|
when /^python[23]\.\d$/ then :mkpath
|
||||||
|
else :link
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user