diff options
Diffstat (limited to 'Library/Formula/git.rb')
| -rw-r--r-- | Library/Formula/git.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index c8bc30115..b6455ec18 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -35,6 +35,17 @@ class Git < Formula sha1 'eb4eb4991464f44deda19d1435d9721146587661' end + def patches + if MacOS.version >= :mavericks + # Allow using PERLLIB_EXTRA to find Subversion Perl bindings location + # in the CLT/Xcode. Should be included in Git 1.8.6. + # https://git.kernel.org/cgit/git/git.git/commit/?h=next&id=07981d + # https://git.kernel.org/cgit/git/git.git/commit/?h=next&id=0386dd + ['https://git.kernel.org/cgit/git/git.git/patch/?id=07981d', + 'https://git.kernel.org/cgit/git/git.git/patch/?id=0386dd'] + end + end + def install # If these things are installed, tell Git build system to not use them ENV['NO_FINK'] = '1' @@ -44,6 +55,10 @@ class Git < Formula ENV['PYTHON_PATH'] = python.binary if python ENV['PERL_PATH'] = which 'perl' + if MacOS.version >= :mavericks and MacOS.dev_tools_prefix + ENV['PERLLIB_EXTRA'] = "#{MacOS.dev_tools_prefix}/Library/Perl/5.16/darwin-thread-multi-2level" + end + unless quiet_system ENV['PERL_PATH'], '-e', 'use ExtUtils::MakeMaker' ENV['NO_PERL_MAKEMAKER'] = '1' end |
