Diff rspec-mocks-2.99.2 with a rspec-mocks-3.9.1

/usr/portage/dev-ruby/rspec-mocks/rspec-mocks-3.9.1.ebuild 2021-04-12 21:09:00.000000000 +0300
1 1
# Copyright 1999-2021 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=5
4
EAPI=7
5 5
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
6 6

  
7
RUBY_FAKEGEM_RECIPE_TEST="rspec"
7
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
8 8

  
9
RUBY_FAKEGEM_RECIPE_DOC="none"
9
#RUBY_FAKEGEM_RECIPE_DOC="none"
10 10
RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
11 11

  
12
RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec"
13

  
12 14
inherit ruby-fakegem
13 15

  
14 16
DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
15
HOMEPAGE="http://rspec.rubyforge.org/"
17
HOMEPAGE="https://github.com/rspec/rspec-mocks"
16 18
SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
17 19

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

  
25
SUBVERSION="$(ver_cut 1-2)"
26

  
27
ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}*
28
	>=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*"
29

  
23 30
ruby_add_bdepend "
24 31
	test? (
25
		>=dev-ruby/rspec-core-2.10.0:2
26
		>=dev-ruby/rspec-expectations-2.99.0:2
32
		>=dev-ruby/rspec-core-3.3.0:3
33
		>=dev-ruby/rspec-expectations-2.99.0:3
27 34
	)"
28 35

  
29 36
all_ruby_prepare() {
......
37 44
	# bootstrapping.
38 45
	rm .rspec || die
39 46

  
40
	# Avoid a weird, and failing, test testing already installed code.
41
	sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die
42

  
43
	# Psych and Syck are not supported by default anymore on ruby22.
44
	rm spec/rspec/mocks/serialization_spec.rb || die
47
	sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die
45 48

  
46
	sed -i -e '/does not affect the ability to access the top-level constant/,/end/ s:^:#:' spec/rspec/mocks/mutate_const_spec.rb || die
49
	sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
47 50
}
Thank you!