dev-ruby/sinatra: fix tests on ruby31

Upstream determined this will go into 3.0.0 release, so it's still
required for 2.2.1.

See: https://github.com/sinatra/sinatra/issues/1774
See: https://github.com/sinatra/sinatra/pull/1519
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matoro Mahri
2022-10-22 17:33:11 -04:00
committed by Matt Turner
parent 36c1c995a8
commit cd0ceca03b
3 changed files with 9 additions and 5 deletions
@@ -1,3 +1,5 @@
https://github.com/sinatra/sinatra/pull/1519
From 6d34a2a1bee48961c25e1b53edac874a31c42060 Mon Sep 17 00:00:00 2001
From: Jordan Owens <jkowens@gmail.com>
Date: Thu, 31 Jan 2019 22:32:45 -0500
+2 -4
View File
@@ -21,10 +21,8 @@ SLOT="2"
KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE=""
# Backport https://github.com/sinatra/sinatra/pull/1519 from master.
# Fixes https://github.com/sinatra/sinatra/issues/1774
# Required for ruby31 compat.
# Should be removed on next release.
# https://github.com/sinatra/sinatra/pull/1519 from master.
# https://github.com/sinatra/sinatra/issues/1774
PATCHES=( "${FILESDIR}/backport-pr-1519.patch" )
ruby_add_rdepend "
+5 -1
View File
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby27 ruby30"
USE_RUBY="ruby27 ruby30 ruby31"
RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=true test:core"
@@ -21,6 +21,10 @@ SLOT="2"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE=""
# https://github.com/sinatra/sinatra/pull/1519
# https://github.com/sinatra/sinatra/issues/1774
PATCHES=( "${FILESDIR}/backport-pr-1519.patch" )
ruby_add_rdepend "
dev-ruby/mustermann:1
dev-ruby/rack:2.2