Diff rack-2.2.8 with a rack-3.0.7

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

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

  
7 7
RUBY_FAKEGEM_DOCDIR="doc"
8
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc SPEC.rdoc"
8
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md SECURITY.md SPEC.rdoc UPGRADE-GUIDE.md"
9 9

  
10 10
RUBY_FAKEGEM_GEMSPEC="rack.gemspec"
11 11

  
......
17 17

  
18 18
LICENSE="MIT"
19 19
SLOT="$(ver_cut 1-2)"
20
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
20
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
21 21
IUSE=""
22 22

  
23 23
ruby_add_rdepend "virtual/ruby-ssl"
......
25 25
ruby_add_bdepend "test? (
26 26
	dev-ruby/minitest:5
27 27
	dev-ruby/minitest-global_expectations
28
	|| ( dev-ruby/psych:5 dev-ruby/psych:0 )
29 28
	dev-ruby/webrick
30 29
)"
31 30

  
......
38 37
	# an empty file to avoid a needless dependency on git.
39 38
	touch ChangeLog || die
40 39

  
41
	# Avoid development dependency
42
	sed -i -e '/minitest-sprint/ s:^:#:' -e "s:require_relative ':require './:" rack.gemspec || die
43

  
44
	# Rename rackup command and force gem version to allow rack 2.x applications to work
45
	mv bin/rackup bin/rackup-2 || die
46
	sed -i -e '4igem "rack", "~> 2.2.0"' bin/rackup-2
40
	sed -i -e "s:require_relative ':require './:" rack.gemspec || die
47 41
}
48 42

  
49 43
each_ruby_test() {
50 44
	${RUBY} -Ilib:test:. -e "require 'test/gemloader.rb'; Dir['test/spec_*.rb'].each{|f| require f}" || die
51 45
}
52

  
53
all_ruby_install() {
54
	all_fakegem_install
55

  
56
	einfo "The rackup command is installed as 'rackup-2' to allow parallel installation with rack 3"
57
}
Thank you!