git: set PERL_PATH

The default git PERL_PATH (/usr/bin/perl) can cause build issues for
users with non-system Perl installations, e.g. perlbrew. Setting
PERL_PATH to the Perl in the path should be sufficient.

Closes Homebrew/homebrew#9152.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Leo Kim 2011-12-18 04:29:16 +09:00 committed by Jack Nagel
parent 4462773e78
commit 441626e03a

View file

@ -30,6 +30,9 @@ class Git < Formula
ENV['NO_DARWIN_PORTS']='1'
ENV['V']='1' # build verbosely
# workaround for users of perlbrew
ENV['PERL_PATH'] = `/usr/bin/which perl`.chomp
# Clean XCode 4.x installs don't include Perl MakeMaker
ENV['NO_PERL_MAKEMAKER']='1' if MacOS.lion?