git: 2b25afd5791d - main - textproc/rubygem-yard: Fix gemspec for rubygem-webrick 1.8.1 update

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 05 Feb 2023 16:03:24 UTC
The branch main has been updated by sunpoet:

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

commit 2b25afd5791d00727cef9a4bf2d2e8c0b3a3dc3d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-02-05 15:27:02 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-02-05 15:49:51 +0000

    textproc/rubygem-yard: Fix gemspec for rubygem-webrick 1.8.1 update
    
    - Bump PORTREVISION for package change
---
 textproc/rubygem-yard/Makefile            |  3 ++-
 textproc/rubygem-yard/files/patch-gemspec | 10 ++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/textproc/rubygem-yard/Makefile b/textproc/rubygem-yard/Makefile
index 1e3378cd1bc6..c2792943175b 100644
--- a/textproc/rubygem-yard/Makefile
+++ b/textproc/rubygem-yard/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	yard
 PORTVERSION=	0.9.28
+PORTREVISION=	1
 CATEGORIES=	textproc devel rubygems
 MASTER_SITES=	RG
 
@@ -10,7 +11,7 @@ WWW=		https://yardoc.org/
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	rubygem-webrick>=1.7.0<1.8:www/rubygem-webrick
+RUN_DEPENDS=	rubygem-webrick>=1.7.0<2:www/rubygem-webrick
 
 USES=		cpe gem
 
diff --git a/textproc/rubygem-yard/files/patch-gemspec b/textproc/rubygem-yard/files/patch-gemspec
new file mode 100644
index 000000000000..0f8b97ead8f1
--- /dev/null
+++ b/textproc/rubygem-yard/files/patch-gemspec
@@ -0,0 +1,10 @@
+--- yard.gemspec.orig	2023-01-31 17:01:57 UTC
++++ yard.gemspec
+@@ -21,6 +21,6 @@ Gem::Specification.new do |s|
+ 
+   s.specification_version = 4
+ 
+-  s.add_runtime_dependency(%q<webrick>.freeze, ["~> 1.7.0"])
++  s.add_runtime_dependency(%q<webrick>.freeze, ["~> 1.7"])
+ end
+