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: Sun, 14 Oct 2018 06:01:45
Message-Id: 1539495926.259a4a242fa87dc9758e5115539c87614d614fab.graaff@gentoo
1 commit: 259a4a242fa87dc9758e5115539c87614d614fab
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 14 05:45:26 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 14 05:45:26 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=259a4a24
7
8 dev-ruby/rspec-expectations: add 3.8.2
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.11
12
13 dev-ruby/rspec-expectations/Manifest | 1 +
14 .../rspec-expectations-3.8.2.ebuild | 47 ++++++++++++++++++++++
15 2 files changed, 48 insertions(+)
16
17 diff --git a/dev-ruby/rspec-expectations/Manifest b/dev-ruby/rspec-expectations/Manifest
18 index 74e861fb1ff..8e55605538f 100644
19 --- a/dev-ruby/rspec-expectations/Manifest
20 +++ b/dev-ruby/rspec-expectations/Manifest
21 @@ -3,3 +3,4 @@ DIST rspec-expectations-3.6.0-git.tgz 193897 BLAKE2B f3fc2b06a317e77838e2d483416
22 DIST rspec-expectations-3.7.0-git.tgz 194071 BLAKE2B 67c8db15c43cc1141b19c6eb99390eaaf2535ec03f0fdc7b05576daa463d252f56ff251d40f5771726ee6451d57eef206c893f2593b01d413b5d96cdf21f0daf SHA512 bdd3222089299e9bfdd6f17a2b8af81d5e695290a3ce976630d586d51ff2df5baf76a3887b8adb31294bd6623ba85f8c2a4a31ac520046515aeeb81fa3a1bd5a
23 DIST rspec-expectations-3.8.0-git.tgz 198184 BLAKE2B 4bd191885a7944ca4909a1275618726cd0fff95352ef7e88f05d94e5f7088632d2c9ac7a9f47ea94c79e3665198482098daf7f6fc286c59563c8efbdee585241 SHA512 7157dcf09c18d2b56156ba4c1b0bc1a11cb98ab05e43ab9cbd65eea3f796cadf3319711d4e9837905cbba8d70cf297aea47f1f8631fd7a97be763dd33ce08002
24 DIST rspec-expectations-3.8.1-git.tgz 198732 BLAKE2B 243dccbf1771bda4a445abdadfbb79e67ad2e3a2a92013bcefdf746bcb6a3c99c1c999c15cf3a0ed324d587463ce57676785670ee5b2fa85ee216359b694bb64 SHA512 91d637210ccc4322073ce3e258b923de0e69f0a6eb0f07dd31bfe41da0a0ff18685c289e02c3ccabdea0f332ad55dbcb197fc16c7d6b144958e11cc90bfc8496
25 +DIST rspec-expectations-3.8.2-git.tgz 198952 BLAKE2B 6952f895251f26f8a1b7746b277fc92b296e78fb23b8f581e90f649ccc28e21e0a695f87b012b4925becfcda8f8876414f74a826c75bdfa5114092849bbfe525 SHA512 d374f7add45d2b6ce607c1a068e3e0970f902a0edf96ec891bd618dd17253878c1e0b625296ff12a6dc35103651bbfbcfd1a1b444f94e08eae2680e32853a198
26
27 diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.8.2.ebuild b/dev-ruby/rspec-expectations/rspec-expectations-3.8.2.ebuild
28 new file mode 100644
29 index 00000000000..f172e8ea668
30 --- /dev/null
31 +++ b/dev-ruby/rspec-expectations/rspec-expectations-3.8.2.ebuild
32 @@ -0,0 +1,47 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +USE_RUBY="ruby23 ruby24 ruby25"
38 +
39 +RUBY_FAKEGEM_RECIPE_TEST="rspec3"
40 +
41 +RUBY_FAKEGEM_TASK_DOC=""
42 +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md"
43 +
44 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
45 +
46 +inherit ruby-fakegem eapi7-ver
47 +
48 +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby"
49 +HOMEPAGE="https://github.com/rspec/rspec-expectations"
50 +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz"
51 +
52 +LICENSE="MIT"
53 +SLOT="3"
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
55 +IUSE=""
56 +
57 +SUBVERSION="$(ver_cut 1-2)"
58 +
59 +ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0 <dev-ruby/diff-lcs-2
60 + =dev-ruby/rspec-support-${SUBVERSION}*"
61 +
62 +ruby_add_bdepend "test? (
63 + >=dev-ruby/rspec-mocks-3.2.0:3
64 + >=dev-ruby/rspec-support-3.5.0:3
65 + )"
66 +
67 +all_ruby_prepare() {
68 + # Don't set up bundler: it doesn't understand our setup.
69 + sed -i -e '/[Bb]undler/d' Rakefile || die
70 +
71 + # Remove the Gemfile to avoid running through 'bundle exec'
72 + rm -f Gemfile || die
73 +
74 + # fix up the gemspecs
75 + sed -i \
76 + -e '/git ls/d' \
77 + -e '/add_development_dependency/d' \
78 + "${RUBY_FAKEGEM_GEMSPEC}" || die
79 +}