1 |
commit: 0d51d33ecc238f96de5fac7b23b7c7b1eb85f027 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 1 07:44:01 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 1 07:44:01 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d51d33e |
7 |
|
8 |
dev-ruby/maxitest: add 2.3.0 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
dev-ruby/maxitest/Manifest | 1 + |
13 |
dev-ruby/maxitest/maxitest-2.3.0.ebuild | 49 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/maxitest/Manifest b/dev-ruby/maxitest/Manifest |
17 |
index fb5f0e2..1a9a489 100644 |
18 |
--- a/dev-ruby/maxitest/Manifest |
19 |
+++ b/dev-ruby/maxitest/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST maxitest-2.2.0.tar.gz 15147 SHA256 ef9b059f67528b53bc88356aaf77936f3e29373e002fdba44ae0ee20de765b0a SHA512 6b2ba017fed4d18469e1a6db8aacb50145a00fa75aa242926353b6e3765dc0c2db7b14cd5ce9923353f4f2dc6cbfaa24cee384761e131b4ee8cb31c7a004a37a WHIRLPOOL d2fc3c7b2190270c07e773b4ae5d68d4aa71169959cbcba0d586304acd9f8e1678f057401bff6ed41efa37bca4ad97563abc63c5cf2db5031beb486a14467b1f |
22 |
+DIST maxitest-2.3.0.tar.gz 15395 SHA256 800806e66a223e3166002296e3a63294619d573d076d405eff66cf619b7730ae SHA512 e07c2aac3beaedfa6a7dca9293d519a63fdb323547ef650436c71f082403a9538b26429e747374c99b8364a68d69ac8a35ff79056196defe283130fb78110995 WHIRLPOOL 0997d96018be680752d09b0149b610048914a2213fba510767b7fa7c96279399be267b5bc23fcda84239a1ee3c62be1d7b326b55c7712e656b887283f97e9602 |
23 |
|
24 |
diff --git a/dev-ruby/maxitest/maxitest-2.3.0.ebuild b/dev-ruby/maxitest/maxitest-2.3.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000..b400520 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/maxitest/maxitest-2.3.0.ebuild |
29 |
@@ -0,0 +1,49 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
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 ~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.11: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 |
+} |