Diff maxitest-4.4.1-r1 with a maxitest-5.2.0

/usr/portage/dev-ruby/maxitest/maxitest-5.2.0.ebuild 2023-10-09 14:52:30.444368374 +0300
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
5
USE_RUBY="ruby31 ruby32"
6 6

  
7
RUBY_FAKEGEM_EXTRADOC="Readme.md"
7
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
8 8

  
9 9
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
10 10

  
......
18 18

  
19 19
LICENSE="MIT"
20 20
SLOT="1"
21
KEYWORDS="amd64 arm ~arm64 ~hppa ppc ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
21
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
22 22
IUSE=""
23 23

  
24
ruby_add_rdepend "<dev-ruby/minitest-5.18:*"
24
ruby_add_rdepend ">=dev-ruby/minitest-5.14.0:* <dev-ruby/minitest-5.20.0:*"
25 25

  
26 26
ruby_add_bdepend "test? ( dev-ruby/bundler )"
27 27

  
28 28
all_ruby_prepare() {
29 29
	rm -f Gemfile.lock || die
30 30
	# Remove developer-only gems from the gemspec and avoid git issues
31
	sed -i -e '/wwtd/ s:^:#:' \
32
		-e 's/git ls-files/find */' \
33
		${RUBY_FAKEGEM_GEMSPEC} || die
34
	sed -i -e '/\(byebug\|bump\)/ s:^:#:' Gemfile || die
35

  
36
	sed -e '/shows short backtraces/askip "fails on ruby27"' \
37
		-e '/fails when not used/askip "fails with newer maxitest by design"' \
38
		-e '/shows version/askip "fails due to missing require for version"' \
31
	sed -e 's:_relative ": "./:' \
32
		-i ${RUBY_FAKEGEM_GEMSPEC} || die
33
	sed -i -e '/\(debug\|bump\)/ s:^:#:' Gemfile || die
34

  
35
	sed -e '/shows backtrace for/askip' \
36
		-e '/describe.*line/ s/describe/xdescribe/' \
37
		-e '/describe.*color/ s/describe/xdescribe/' \
39 38
		-i spec/maxitest_spec.rb || die
40 39
}
41 40

  
42 41
each_ruby_prepare() {
43 42
	# Use the correct target
44
	sed -i -e '/sh/ s:ruby:'${RUBY}':' \
45
		-e '/sh/ s:mtest:'${RUBY}' -S mtest:' \
46
		spec/maxitest_spec.rb || die
43
	sed -e '/\(run_cmd\|sh\)/ s:ruby:'${RUBY}':' \
44
		-e '/\(run_cmd\|sh\)/ s:mtest:'${RUBY}' -S bin/mtest:' \
45
		-i spec/maxitest_spec.rb || die
47 46
}
48 47

  
49 48
each_ruby_test() {
Thank you!