mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
mkpath for all directories under lib/perl5
Don't symlink, as multiple formula will install to this directory.
This commit is contained in:
parent
ee2b521ca8
commit
a8d6a695bc
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user