git: fac14b55fcaa - main - net/rubygem-fog-google: Allow build with rubygem-google-cloud-env 2.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 14 Dec 2023 20:55:48 UTC
The branch main has been updated by sunpoet:

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

commit fac14b55fcaa054dc520ca4826c04671f25fe9ae
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-12-14 20:47:10 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-12-14 20:47:10 +0000

    net/rubygem-fog-google: Allow build with rubygem-google-cloud-env 2.0.0+
    
    - Bump PORTREVISION for package change
---
 net/rubygem-fog-google/Makefile            |  3 ++-
 net/rubygem-fog-google/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/net/rubygem-fog-google/Makefile b/net/rubygem-fog-google/Makefile
index fb933dfd36c6..0858f01d1d0e 100644
--- a/net/rubygem-fog-google/Makefile
+++ b/net/rubygem-fog-google/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	fog-google
 PORTVERSION=	1.23.0
+PORTREVISION=	1
 CATEGORIES=	net rubygems
 MASTER_SITES=	RG
 
@@ -21,7 +22,7 @@ RUN_DEPENDS=	rubygem-addressable>=2.7.0:www/rubygem-addressable \
 		rubygem-google-apis-pubsub_v1>=0.30<1:devel/rubygem-google-apis-pubsub_v1 \
 		rubygem-google-apis-sqladmin_v1beta4>=0.38<1:devel/rubygem-google-apis-sqladmin_v1beta4 \
 		rubygem-google-apis-storage_v1>=0.19<1:devel/rubygem-google-apis-storage_v1 \
-		rubygem-google-cloud-env>=1.2<2:net/rubygem-google-cloud-env
+		rubygem-google-cloud-env>=1.2<3.0:net/rubygem-google-cloud-env
 
 USES=		gem shebangfix
 
diff --git a/net/rubygem-fog-google/files/patch-gemspec b/net/rubygem-fog-google/files/patch-gemspec
new file mode 100644
index 000000000000..11748a1f5b8c
--- /dev/null
+++ b/net/rubygem-fog-google/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- fog-google.gemspec.orig	2023-12-14 20:23:00 UTC
++++ fog-google.gemspec
+@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
+   s.add_runtime_dependency(%q<google-apis-dns_v1>.freeze, ["~> 0.28"])
+   s.add_runtime_dependency(%q<google-apis-pubsub_v1>.freeze, ["~> 0.30"])
+   s.add_runtime_dependency(%q<google-apis-sqladmin_v1beta4>.freeze, ["~> 0.38"])
+-  s.add_runtime_dependency(%q<google-cloud-env>.freeze, ["~> 1.2"])
++  s.add_runtime_dependency(%q<google-cloud-env>.freeze, [">= 1.2", "< 3.0"])
+   s.add_runtime_dependency(%q<addressable>.freeze, [">= 2.7.0"])
+   s.add_development_dependency(%q<pry>.freeze, ["= 0.13.0"])
+   s.add_development_dependency(%q<retriable>.freeze, [">= 0"])