Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app-misc/google-cloud-sdk/Manifest
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
DIST google-cloud-sdk-514.0.0-linux-x86_64.tar.gz 148839845 BLAKE2B 7502ae17ea45a453fb9f4eb6d00bd02b0c48c1829572847d5ea91091e81512724c9b8f5ca58f962e2b9a0a704af08aeaccee5427febf8149d7c48e1593cd7e5d SHA512 8d4764849e89800116602732bc6ae3f9e012095b4d6bbe88dc7506845d1190bf82f11f3c59dd81e1591ab24bdf09496d910e4f17b4b69e88e3338a8324243741
DIST google-cloud-sdk-518.0.0-linux-x86_64.tar.gz 148399841 BLAKE2B a69cf7e0c8d22553b1c1be42fae7e45cc8632fef09b7598ad4fc4937145029bd62e7b26a01e9b277a315219d64dbe3f4d535fcc4b8e7df86681a215ce1f941ed SHA512 ae9ab98de2c73cff5eee0052174e8492273581285276f3ce227d59641b1cf6e91944c2bfba95e0910110e20b7b501c62623dabd805dac7d19da0098166eab01a
DIST google-cloud-sdk-519.0.0-linux-x86_64.tar.gz 148431862 BLAKE2B 8a6f676888813da4c688997e4b8940ed31ffaf67e3ef1483db3b1b67958c9e394fcdf51d69799e8358fa52d8bf3ec0e42f192ebde62ec262d522580c62426146 SHA512 940cf914290f64d235607267de32366d5cbfa5dfb989c48338b3104d9e6ad4c845d4bdf8ec22fd295de1ff8c56f4a60a729d114d44c4d37f0ed04c90350c8e86
DIST google-cloud-sdk-523.0.1-linux-x86_64.tar.gz 148823863 BLAKE2B 793c2b70043f67a80700da2b40b515a2fe6480994987b177436b6f68f7a7ef567c2f03e696a6741d90c047be9ed7f3e520117b8e36b89204c3f9968032bfa76c SHA512 e7737f70059464e75b9efe9dc1551408e6cc143348e75d4431c231531d72c20fcca4c7077b9a3f3349f48777f7b9ebdba2ca09b0b8470dfbfd05b4aee025dd80
47 changes: 47 additions & 0 deletions app-misc/google-cloud-sdk/google-cloud-sdk-523.0.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Distributed under the terms of the GNU General Public License v2

EAPI=7

PYTHON_COMPAT=( python3+ )

inherit bash-completion-r1 python-any-r1

DESCRIPTION="A set of command-line tools for the Google Cloud Platform."
HOMEPAGE="https://cloud.google.com/sdk/"
SRC_URI="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-523.0.1-linux-x86_64.tar.gz -> google-cloud-sdk-523.0.1-linux-x86_64.tar.gz"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="*"
IUSE="zsh-completion"

DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
BDEPEND=""

S="${WORKDIR}/google-cloud-sdk"

src_install() {
BASE_DIR=/opt/google-cloud-sdk

insinto ${BASE_DIR}
doins -r .

for bin_file in bin/*
do
bin_filename=${bin_file#bin/}

fperms +x ${BASE_DIR}/${bin_file}
dosym ${BASE_DIR}/${bin_file} /usr/bin/${bin_filename}
done

newbashcomp completion.bash.inc gcloud

bashcomp_alias gcloud bq
bashcomp_alias gcloud gsutil

if use zsh-completion; then
insinto /usr/share/zsh/site-functions
newins completion.zsh.inc _gcloud
fi
}