Hi all, I was wondering why the git port/package was missing the git-prompt.sh and the completion files for bash, tcsh and zsh.
The attached diff adds those files to /usr/local/share/git-core/. IMHO nicer would be to have a separate git-completion package containing those files, but that is beyond my porting/packaging skills... ;-) Any feedback is highly appreciated, please point out things I might have done wrong (sorry, first diff I send...). Kind Regards, Johannes
Index: devel/git//Makefile =================================================================== RCS file: /cvs/ports/devel/git/Makefile,v retrieving revision 1.203.2.1 diff -u -p -u -r1.203.2.1 Makefile --- devel/git//Makefile 11 Dec 2019 20:45:28 -0000 1.203.2.1 +++ devel/git//Makefile 10 Feb 2020 15:54:48 -0000 @@ -5,6 +5,7 @@ COMMENT-svn = subversion interoperabilit COMMENT-x11 = graphical tools V = 2.24.1 +REVISION = 0 DISTNAME = git-${V} PKGNAME-main = ${DISTNAME} PKGNAME-svn = git-svn-${V} @@ -116,6 +117,14 @@ post-install: .endfor ${INSTALL_DATA} ${WRKBUILD}/contrib/hooks/setgitperms.perl \ ${PREFIX}/share/git-core/templates/hooks/setgitperms.perl + ${INSTALL_DATA} ${WRKBUILD}/contrib/completion/git-prompt.sh \ + ${PREFIX}/share/git-core/git-prompt.sh + ${INSTALL_DATA} ${WRKBUILD}/contrib/completion/git-completion.bash \ + ${PREFIX}/share/git-core/ + ${INSTALL_DATA} ${WRKBUILD}/contrib/completion/git-completion.tcsh \ + ${PREFIX}/share/git-core/ + ${INSTALL_DATA} ${WRKBUILD}/contrib/completion/git-completion.zsh \ + ${PREFIX}/share/git-core/ chown -R ${BINOWN}:${BINGRP} ${PREFIX}/libexec/git ${MAKE_ENV} ${MAKE_PROGRAM} -C ${WRKBUILD}/contrib/subtree \ ${MAKE_FLAGS} install install-man Index: devel/git//pkg/PLIST-main =================================================================== RCS file: /cvs/ports/devel/git/pkg/PLIST-main,v retrieving revision 1.90.2.1 diff -u -p -u -r1.90.2.1 PLIST-main --- devel/git//pkg/PLIST-main 11 Dec 2019 20:45:28 -0000 1.90.2.1 +++ devel/git//pkg/PLIST-main 10 Feb 2020 15:54:48 -0000 @@ -383,6 +383,10 @@ share/emacs/site-lisp/ share/emacs/site-lisp/git-blame.el share/emacs/site-lisp/git.el share/git-core/ +share/git-core/git-prompt.sh +share/git-core/git-completion.bash +share/git-core/git-completion.tcsh +share/git-core/git-completion.zsh share/git-core/templates/ share/git-core/templates/branches/ share/git-core/templates/description
signature.asc
Description: OpenPGP digital signature