1 |
commit: 6abb37d3c41959d8aeac92d0827e8689cab361a7 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 27 07:14:16 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 27 07:14:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6abb37d3 |
7 |
|
8 |
dev-ruby/maxitest: add 2.5.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
dev-ruby/maxitest/Manifest | 1 + |
13 |
dev-ruby/maxitest/maxitest-2.5.0.ebuild | 48 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest |
17 |
index 6a03aa52364..e3056af9554 100644 |
18 |
--- a/dev-ruby/maxitest/Manifest |
19 |
+++ b/dev-ruby/maxitest/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST maxitest-2.4.0.tar.gz 15370 BLAKE2B 1645e818c06c42590e919f73c581407aa38dc4f1ff58fe06c7a5a734c3570a4342c7952cbf5130ca9db66f081a3e4c5d32ca2166d6ed5937474a3bbc093ab13c SHA512 41fc6e8eaaebad76278e19574c48e5192363ef466327e83cfd5a3490b98d157bb736556cde57c01180a353ac383e583fed6433443e24a5a5fb6159ed9821a323 |
22 |
DIST maxitest-2.4.1.tar.gz 59653 BLAKE2B 8bdaea5ad48d30cef9c07947634b05f6e5cc8f8e74f985321b1878e26cc36680cf6f6c2d069e947342a5f0e2f2346347952e6121198b0b74af31b0d58bef4070 SHA512 b1c1faeda4c670083d3564a0763ccb4005954e018aed4a574fb4ddcba16c943b1da8ae471d8df5aca9c1010a19605d55609186b4ab56c13b033ad67ed6c9eb27 |
23 |
+DIST maxitest-2.5.0.tar.gz 59771 BLAKE2B 53fe709a89d33dabd3230ab40a3d85582d2bd918a7e33ffe65c9787707858227c9de6698a0ddd0774d2a04591af46aca19fb043bb740af3197dcf65645d4e722 SHA512 9afca516047ba2261770f497f6be2363dfe2476816295e35eccb4ee36830f3aad373a20dcb10ade7fb36285cc99d11ccd4b4928583183deadb087ea1cf32f181 |
24 |
|
25 |
diff --git a/dev-ruby/maxitest/maxitest-2.5.0.ebuild b/dev-ruby/maxitest/maxitest-2.5.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..8430d280fdf |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/maxitest/maxitest-2.5.0.ebuild |
30 |
@@ -0,0 +1,48 @@ |
31 |
+# Copyright 1999-2018 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+USE_RUBY="ruby22 ruby23 ruby24" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
38 |
+RUBY_FAKEGEM_EXTRADOC="Readme.md" |
39 |
+ |
40 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
43 |
+ |
44 |
+inherit versionator ruby-fakegem |
45 |
+ |
46 |
+DESCRIPTION="Minitest + all the features you always wanted" |
47 |
+HOMEPAGE="https://github.com/grosser/maxitest" |
48 |
+SRC_URI="https://github.com/grosser/maxitest/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="1" |
52 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
53 |
+IUSE="" |
54 |
+ |
55 |
+ruby_add_rdepend "<dev-ruby/minitest-5.12:5" |
56 |
+ |
57 |
+ruby_add_bdepend "test? ( dev-ruby/bundler )" |
58 |
+ |
59 |
+all_ruby_prepare() { |
60 |
+ rm -f Gemfile.lock || die |
61 |
+ # Remove developer-only gems from the gemspec and avoid git issues |
62 |
+ sed -i -e '/\(bump\|wwtd\)/ s:^:#:' \ |
63 |
+ -e 's/git ls-files/find/' \ |
64 |
+ ${RUBY_FAKEGEM_GEMSPEC} || die |
65 |
+ sed -i -e '/byebug/ s:^:#:' Gemfile || die |
66 |
+ |
67 |
+} |
68 |
+ |
69 |
+each_ruby_prepare() { |
70 |
+ # Use the correct target |
71 |
+ sed -i -e '/sh/ s:ruby:'${RUBY}':' \ |
72 |
+ -e '/sh/ s:mtest:'${RUBY}' -S mtest:' \ |
73 |
+ spec/maxitest_spec.rb || die |
74 |
+} |
75 |
+ |
76 |
+each_ruby_test() { |
77 |
+ PATH="${S}/bin:${PATH}" RSPEC_VERSION=3 ruby-ng_rspec spec |
78 |
+} |