git: fd44d22e3792 - main - devel/rubygem-google-gax: Fix gemspec for rubygem-googleauth 1.1.0 update

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 28 Feb 2022 12:53:13 UTC
The branch main has been updated by sunpoet:

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

commit fd44d22e37923282eb5221404272b3f60b2dd939
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-02-28 09:38:38 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-02-28 12:46:32 +0000

    devel/rubygem-google-gax: Fix gemspec for rubygem-googleauth 1.1.0 update
    
    - Bump PORTREVISION for package change
---
 devel/rubygem-google-gax/Makefile            |  3 ++-
 devel/rubygem-google-gax/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/rubygem-google-gax/Makefile b/devel/rubygem-google-gax/Makefile
index 198af92fc907..f2e9d5e9a81f 100644
--- a/devel/rubygem-google-gax/Makefile
+++ b/devel/rubygem-google-gax/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	google-gax
 PORTVERSION=	1.8.2
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 
@@ -13,7 +14,7 @@ LICENSE=	BSD3CLAUSE
 RUN_DEPENDS=	rubygem-google-protobuf>=3.9<4:devel/rubygem-google-protobuf \
 		rubygem-googleapis-common-protos>=1.3.9<2.0:devel/rubygem-googleapis-common-protos \
 		rubygem-googleapis-common-protos-types>=1.0.4<2.0:devel/rubygem-googleapis-common-protos-types \
-		rubygem-googleauth>=0.9<1:security/rubygem-googleauth \
+		rubygem-googleauth>=0.9<2:security/rubygem-googleauth \
 		rubygem-grpc>=1.24<2:net/rubygem-grpc \
 		rubygem-rly>=0.2.3<0.3:textproc/rubygem-rly
 
diff --git a/devel/rubygem-google-gax/files/patch-gemspec b/devel/rubygem-google-gax/files/patch-gemspec
new file mode 100644
index 000000000000..987b89aa3dc7
--- /dev/null
+++ b/devel/rubygem-google-gax/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- google-gax.gemspec.orig	2022-01-30 20:27:15 UTC
++++ google-gax.gemspec
+@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
+   end
+ 
+   if s.respond_to? :add_runtime_dependency then
+-    s.add_runtime_dependency(%q<googleauth>.freeze, ["~> 0.9"])
++    s.add_runtime_dependency(%q<googleauth>.freeze, [">= 0.9", "< 2.a"])
+     s.add_runtime_dependency(%q<grpc>.freeze, ["~> 1.24"])
+     s.add_runtime_dependency(%q<googleapis-common-protos>.freeze, [">= 1.3.9", "< 2.0"])
+     s.add_runtime_dependency(%q<googleapis-common-protos-types>.freeze, [">= 1.0.4", "< 2.0"])