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 +1,2 @@
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
}
Loading