git: install Git.pm correctly on Lion

Fixes Homebrew/homebrew#8620.
Closes Homebrew/homebrew#8622.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Nicholas Harteau 2011-11-16 15:12:05 -05:00 committed by Jack Nagel
parent ca537e2fb5
commit c65efbf0c1

View file

@ -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