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:
parent
4462773e78
commit
441626e03a
1 changed files with 3 additions and 0 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in a new issue