svn commit: r559364 - head/net/google-cloud-sdk
Mateusz Piotrowski
0mp at FreeBSD.org
Sun Dec 27 15:01:53 UTC 2020
Author: 0mp
Date: Sun Dec 27 15:01:53 2020
New Revision: 559364
URL: https://svnweb.freebsd.org/changeset/ports/559364
Log:
net/google-cloud-sdk: Install Bash & Zsh completion files
Approved by: swills (maintainer)
Differential Revision: https://reviews.freebsd.org/D27586
Modified:
head/net/google-cloud-sdk/Makefile
Modified: head/net/google-cloud-sdk/Makefile
==============================================================================
--- head/net/google-cloud-sdk/Makefile Sun Dec 27 15:00:38 2020 (r559363)
+++ head/net/google-cloud-sdk/Makefile Sun Dec 27 15:01:53 2020 (r559364)
@@ -2,6 +2,7 @@
PORTNAME= google-cloud-sdk
PORTVERSION= 321.0.0
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/
DISTNAME= google-cloud-sdk-${PORTVERSION}-linux-x86_64
@@ -26,6 +27,12 @@ PLIST_FILES= bin/bq \
bin/git-credential-gcloud.sh \
bin/gsutil
+OPTIONS_DEFINE= BASH ZSH
+OPTIONS_DEFAULT= BASH ZSH
+
+BASH_PLIST_FILES= share/bash-completion/completions/gcloud
+ZSH_PLIST_FILES= share/zsh/site-functions/_gcloud
+
post-extract:
@${RM} -r \
${WRKSRC}/bin/anthoscli \
@@ -52,5 +59,15 @@ do-install:
post-install:
@(cd ${STAGEDIR}${PREFIX} && \
${FIND} -s google-cloud-sdk -type f -o -type l >> ${TMPPLIST})
+
+post-install-BASH-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
+ ${RLN} ${STAGEDIR}${PREFIX}/google-cloud-sdk/completion.bash.inc \
+ ${STAGEDIR}${PREFIX}/share/bash-completion/completions/gcloud
+
+post-install-ZSH-on:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
+ ${RLN} ${STAGEDIR}${PREFIX}/google-cloud-sdk/completion.zsh.inc \
+ ${STAGEDIR}${PREFIX}/share/zsh/site-functions/_gcloud
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list