git: 7a77eb44282d - main - devel/rubygem-xdg3: Allow build with Ruby 3.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:49:30 UTC
The branch main has been updated by sunpoet:

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

commit 7a77eb44282d461a38d1c41b3072032f006d8686
Author:     Yasuhiro Kimura <yasu@freebsd.org>
AuthorDate: 2022-03-25 13:31:32 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:38:03 +0000

    devel/rubygem-xdg3: Allow build with Ruby 3.0+
    
    - Bump PORTREVISION for package change
    
    PR:             262484
---
 devel/rubygem-xdg3/Makefile            |  1 +
 devel/rubygem-xdg3/files/patch-gemspec | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/rubygem-xdg3/Makefile b/devel/rubygem-xdg3/Makefile
index 816c88cedfae..cf9ed1bfb0d8 100644
--- a/devel/rubygem-xdg3/Makefile
+++ b/devel/rubygem-xdg3/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	xdg
 PORTVERSION=	3.1.1
+PORTREVISION=	1
 CATEGORIES=	devel rubygems
 MASTER_SITES=	RG
 PKGNAMESUFFIX=	3
diff --git a/devel/rubygem-xdg3/files/patch-gemspec b/devel/rubygem-xdg3/files/patch-gemspec
new file mode 100644
index 000000000000..78b5f2372325
--- /dev/null
+++ b/devel/rubygem-xdg3/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- xdg.gemspec.orig	2022-03-13 13:35:42 UTC
++++ xdg.gemspec
+@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
+   s.files = ["LICENSE.md".freeze, "README.md".freeze, "lib/xdg.rb".freeze, "lib/xdg/cache.rb".freeze, "lib/xdg/config.rb".freeze, "lib/xdg/data.rb".freeze, "lib/xdg/environment.rb".freeze, "lib/xdg/identity.rb".freeze, "lib/xdg/pair.rb".freeze, "lib/xdg/paths/combined.rb".freeze, "lib/xdg/paths/directory.rb".freeze, "lib/xdg/paths/standard.rb".freeze]
+   s.homepage = "https://github.com/bkuhlmann/xdg".freeze
+   s.licenses = ["Apache-2.0".freeze]
+-  s.required_ruby_version = Gem::Requirement.new("~> 2.6".freeze)
++  s.required_ruby_version = Gem::Requirement.new(">= 2.6".freeze)
+   s.rubygems_version = "3.3.9".freeze
+   s.summary = "Provides an implementation of the XDG Base Directory Specification.".freeze
+