Diff tzinfo-1.2.11 with a tzinfo-2.0.6

/usr/portage/dev-ruby/tzinfo/tzinfo-2.0.6.ebuild 2024-07-02 13:51:45.669851500 +0300
9 9
RUBY_FAKEGEM_DOCDIR="doc"
10 10
RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md"
11 11

  
12
RUBY_FAKEGEM_GEMSPEC="tzinfo.gemspec"
13

  
12 14
inherit ruby-fakegem
13 15

  
14 16
DESCRIPTION="Daylight-savings aware timezone library"
15 17
HOMEPAGE="https://tzinfo.github.io/"
18
SRC_URI="https://github.com/tzinfo/tzinfo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 19

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

  
22 25
RDEPEND="sys-libs/timezone-data"
23 26
DEPEND="test? ( sys-libs/timezone-data )"
24 27

  
25
ruby_add_rdepend ">=dev-ruby/thread_safe-0.1:0"
26
ruby_add_bdepend "test? ( dev-ruby/minitest:5 )"
28
PATCHES=( "${FILESDIR}/${P}-ruby33.patch" )
29

  
30
ruby_add_rdepend "dev-ruby/concurrent-ruby:1"
31
ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitest:5 )"
27 32

  
28 33
all_ruby_prepare() {
29 34
	# Set the secure permissions that tests expect.
30 35
	chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
31 36

  
32
	# Avoid taint tests that throw SecurityErrors on newer ruby versions.
33
	sed -i -e '/_info_tainted/askip"SecurityError"' test/tc_ruby_data_source.rb || die
37
	# Skip safe tests since we cannot guarantee the correct permissions
38
	# on directories for it to pass.
39
	sed -e '/safe_test/askip "does not pass in gentoo test environment"' -i test/test_utils.rb || die
40

  
41
	# Loosen test dependencies
42
	sed -e '/rake/ s/12.2.1/12.2/' \
43
		-e '/simplecov/d' \
44
		-i Gemfile || die
45
	sed -e '/TEST_COVERAGE/d' -i Rakefile || die
46
}
47

  
48
each_ruby_test() {
49
	${RUBY} -S bundle exec rake test || die
34 50
}
Thank you!