1 |
commit: 07f747b7838b656bcee54975eb57c3c7e41d0af0 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 09:17:24 2015 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 09:22:11 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07f747b7 |
7 |
|
8 |
dev-ruby/test-unit: drop ruby19 and add ruby23 |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
dev-ruby/test-unit/test-unit-3.1.5-r1.ebuild | 46 ++++++++++++++++++++++++++++ |
13 |
1 file changed, 46 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/test-unit/test-unit-3.1.5-r1.ebuild b/dev-ruby/test-unit/test-unit-3.1.5-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..01c6f4d |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/test-unit/test-unit-3.1.5-r1.ebuild |
20 |
@@ -0,0 +1,46 @@ |
21 |
+# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+ |
25 |
+EAPI=5 |
26 |
+USE_RUBY="ruby20 ruby21 ruby22 ruby23" |
27 |
+ |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+RUBY_FAKEGEM_DOCDIR="doc" |
30 |
+RUBY_FAKEGEM_EXTRADOC="README.md doc/text/news.md" |
31 |
+ |
32 |
+inherit ruby-fakegem |
33 |
+ |
34 |
+# Assume for now that ruby23 is not eselected yet and only |
35 |
+# depend on yard for the other ruby implementations. Without this |
36 |
+# assumption bootstrapping ruby23 won't be possible due to the yard |
37 |
+# dependency tree. |
38 |
+USE_RUBY="${USE_RUBY/ruby23/}" ruby_add_bdepend "doc? ( dev-ruby/yard )" |
39 |
+ |
40 |
+DESCRIPTION="An xUnit family unit testing framework for Ruby" |
41 |
+HOMEPAGE="https://rubygems.org/gems/test-unit" |
42 |
+ |
43 |
+LICENSE="|| ( Ruby GPL-2 ) PSF-2" |
44 |
+SLOT="2" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
46 |
+IUSE="doc test" |
47 |
+ |
48 |
+ruby_add_rdepend "dev-ruby/power_assert" |
49 |
+ |
50 |
+all_ruby_compile() { |
51 |
+ all_fakegem_compile |
52 |
+ |
53 |
+ if use doc; then |
54 |
+ yard doc --title ${PN} || die |
55 |
+ fi |
56 |
+} |
57 |
+ |
58 |
+each_ruby_test() { |
59 |
+ ${RUBY} test/run-test.rb || die "testsuite failed" |
60 |
+} |
61 |
+ |
62 |
+all_ruby_install() { |
63 |
+ all_fakegem_install |
64 |
+ |
65 |
+ newbin "${FILESDIR}"/testrb-3 testrb-2 |
66 |
+} |