1 |
commit: 83332ff82523f9e8766cabe7bc4c02eb29f7cb14 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 23 10:46:53 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 23 10:48:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83332ff8 |
7 |
|
8 |
dev-ruby/test_declarative: 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 |
.../test_declarative-0.0.6-r1.ebuild | 40 ++++++++++++++++++++++ |
14 |
1 file changed, 40 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild b/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 000000000000..55c83b232267 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/test_declarative/test_declarative-0.0.6-r1.ebuild |
21 |
@@ -0,0 +1,40 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=8 |
26 |
+ |
27 |
+USE_RUBY="ruby26 ruby27 ruby30" |
28 |
+ |
29 |
+RUBY_FAKEGEM_TASK_TEST="" |
30 |
+RUBY_FAKEGEM_TASK_DOC="" |
31 |
+ |
32 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
33 |
+RUBY_FAKEGEM_GEMSPEC="test_declarative.gemspec" |
34 |
+ |
35 |
+inherit ruby-fakegem |
36 |
+ |
37 |
+DESCRIPTION="Simply adds a declarative test method syntax to test/unit" |
38 |
+HOMEPAGE="https://github.com/svenfuchs/test_declarative" |
39 |
+SRC_URI="https://github.com/svenfuchs/test_declarative/tarball/v${PV} -> ${P}.tgz" |
40 |
+RUBY_S="svenfuchs-test_declarative-*" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" |
45 |
+IUSE="" |
46 |
+ |
47 |
+ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/minitest-5.10:5 )" |
48 |
+ |
49 |
+all_ruby_prepare() { |
50 |
+ sed -i -e '/rake/ s/~> 12.0.0/>= 10/ ; /minitest/ s/5.10.1/5.10/' Gemfile || die |
51 |
+ |
52 |
+ sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die |
53 |
+} |
54 |
+ |
55 |
+each_ruby_test() { |
56 |
+ # There are other gemfiles but their setup seems broken atm. |
57 |
+ for gemfile in Gemfile ; do |
58 |
+ einfo "Running tests with ${gemfile}" |
59 |
+ BUNDLE_GEMFILE=${gemfile} ${RUBY} -S bundle exec rake test || die |
60 |
+ done |
61 |
+} |