git: 688bab2479f8 - main - games/rubygem-lolcat: Fix gemspec for rubygem-optimist 3.1.0 update

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 16 Aug 2023 18:35:42 UTC
The branch main has been updated by sunpoet:

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

commit 688bab2479f8e99faf8552d8f1aae60bf4ee67e0
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-16 18:14:59 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-16 18:26:14 +0000

    games/rubygem-lolcat: Fix gemspec for rubygem-optimist 3.1.0 update
    
    - Remove contiguous blank lines
    - Bump PORTREVISION for package change
---
 games/rubygem-lolcat/Makefile            |  4 ++--
 games/rubygem-lolcat/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/games/rubygem-lolcat/Makefile b/games/rubygem-lolcat/Makefile
index 3c6f33a0d763..1c4199315491 100644
--- a/games/rubygem-lolcat/Makefile
+++ b/games/rubygem-lolcat/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lolcat
 PORTVERSION=	100.0.1
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	RG
 
@@ -11,12 +12,11 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	rubygem-manpages>=0.6.1<0.7:devel/rubygem-manpages \
-		rubygem-optimist>=3.0.0<3.1:devel/rubygem-optimist \
+		rubygem-optimist>=3.0.0<4:devel/rubygem-optimist \
 		rubygem-paint>=2.1<3:devel/rubygem-paint
 
 USES=		gem
 
-
 NO_ARCH=	yes
 
 PLIST_FILES=	bin/lolcat \
diff --git a/games/rubygem-lolcat/files/patch-gemspec b/games/rubygem-lolcat/files/patch-gemspec
new file mode 100644
index 000000000000..9f444174e00a
--- /dev/null
+++ b/games/rubygem-lolcat/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- lolcat.gemspec.orig	2023-08-03 16:39:32 UTC
++++ lolcat.gemspec
+@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
+ 
+   s.add_development_dependency(%q<rake>.freeze, [">= 0"])
+   s.add_runtime_dependency(%q<paint>.freeze, ["~> 2.1"])
+-  s.add_runtime_dependency(%q<optimist>.freeze, ["~> 3.0.0"])
++  s.add_runtime_dependency(%q<optimist>.freeze, ["~> 3.0"])
+   s.add_runtime_dependency(%q<manpages>.freeze, ["~> 0.6.1"])
+ end
+