diff --git a/net/rubygem-omniauth-oauth2/Makefile b/net/rubygem-omniauth-oauth2/Makefile index b2983383c0a9..80215b7af972 100644 --- a/net/rubygem-omniauth-oauth2/Makefile +++ b/net/rubygem-omniauth-oauth2/Makefile @@ -1,20 +1,21 @@ PORTNAME= omniauth-oauth2 PORTVERSION= 1.8.0 +PORTREVISION= 1 CATEGORIES= net rubygems MASTER_SITES= RG MAINTAINER= ruby@FreeBSD.org COMMENT= Abstract OAuth2 strategy for OmniAuth LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md RUN_DEPENDS= rubygem-oauth2>=1.4<3:net/rubygem-oauth2 \ - rubygem-omniauth>=2.0<3:security/rubygem-omniauth + rubygem-omniauth>=1.9<3:security/rubygem-omniauth USES= gem USE_RUBY= yes NO_ARCH= yes .include diff --git a/net/rubygem-omniauth-oauth2/files/patch-gemspec b/net/rubygem-omniauth-oauth2/files/patch-gemspec new file mode 100644 index 000000000000..e11300d78ced --- /dev/null +++ b/net/rubygem-omniauth-oauth2/files/patch-gemspec @@ -0,0 +1,15 @@ +Fix runtime of www/gitlab-ce + +Allow omniauth 1.9.* to fix bundler check when gitlab starts. + +--- omniauth-oauth2.gemspec.orig 2022-07-11 15:00:59 UTC ++++ omniauth-oauth2.gemspec +@@ -24,7 +24,7 @@ Gem::Specification.new do |s| + + if s.respond_to? :add_runtime_dependency then + s.add_runtime_dependency(%q.freeze, [">= 1.4", "< 3"]) +- s.add_runtime_dependency(%q.freeze, ["~> 2.0"]) ++ s.add_runtime_dependency(%q.freeze, [">= 1.9", "< 3"]) + s.add_development_dependency(%q.freeze, ["~> 2.0"]) + else + s.add_dependency(%q.freeze, [">= 1.4", "< 3"])