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-524.0.0-linux-x86_64.tar.gz 148838632 BLAKE2B 47f7cf00acd76518dc30069af30d95cdde12e3a00e48e8f836690a12069fedcffa0906fed5768a7c21f8180f50363624cfd061142fcf2a19a222f10f6b0698b3 SHA512 cf0efe7e66ba86824d037d724d42f5cb713ad4f0cce737d794302505e1869d3efcc9c171b781827cb8e60ca1d4388571e44282c4cc03436ff8d4395876cdc052
47 changes: 47 additions & 0 deletions app-misc/google-cloud-sdk/google-cloud-sdk-524.0.0.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-524.0.0-linux-x86_64.tar.gz -> google-cloud-sdk-524.0.0-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
}