From 9e0cf90e5c1ab32329f43fd11b5b769d60b2ef32 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 14 May 2014 10:23:18 -0500 Subject: [PATCH] git: make perl lib path portable on 10.9 Fixes Homebrew/homebrew#29128. --- Formula/git.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Formula/git.rb b/Formula/git.rb index 3b5ec0d4b9..6aa3ace6ef 100644 --- a/Formula/git.rb +++ b/Formula/git.rb @@ -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'