git: 323c3edb74f1 - main - print/rubygem-pdf-reader: Allow build with rubygem-ascii85 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:54:47 UTC
The branch main has been updated by sunpoet:

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

commit 323c3edb74f1a87306bc18e0c7237ea7dd4e9515
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:31:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:40:08 +0000

    print/rubygem-pdf-reader: Allow build with rubygem-ascii85 2.0.0
    
    - Bump PORTREVISION for package change
    
    Obtained from:  https://github.com/yob/pdf-reader/commit/cb6f8ed79233def74d19b6fd869b08c836636d55
    Reference:      https://github.com/yob/pdf-reader/issues/538
                    https://github.com/DataWraith/ascii85gem/issues/8
                    https://github.com/yob/pdf-reader/compare/main...ascii85-2-0
                    https://github.com/DataWraith/ascii85gem/commit/b7480db0bf18af3a13f9b56215d283e192930ad1
---
 print/rubygem-pdf-reader/Makefile            |  3 ++-
 print/rubygem-pdf-reader/files/patch-gemspec | 13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/print/rubygem-pdf-reader/Makefile b/print/rubygem-pdf-reader/Makefile
index 463ebec075f2..f8c9e4af97c4 100644
--- a/print/rubygem-pdf-reader/Makefile
+++ b/print/rubygem-pdf-reader/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	pdf-reader
 PORTVERSION=	2.12.0
+PORTREVISION=	1
 CATEGORIES=	print rubygems
 MASTER_SITES=	RG
 
@@ -11,7 +12,7 @@ LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/MIT-LICENSE
 
 RUN_DEPENDS=	rubygem-afm>=0.2.1<0.3:print/rubygem-afm \
-		rubygem-ascii85>=1.0<2:devel/rubygem-ascii85 \
+		rubygem-ascii85>=1.0<3.0:devel/rubygem-ascii85 \
 		rubygem-hashery>=2.0<3:devel/rubygem-hashery \
 		rubygem-ruby-rc4>=0:security/rubygem-ruby-rc4 \
 		rubygem-ttfunk>=0:print/rubygem-ttfunk
diff --git a/print/rubygem-pdf-reader/files/patch-gemspec b/print/rubygem-pdf-reader/files/patch-gemspec
new file mode 100644
index 000000000000..37e849953caa
--- /dev/null
+++ b/print/rubygem-pdf-reader/files/patch-gemspec
@@ -0,0 +1,13 @@
+Obtained from:	https://github.com/yob/pdf-reader/commit/cb6f8ed79233def74d19b6fd869b08c836636d55
+
+--- pdf-reader.gemspec.orig	2024-09-07 12:21:52 UTC
++++ pdf-reader.gemspec
+@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
+   s.add_development_dependency(%q<morecane>.freeze, ["~> 0.2".freeze])
+   s.add_development_dependency(%q<pry>.freeze, [">= 0".freeze])
+   s.add_development_dependency(%q<rdoc>.freeze, [">= 0".freeze])
+-  s.add_runtime_dependency(%q<Ascii85>.freeze, ["~> 1.0".freeze])
++  s.add_runtime_dependency(%q<Ascii85>.freeze, [">= 1.0".freeze, "< 3.0".freeze])
+   s.add_runtime_dependency(%q<ruby-rc4>.freeze, [">= 0".freeze])
+   s.add_runtime_dependency(%q<hashery>.freeze, ["~> 2.0".freeze])
+   s.add_runtime_dependency(%q<ttfunk>.freeze, [">= 0".freeze])