diff --git a/databases/rubygem-mario-redis-lock/Makefile b/databases/rubygem-mario-redis-lock/Makefile index f10eb62b1264..fde650c90868 100644 --- a/databases/rubygem-mario-redis-lock/Makefile +++ b/databases/rubygem-mario-redis-lock/Makefile @@ -2,7 +2,7 @@ PORTNAME= mario-redis-lock PORTVERSION= 1.2.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases rubygems MASTER_SITES= RG @@ -11,10 +11,11 @@ COMMENT= Ruby distributed lock using Redis, with emphasis in transparency LICENSE= MIT -RUN_DEPENDS= rubygem-redis3>=3.3.3:databases/rubygem-redis3 +RUN_DEPENDS= rubygem-redis>=4:databases/rubygem-redis USES= gem USE_RUBY= yes + NO_ARCH= yes .include diff --git a/databases/rubygem-mario-redis-lock/files/patch-mario-redis-lock.gemspec b/databases/rubygem-mario-redis-lock/files/patch-mario-redis-lock.gemspec new file mode 100644 index 000000000000..298cad7c5bb9 --- /dev/null +++ b/databases/rubygem-mario-redis-lock/files/patch-mario-redis-lock.gemspec @@ -0,0 +1,20 @@ +--- mario-redis-lock.gemspec.orig 2018-01-03 01:55:48 UTC ++++ mario-redis-lock.gemspec +@@ -22,7 +22,7 @@ Gem::Specification.new do |s| + s.specification_version = 4 + + if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then +- s.add_runtime_dependency(%q.freeze, [">= 3.0.5", "~> 3"]) ++ s.add_runtime_dependency(%q.freeze, [">= 3.0.5"]) + s.add_development_dependency(%q.freeze, ["~> 1"]) + s.add_development_dependency(%q.freeze, ["~> 10"]) + else +@@ -31,7 +31,7 @@ Gem::Specification.new do |s| + s.add_dependency(%q.freeze, ["~> 10"]) + end + else +- s.add_dependency(%q.freeze, [">= 3.0.5", "~> 3"]) ++ s.add_dependency(%q.freeze, [">= 3.0.5"]) + s.add_dependency(%q.freeze, ["~> 1"]) + s.add_dependency(%q.freeze, ["~> 10"]) + end