Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rspec-mocks/
Date: Wed, 24 Nov 2021 07:29:57
Message-Id: 1637738986.e9bd69ac41538a4e80b36b2cf1d50f96587bf150.graaff@gentoo
1 commit: e9bd69ac41538a4e80b36b2cf1d50f96587bf150
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 24 07:04:07 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 24 07:29:46 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9bd69ac
7
8 dev-ruby/rspec-mocks: EAPI 8
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild | 51 +++++++++++++++++++++++
14 1 file changed, 51 insertions(+)
15
16 diff --git a/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild
17 new file mode 100644
18 index 000000000000..0a09d4cde658
19 --- /dev/null
20 +++ b/dev-ruby/rspec-mocks/rspec-mocks-2.99.2-r1.ebuild
21 @@ -0,0 +1,51 @@
22 +# Copyright 1999-2021 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +USE_RUBY="ruby26 ruby27"
27 +
28 +RUBY_FAKEGEM_RECIPE_TEST="rspec"
29 +
30 +RUBY_FAKEGEM_RECIPE_DOC="none"
31 +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
32 +
33 +RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec"
34 +
35 +inherit ruby-fakegem
36 +
37 +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
38 +HOMEPAGE="http://rspec.rubyforge.org/"
39 +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
40 +
41 +LICENSE="MIT"
42 +SLOT="2"
43 +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"
44 +IUSE=""
45 +
46 +ruby_add_bdepend "
47 + test? (
48 + >=dev-ruby/rspec-core-2.10.0:2
49 + >=dev-ruby/rspec-expectations-2.99.0:2
50 + )"
51 +
52 +all_ruby_prepare() {
53 + # Don't set up bundler: it doesn't understand our setup.
54 + sed -i -e '/[Bb]undler/d' Rakefile || die
55 +
56 + # Remove the Gemfile to avoid running through 'bundle exec'
57 + rm Gemfile || die
58 +
59 + # Remove .rspec options to avoid dependency on newer rspec when
60 + # bootstrapping.
61 + rm .rspec || die
62 +
63 + # Avoid a weird, and failing, test testing already installed code.
64 + sed -e '/has an up-to-date caller_filter file/,/end/ s:^:#:' -i spec/rspec/mocks_spec.rb || die
65 +
66 + # Psych and Syck are not supported by default anymore on ruby22.
67 + rm spec/rspec/mocks/serialization_spec.rb || die
68 +
69 + sed -i -e '/does not affect the ability to access the top-level constant/,/end/ s:^:#:' spec/rspec/mocks/mutate_const_spec.rb || die
70 +
71 + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die
72 +}