From owner-svn-ports-all@freebsd.org Sun Dec 27 15:01:53 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A41FC4BD9F6; Sun, 27 Dec 2020 15:01:53 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D3kRP4KDqz4jbn; Sun, 27 Dec 2020 15:01:53 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 873E3102F; Sun, 27 Dec 2020 15:01:53 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0BRF1r1w020003; Sun, 27 Dec 2020 15:01:53 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0BRF1rux020002; Sun, 27 Dec 2020 15:01:53 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <202012271501.0BRF1rux020002@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Sun, 27 Dec 2020 15:01:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r559364 - head/net/google-cloud-sdk X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: head/net/google-cloud-sdk X-SVN-Commit-Revision: 559364 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Dec 2020 15:01:53 -0000 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