Diff mocha-0.14.0-r1 with a mocha-1.16.0

/usr/portage/dev-ruby/mocha/mocha-1.16.0.ebuild 2023-10-09 14:52:30.444368374 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

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

  
7
RUBY_FAKEGEM_TASK_TEST="MOCHA_NO_DOCS=true test:units"
7
RUBY_FAKEGEM_TASK_TEST="test:units test:acceptance"
8 8

  
9 9
RUBY_FAKEGEM_EXTRADOC="README.md RELEASE.md"
10 10

  
11 11
RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
12 12

  
13
RUBY_FAKEGEM_GEMSPEC="mocha.gemspec"
14

  
13 15
inherit ruby-fakegem
14 16

  
15 17
DESCRIPTION="Mocking and stubbing using a syntax like that of JMock and SchMock"
16
HOMEPAGE="http://gofreerange.com/mocha/docs/"
18
HOMEPAGE="https://mocha.jamesmead.org/"
19
SRC_URI="https://github.com/freerange/mocha/archive/v${PV}.tar.gz -> ${P}.tar.gz"
17 20

  
18 21
LICENSE="MIT"
19
SLOT="0.14"
22
SLOT="1.0"
20 23
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86"
21 24
IUSE=""
22 25

  
23 26
ruby_add_bdepend "
24 27
	test? ( >=dev-ruby/test-unit-2.5.1-r1 dev-ruby/introspection )"
25 28

  
26
ruby_add_rdepend "dev-ruby/metaclass" #metaclass ~> 0.0.1
27

  
28 29
PATCHES=(
29
	"${FILESDIR}"/${PN}-1.16.0-ruby32.patch
30
	"${FILESDIR}"/mocha-1.16.0-ruby32.patch
30 31
)
31 32

  
32 33
all_ruby_prepare() {
33 34
	sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
34
	sed -i -e '20irequire "mocha/setup"' test/test_helper.rb || die
35

  
36
	sed -i -e 's/git ls-files -z/find . -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die
37
}
38

  
39
each_ruby_test() {
40
	export MOCHA_NO_DOCS=true
41
	each_fakegem_test
35 42
}
Thank you!