git: 0a1d2660eb7e - main - net/google-cloud-sdk: Update version 437.0.0=>438.0.0

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 15 Jul 2023 13:27:08 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0a1d2660eb7e6fe887f07a7124d5463cbd4793db

commit 0a1d2660eb7e6fe887f07a7124d5463cbd4793db
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-15 12:50:16 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-15 13:26:57 +0000

    net/google-cloud-sdk: Update version 437.0.0=>438.0.0
    
    - Versions 426.0.0 and later would immediately crash on almost any
    command due to a missing constant. [1]
    
    PR:             272414 [1]
    Reported by:    asomers [1]
---
 net/google-cloud-sdk/Makefile                      |  2 +-
 net/google-cloud-sdk/distinfo                      |  6 +++---
 ...patch-lib_googlecloudsdk_core_util_platforms.py | 22 ++++++++++++++++++++++
 3 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/net/google-cloud-sdk/Makefile b/net/google-cloud-sdk/Makefile
index 649c7925f259..83db5d963d53 100644
--- a/net/google-cloud-sdk/Makefile
+++ b/net/google-cloud-sdk/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	google-cloud-sdk
-PORTVERSION=	437.0.0
+PORTVERSION=	438.0.0
 CATEGORIES=	net
 MASTER_SITES=	https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/
 DISTNAME=	google-cloud-sdk-${PORTVERSION}-linux-x86_64
diff --git a/net/google-cloud-sdk/distinfo b/net/google-cloud-sdk/distinfo
index 4f8677c47cd6..568019afebcd 100644
--- a/net/google-cloud-sdk/distinfo
+++ b/net/google-cloud-sdk/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1688003862
-SHA256 (google-cloud-sdk-437.0.0-linux-x86_64.tar.gz) = e72e7f5c47ab5518c942893c3e0ec5ae7288d29d5d94a42dad049d8a0831d87b
-SIZE (google-cloud-sdk-437.0.0-linux-x86_64.tar.gz) = 186623732
+TIMESTAMP = 1689424277
+SHA256 (google-cloud-sdk-438.0.0-linux-x86_64.tar.gz) = 89990f3ce434fd42a19f7c7aaf862f6c3d55e563b51ef0e646e79ad9420f40df
+SIZE (google-cloud-sdk-438.0.0-linux-x86_64.tar.gz) = 186938252
diff --git a/net/google-cloud-sdk/files/patch-lib_googlecloudsdk_core_util_platforms.py b/net/google-cloud-sdk/files/patch-lib_googlecloudsdk_core_util_platforms.py
new file mode 100644
index 000000000000..d3f6cfd8e335
--- /dev/null
+++ b/net/google-cloud-sdk/files/patch-lib_googlecloudsdk_core_util_platforms.py
@@ -0,0 +1,22 @@
+--- lib/googlecloudsdk/core/util/platforms.py.orig	2023-07-15 12:32:47 UTC
++++ lib/googlecloudsdk/core/util/platforms.py
+@@ -156,8 +156,9 @@ class OperatingSystem(object):
+   MACOSX = _OS('MACOSX', 'Mac OS X', 'darwin')
+   LINUX = _OS('LINUX', 'Linux', 'linux')
+   CYGWIN = _OS('CYGWIN', 'Cygwin', 'cygwin')
++  FREEBSD = _OS('FREEBSD', 'FreeBSD', 'freebsd')
+   MSYS = _OS('MSYS', 'Msys', 'msys')
+-  _ALL = [WINDOWS, MACOSX, LINUX, CYGWIN, MSYS]
++  _ALL = [WINDOWS, MACOSX, LINUX, CYGWIN, FREEBSD, MSYS]
+ 
+   @staticmethod
+   def AllValues():
+@@ -210,6 +211,8 @@ class OperatingSystem(object):
+       return OperatingSystem.MACOSX
+     elif 'cygwin' in sys.platform:
+       return OperatingSystem.CYGWIN
++    elif 'freebsd' in sys.platform:
++      return OperatingSystem.FREEBSD
+     return None
+ 
+   @staticmethod