git: make perl lib path portable on 10.9

Fixes Homebrew/homebrew#29128.
This commit is contained in:
Jack Nagel 2014-05-14 10:23:18 -05:00
parent 7a929629dd
commit 9e0cf90e5c

View file

@ -63,7 +63,13 @@ class Git < Formula
ENV['PERL_PATH'] = which 'perl'
if MacOS.version >= :mavericks
ENV['PERLLIB_EXTRA'] = "#{MacOS.active_developer_dir}/Library/Perl/5.16/darwin-thread-multi-2level"
ENV["PERLLIB_EXTRA"] = %W{
#{MacOS.active_developer_dir}
/Library/Developer/CommandLineTools
/Applications/Xcode.app/Contents/Developer
}.uniq.map { |p|
"#{p}/Library/Perl/5.16/darwin-thread-multi-2level"
}.join(":")
end
unless quiet_system ENV['PERL_PATH'], '-e', 'use ExtUtils::MakeMaker'