mkpath for all directories under lib/perl5

Don't symlink, as multiple formula will install to this directory.
This commit is contained in:
Max Howell 2009-09-17 21:26:17 +01:00
parent ee2b521ca8
commit a8d6a695bc

View File

@ -58,10 +58,17 @@ class Keg <Pathname
link_dir('etc') {:mkpath}
link_dir('bin') {:skip}
link_dir('sbin') {:link}
link_dir('lib') {|path| :mkpath if %w[pkgconfig php perl5 perl5/site_perl].include? path.to_s}
link_dir('include') {:link}
link_dir('share') {|path| :mkpath if mkpaths.include? path.to_s}
link_dir('lib') do |path|
case path.to_s
when /^pkgconfig/ then :mkpath
when /^php/ then :mkpath
when /^perl5/ then :mkpath
end
end
return $n+$d
end