From 4cfacc4def66d02b55d8b303b85522bf30317c8f Mon Sep 17 00:00:00 2001 From: Nicholas Harteau Date: Wed, 16 Nov 2011 15:12:05 -0500 Subject: git: install Git.pm correctly on Lion Fixes #8620. Closes #8622. Signed-off-by: Jack Nagel --- Library/Formula/git.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula/git.rb') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 61102fb6b..9ec7fdbd3 100644 --- a/Library/Formula/git.rb +++ b/Library/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 -- cgit v1.2.3