<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/fdafbbef1d145dcdc1822648d862cd78811a9f39">https://github.com/macports/macports-ports/commit/fdafbbef1d145dcdc1822648d862cd78811a9f39</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new fdafbbef1d1 google-cloud-sdk: add variants for gcloud components
</span>fdafbbef1d1 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit fdafbbef1d145dcdc1822648d862cd78811a9f39
</span>Author: Nils Breunese <nils@breun.nl>
AuthorDate: Wed Jan 20 01:20:06 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> google-cloud-sdk: add variants for gcloud components
</span>---
devel/google-cloud-sdk/Portfile | 61 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 60 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/google-cloud-sdk/Portfile b/devel/google-cloud-sdk/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index faff36524c0..8ec3a8b3dff 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/google-cloud-sdk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/google-cloud-sdk/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup python 1.0
</span>
name google-cloud-sdk
version 324.0.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel python
license Apache-2
maintainers {breun.nl:nils @breun} openmaintainer
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -44,8 +45,66 @@ post-patch {
</span> use_configure no
build {}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+# MacPorts variants are not allowed to contain '-' and gcloud component names use both '-' and '_',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# so each variant adds an explicit mapping from variant name to gcloud component name.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# See https://cloud.google.com/sdk/docs/components for more info about gcloud components.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Current list of available components is not documented, but can be found via: docker run -it --rm google/cloud-sdk gcloud components list
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# 'gcloud', 'bq', 'gsutil' and 'core' components are installed by default, so not offered as variants.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set variant_to_component [dict create]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant alpha description {Add gcloud CLI Alpha Commands} { dict set variant_to_component alpha alpha }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant anthos_auth description {Add Anthos auth} { dict set variant_to_component anthos_auth anthos-auth }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant app_engine_go description {Add App Engine Go Extensions} { dict set variant_to_component app_engine_go app-engine-go }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant app_engine_java description {Add gcloud app Java Extensions} { dict set variant_to_component app_engine_java app-engine-java }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant app_engine_python description {Add gcloud app Python Extensions} { dict set variant_to_component app_engine_python app-engine-python }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant app_engine_python_extras description {Add gcloud app Python Extensions (Extra Libraries)} { dict set variant_to_component app_engine_python_extras app-engine-python-extras }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant appctl description {Add Appctl} { dict set variant_to_component appctl appctl }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant beta description {Add gcloud CLI Beta Commands } { dict set variant_to_component beta beta }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant bigtable description {Add Cloud Bigtable Emulator} { dict set variant_to_component bigtable bigtable }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cbt description {Add Cloud Bigtable Command Line Tool} { dict set variant_to_component cbt cbt }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cloud_build_local description {Add Google Cloud Build Local Builder} { dict set variant_to_component cloud_build_local cloud-build-local }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cloud_datastore_emulator description {Add Cloud Datastore Emulator} { dict set variant_to_component cloud_datastore_emulator cloud-datastore-emulator }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cloud_firestore_emulator description {Add Cloud Firestore Emulator} { dict set variant_to_component cloud_firestore_emulator cloud-firestore-emulator }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cloud_spanner_emulator description {Add Cloud Spanner Emulator} { dict set variant_to_component cloud_spanner_emulator cloud-spanner-emulator }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant cloud_sql_proxy description {Add Cloud SQL Proxy} { dict set variant_to_component cloud_sql_proxy cloud_sql_proxy }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant config_connector description {Add config connector} { dict set variant_to_component config_connector config-connector }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant datalab description {Add Cloud Datalab Command Line Tool} { dict set variant_to_component datalab datalab }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant docker_credential_gcr description {Add Google Container Registry's Docker credential helper} { dict set variant_to_component docker_credential_gcr docker-credential-gcr }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant emulator_reverse_proxy description {Add Emulator Reverse Proxy} { dict set variant_to_component emulator_reverse_proxy emulator-reverse-proxy }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant kpt description {Add kpt} { dict set variant_to_component kpt kpt }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant kubectl description {Add kubectl} { dict set variant_to_component kubectl kubectl }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant kubectl_oidc description {Add kubectl-oidc} { dict set variant_to_component kubectl_oidc kubectl-oidc }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant kustomize description {Add Kustomize} { dict set variant_to_component kustomize kustomize }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant minikube description {Add Minikube} { dict set variant_to_component minikube minikube }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant nomos description {Add Nomos CLI} { dict set variant_to_component nomos nomos }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant pkg description {Add pkg} { dict set variant_to_component pkg pkg }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant pubsub_emulator description {Add Cloud Pub/Sub Emulator} { dict set variant_to_component pubsub_emulator pubsub-emulator }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant skaffold description {Add Skaffold} { dict set variant_to_component skaffold skaffold }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set install_command "CLOUDSDK_CONFIG=${worksrcpath}/.config ./install.sh \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --usage-reporting false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --command-completion false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --path-update false \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --quiet"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set additional_components {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach component_variant [dict keys ${variant_to_component}] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[variant_isset ${component_variant}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend additional_components [dict get ${variant_to_component} ${component_variant}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [llength ${additional_components}] > 0 } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append install_command " --additional-components"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach additional_component ${additional_components} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append install_command " " ${additional_component}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} ${install_command}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${worksrcpath} "CLOUDSDK_CONFIG=${worksrcpath}/.config ./install.sh --usage-reporting false --command-completion false --path-update false --quiet"
</span> set libexecdir ${destroot}${prefix}/libexec/${name}
xinstall -d ${libexecdir}
copy \
</pre><pre style='margin:0'>
</pre>