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-expectations/
Date: Sat, 01 Oct 2022 07:06:42
Message-Id: 1664607993.8548acc840ee6d88a29ab534e18bf8a26e5f853b.graaff@gentoo
1 commit: 8548acc840ee6d88a29ab534e18bf8a26e5f853b
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 1 07:05:12 2022 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 1 07:06:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8548acc8
7
8 dev-ruby/rspec-expectations: add 3.11.1
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/rspec-expectations/Manifest | 1 +
13 .../rspec-expectations-3.11.1.ebuild | 47 ++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-ruby/rspec-expectations/Manifest b/dev-ruby/rspec-expectations/Manifest
17 index 376188aea5b8..15b8af107292 100644
18 --- a/dev-ruby/rspec-expectations/Manifest
19 +++ b/dev-ruby/rspec-expectations/Manifest
20 @@ -2,3 +2,4 @@ DIST rspec-expectations-2.99.2-git.tgz 106884 BLAKE2B 5b31c8681306d5c688f62fc3fc
21 DIST rspec-expectations-3.10.1-git.tgz 212281 BLAKE2B a1872a7f71c198db1662eca48bcb34c054f05c16193395962cb47a7fa230c2f0f83bedee302a0ab6a81380a361640177ac3370d8829faa6bd362c07e3a551e5e SHA512 35999542bf70ff04a472e50434abb8815cac8bf10b680da458f5e0e6ee290a1a6356a22cc12f0a8a6310cf282bb6cd99f922fcc63a0cf1e252b167e451bcf7d4
22 DIST rspec-expectations-3.10.2-git.tgz 213253 BLAKE2B 51c306d34dfd82d551b8390bed9790748f8f62b9f4b5243399486640d04465dc0c33756f7a575e98c8e61310cf6c25b93b4c1102fc1798814d916defb0ad310e SHA512 819f1b9e881a56d5563c9421e3e897726931c3cb27be5554e35f41077656e426cbac1ddced6a6e61ba21faa7c147c239433ddb9d21ae2e88592d91b286c170a7
23 DIST rspec-expectations-3.11.0-git.tgz 214878 BLAKE2B f830a0a31fb0e7cd6639e711e4daa9faa98e514b6a1dd864c383259d199dc617c6c7ff45dc65f37cf53d3c4581c6ecb9148e42b77f3c37541d8985714d62af23 SHA512 209eabafe92db3de1a78524d98facda16b3f5fef11f8f0c8c74bc6fc68529c8d9a835a8196e84b8b8bdf828d548d4b00bb1acdd607cab14dad7874f55a42b0c6
24 +DIST rspec-expectations-3.11.1-git.tgz 217396 BLAKE2B b9660b22f0b23a5436d98ffe2b21b58c947765ab5cf7d245bf265faead46a5326fc403ad55ee2fcd72d96c8c29fc996715ecc74c9521ec4ca34daa9d5bc0f819 SHA512 1941056eb2f2205f583f335993e25030b433cb0463992d74d5c568c7bbab4313fc6e7e14ada5147064b14d6da49326e3c3cb342408cfe9b38d350c9470e5cdf9
25
26 diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.11.1.ebuild b/dev-ruby/rspec-expectations/rspec-expectations-3.11.1.ebuild
27 new file mode 100644
28 index 000000000000..7e2877d8201b
29 --- /dev/null
30 +++ b/dev-ruby/rspec-expectations/rspec-expectations-3.11.1.ebuild
31 @@ -0,0 +1,47 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +USE_RUBY="ruby27 ruby30 ruby31"
37 +
38 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="none"
41 +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
42 +
43 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
44 +
45 +inherit ruby-fakegem
46 +
47 +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
48 +HOMEPAGE="https://github.com/rspec/rspec-expectations"
49 +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
50 +
51 +LICENSE="MIT"
52 +SLOT="3"
53 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
54 +IUSE=""
55 +
56 +SUBVERSION="$(ver_cut 1-2)"
57 +
58 +ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*
59 + =dev-ruby/rspec-support-${SUBVERSION}*"
60 +
61 +ruby_add_bdepend "test? (
62 + >=dev-ruby/rspec-mocks-3.2.0:3
63 + >=dev-ruby/rspec-support-3.5.0:3
64 + )"
65 +
66 +all_ruby_prepare() {
67 + # Don't set up bundler: it doesn't understand our setup.
68 + sed -i -e '/[Bb]undler/d' Rakefile || die
69 +
70 + # Remove the Gemfile to avoid running through 'bundle exec'
71 + rm -f Gemfile || die
72 +
73 + # fix up the gemspecs
74 + sed -i \
75 + -e '/git ls/d' \
76 + -e '/add_development_dependency/d' \
77 + "${RUBY_FAKEGEM_GEMSPEC}" || die
78 +}