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:
parent
ca537e2fb5
commit
c65efbf0c1
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue