From c65efbf0c1403ccde583d909a960e274c4a5834d Mon Sep 17 00:00:00 2001 From: Nicholas Harteau Date: Wed, 16 Nov 2011 15:12:05 -0500 Subject: [PATCH] git: install Git.pm correctly on Lion Fixes Homebrew/homebrew#8620. Closes Homebrew/homebrew#8622. Signed-off-by: Jack Nagel --- Formula/git.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/git.rb b/Formula/git.rb index 61102fb6b2..9ec7fdbd3c 100644 --- a/Formula/git.rb +++ b/Formula/git.rb @@ -40,6 +40,13 @@ class Git < Formula # Put it into the Cellar so that it gets upgraded along with git upgrades. (prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash' + # Install Git.pm in the correct location for Lion + # https://github.com/mxcl/homebrew/issues/8620 + if MacOS.lion? + (lib+'perl5/site_perl').install 'perl/blib/lib/Git.pm' + (lib+'Git.pm').unlink + end + # Install emacs support. (share+'doc/git-core/contrib').install 'contrib/emacs' # Some people like the stuff in the contrib folder