pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/git-base Install the zsh completion to site-func...
details: https://anonhg.NetBSD.org/pkgsrc/rev/c0016182219b
branches: trunk
changeset: 387084:c0016182219b
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Fri Oct 21 17:31:18 2022 +0000
description:
Install the zsh completion to site-functions. Bump PKGREVISION.
diffstat:
devel/git-base/Makefile | 11 ++++++-
devel/git-base/PLIST | 3 +-
devel/git-base/distinfo | 9 +++--
devel/git-base/patches/patch-contrib_completion_git-completion.zsh | 15 ++++++++++
4 files changed, 32 insertions(+), 6 deletions(-)
diffs (94 lines):
diff -r 760f04099d12 -r c0016182219b devel/git-base/Makefile
--- a/devel/git-base/Makefile Fri Oct 21 16:11:00 2022 +0000
+++ b/devel/git-base/Makefile Fri Oct 21 17:31:18 2022 +0000
@@ -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 @@
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_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 -r 760f04099d12 -r c0016182219b devel/git-base/PLIST
--- a/devel/git-base/PLIST Fri Oct 21 16:11:00 2022 +0000
+++ b/devel/git-base/PLIST Fri Oct 21 17:31:18 2022 +0000
@@ -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/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 -r 760f04099d12 -r c0016182219b devel/git-base/distinfo
--- a/devel/git-base/distinfo Fri Oct 21 16:11:00 2022 +0000
+++ b/devel/git-base/distinfo Fri Oct 21 17:31:18 2022 +0000
@@ -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 -r 760f04099d12 -r c0016182219b devel/git-base/patches/patch-contrib_completion_git-completion.zsh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/git-base/patches/patch-contrib_completion_git-completion.zsh Fri Oct 21 17:31:18 2022 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index