diff options
author | schmonz <schmonz@pkgsrc.org> | 2022-10-21 17:31:18 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2022-10-21 17:31:18 +0000 |
commit | 65d4021ae2cceb151361009816d4b3420a1dc888 (patch) | |
tree | dbf2aa790e335e19cd8e7ec54f3c05dbbed753eb | |
parent | 93f045da952336ff948b88eb9a70a1f0bc30e87e (diff) | |
download | pkgsrc-65d4021ae2cceb151361009816d4b3420a1dc888.tar.gz |
Install the zsh completion to site-functions. Bump PKGREVISION.
-rw-r--r-- | devel/git-base/Makefile | 11 | ||||
-rw-r--r-- | devel/git-base/PLIST | 3 | ||||
-rw-r--r-- | devel/git-base/distinfo | 9 | ||||
-rw-r--r-- | devel/git-base/patches/patch-contrib_completion_git-completion.zsh | 15 |
4 files changed, 32 insertions, 6 deletions
diff --git a/devel/git-base/Makefile b/devel/git-base/Makefile index e83ba739f11..2bec0e93466 100644 --- a/devel/git-base/Makefile +++ b/devel/git-base/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.99 2022/10/07 10:10:05 adam Exp $ +# $NetBSD: Makefile,v 1.100 2022/10/21 17:31:18 schmonz Exp $ .include "../../devel/git/Makefile.common" PKGNAME= git-base-${GIT_VERSION} +PKGREVISION= 1 COMMENT= GIT Tree History Storage Tool (base package) CONFLICTS+= scmgit-base-[0-9]* @@ -73,6 +74,11 @@ GIT_TEMPLATE_INSTDIR= ${EGDIR}/${GIT_TEMPLATEDIR} MAKE_ENV+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR} MESSAGE_SUBST+= GIT_TEMPLATE_INSTDIR=${GIT_TEMPLATE_INSTDIR} +SUBST_CLASSES+= paths +SUBST_FILES.paths= contrib/completion/git-completion.zsh +SUBST_STAGE.paths= pre-configure +SUBST_VARS.paths= PREFIX + .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1" || ${OPSYS} == "HPUX" || ${OPSYS} == "QNX" || ${OPSYS} == "UnixWare" @@ -102,11 +108,14 @@ INSTALL_ENV+= NO_CROSS_DIRECTORY_HARDLINKS=1 INSTALL_ENV+= NO_INSTALL_HARDLINKS=1 INSTALLATION_DIRS+= share/bash-completion/completions +INSTALLATION_DIRS+= share/zsh/site-functions INSTALLATION_DIRS+= ${EGDIR} post-install: ${INSTALL_DATA} ${WRKSRC}/contrib/completion/git-completion.bash \ ${DESTDIR}${PREFIX}/share/bash-completion/completions/git + ${INSTALL_DATA} ${WRKSRC}/contrib/completion/git-completion.zsh \ + ${DESTDIR}${PREFIX}/share/zsh/site-functions/_git ${INSTALL_DATA} ${WRKSRC}/contrib/completion/git-prompt.sh \ ${DESTDIR}${EGDIR} diff --git a/devel/git-base/PLIST b/devel/git-base/PLIST index ef975b82006..0237abbf801 100644 --- a/devel/git-base/PLIST +++ b/devel/git-base/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.38 2022/10/07 10:10:05 adam Exp $ +@comment $NetBSD: PLIST,v 1.39 2022/10/21 17:31:18 schmonz Exp $ bin/git bin/git-cvsserver bin/git-receive-pack @@ -255,3 +255,4 @@ share/locale/tr/LC_MESSAGES/git.mo share/locale/vi/LC_MESSAGES/git.mo share/locale/zh_CN/LC_MESSAGES/git.mo share/locale/zh_TW/LC_MESSAGES/git.mo +share/zsh/site-functions/_git diff --git a/devel/git-base/distinfo b/devel/git-base/distinfo index dd1b3b45ccf..5e51df0ce39 100644 --- a/devel/git-base/distinfo +++ b/devel/git-base/distinfo @@ -1,11 +1,12 @@ -$NetBSD: distinfo,v 1.125 2022/10/19 07:54:52 adam Exp $ +$NetBSD: distinfo,v 1.126 2022/10/21 17:31:18 schmonz Exp $ -BLAKE2s (git-2.38.1.tar.xz) = 9e46f917a14bc0761344a6f07732abc2acb56d74255b7d4c56f3e6327dee89b4 -SHA512 (git-2.38.1.tar.xz) = e62ca6f54f01d2e4ccffb5f94e8e5cd2f3e098b766d909c694a8daf4d00d5cdeb9cc5ff8e9bc55d888406f292ba99433d334d4da9689c0ce5d7299a3c67c90e0 -Size (git-2.38.1.tar.xz) = 7088208 bytes +BLAKE2s (git-2.38.0.tar.xz) = 195aecebc553edd44cb410c7dc2db91299d10b3cbeb3c7cb0da4fec94026598a +SHA512 (git-2.38.0.tar.xz) = 5c475d25b40a01cc62be28478b9b5a1b0cedf91c3e007d4869019a25bdc980b5ef9b761e7ee02d7c581bff6c7dbf2696a624431a718dcd976bad34a3f2be5cb6 +Size (git-2.38.0.tar.xz) = 7086664 bytes SHA1 (patch-Documentation_Makefile) = 6025adac0fbb4b403f3954e6dac9d690dfb22daa SHA1 (patch-Makefile) = 683a2fdf69c3cb5814fcc59360be2eba91cb88a7 SHA1 (patch-config.mak.uname) = 5316873147acf5b6ef29e426946280bb6441c886 +SHA1 (patch-contrib_completion_git-completion.zsh) = 695c78c8be7cc2a3792d1c428ebc5739b049852e SHA1 (patch-git-gui_Makefile) = d00f4da74a437f3a58f0926f2407c974a8efc2c7 SHA1 (patch-gitk-git_Makefile) = e5d2112d158fe493a89b244a10d2e4b998a23d98 SHA1 (patch-templates_Makefile) = 4f0b9a5745203ea7ef369c8272b3ea7c644762f0 diff --git a/devel/git-base/patches/patch-contrib_completion_git-completion.zsh b/devel/git-base/patches/patch-contrib_completion_git-completion.zsh new file mode 100644 index 00000000000..1b0ad90ec70 --- /dev/null +++ b/devel/git-base/patches/patch-contrib_completion_git-completion.zsh @@ -0,0 +1,15 @@ +$NetBSD: patch-contrib_completion_git-completion.zsh,v 1.1 2022/10/21 17:31:18 schmonz Exp $ + +Find pkgsrc-provided bash completion. + +--- contrib/completion/git-completion.zsh.orig 2022-10-02 23:02:46.000000000 +0000 ++++ contrib/completion/git-completion.zsh +@@ -30,7 +30,7 @@ if [ -z "$script" ]; then + local e bash_completion + + bash_completion=$(pkg-config --variable=completionsdir bash-completion 2>/dev/null) || +- bash_completion='/usr/share/bash-completion/completions/' ++ bash_completion='@PREFIX@/share/bash-completion/completions/' + + locations=( + "$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash |