git: 0945e02ab201 - main - www/rubygem-http: Fix gemspec for rubygem-llhttp-ffi 0.5.0 update

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 09 Apr 2023 13:43:46 UTC
The branch main has been updated by sunpoet:

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

commit 0945e02ab201cbd94b83cb2ab00a3ad9b5152c68
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-09 13:34:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-09 13:37:26 +0000

    www/rubygem-http: Fix gemspec for rubygem-llhttp-ffi 0.5.0 update
    
    - Bump PORTREVISION for package change
---
 www/rubygem-http/Makefile            |  3 ++-
 www/rubygem-http/files/patch-gemspec | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/rubygem-http/Makefile b/www/rubygem-http/Makefile
index f00a5a474612..beb588de4e7a 100644
--- a/www/rubygem-http/Makefile
+++ b/www/rubygem-http/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	http
 PORTVERSION=	5.1.1
+PORTREVISION=	1
 CATEGORIES=	www rubygems
 MASTER_SITES=	RG
 
@@ -13,7 +14,7 @@ LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 RUN_DEPENDS=	rubygem-addressable>=2.8<3:www/rubygem-addressable \
 		rubygem-http-cookie>=1.0<2:www/rubygem-http-cookie \
 		rubygem-http-form_data>=2.2<3:www/rubygem-http-form_data \
-		rubygem-llhttp-ffi>=0.4.0<0.5:www/rubygem-llhttp-ffi
+		rubygem-llhttp-ffi>=0.4<1:www/rubygem-llhttp-ffi
 
 USES=		gem
 
diff --git a/www/rubygem-http/files/patch-gemspec b/www/rubygem-http/files/patch-gemspec
new file mode 100644
index 000000000000..659063c6d13f
--- /dev/null
+++ b/www/rubygem-http/files/patch-gemspec
@@ -0,0 +1,11 @@
+--- http.gemspec.orig	2023-04-06 18:04:03 UTC
++++ http.gemspec
+@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
+   s.add_runtime_dependency(%q<addressable>.freeze, ["~> 2.8"])
+   s.add_runtime_dependency(%q<http-cookie>.freeze, ["~> 1.0"])
+   s.add_runtime_dependency(%q<http-form_data>.freeze, ["~> 2.2"])
+-  s.add_runtime_dependency(%q<llhttp-ffi>.freeze, ["~> 0.4.0"])
++  s.add_runtime_dependency(%q<llhttp-ffi>.freeze, ["~> 0.4"])
+   s.add_development_dependency(%q<bundler>.freeze, ["~> 2.0"])
+ end
+