Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/test-unit: test-unit-3.1.1.ebuild ChangeLog
Date: Fri, 29 May 2015 15:06:19
Message-Id: 20150529150615.6B192A05@oystercatcher.gentoo.org
1 mrueg 15/05/29 15:06:15
2
3 Modified: ChangeLog
4 Added: test-unit-3.1.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.119 dev-ruby/test-unit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.119&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.119&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?r1=1.118&r2=1.119
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v
20 retrieving revision 1.118
21 retrieving revision 1.119
22 diff -u -r1.118 -r1.119
23 --- ChangeLog 9 May 2015 06:00:21 -0000 1.118
24 +++ ChangeLog 29 May 2015 15:06:15 -0000 1.119
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/test-unit
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.118 2015/05/09 06:00:21 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.119 2015/05/29 15:06:15 mrueg Exp $
30 +
31 +*test-unit-3.1.1 (29 May 2015)
32 +
33 + 29 May 2015; Manuel RĂ¼ger <mrueg@g.o> +test-unit-3.1.1.ebuild:
34 + Version bump.
35
36 09 May 2015; Hans de Graaff <graaff@g.o> test-unit-3.0.9-r1.ebuild:
37 Use rm -f to avoid issues like bug 540182.
38
39
40
41 1.1 dev-ruby/test-unit/test-unit-3.1.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-3.1.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-3.1.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: test-unit-3.1.1.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/test-unit-3.1.1.ebuild,v 1.1 2015/05/29 15:06:15 mrueg Exp $
51
52 EAPI=5
53 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_DOCDIR="doc"
57 RUBY_FAKEGEM_EXTRADOC="TODO README.md doc/text/news.md"
58
59 inherit ruby-fakegem
60
61 # Assume for now that ruby22 is not eselected yet and only depend on
62 # yard for the other ruby implementations. Without this assumption
63 # bootstrapping ruby22 won't be possible due to the yard dependency
64 # tree.
65 USE_RUBY="${USE_RUBY/ruby22/}" ruby_add_bdepend "doc? ( dev-ruby/yard )"
66
67 DESCRIPTION="An xUnit family unit testing framework for Ruby"
68 HOMEPAGE="https://rubygems.org/gems/test-unit"
69
70 LICENSE="|| ( Ruby GPL-2 ) PSF-2"
71 SLOT="2"
72 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
73 IUSE="doc test"
74
75 # power_assert does not work with ruby19 but is not needed for backward
76 # compatibility:
77 # https://github.com/k-tsj/power_assert/issues/8#issuecomment-71363455
78 USE_RUBY="${USE_RUBY/ruby19/}" ruby_add_rdepend "dev-ruby/power_assert"
79
80 each_ruby_prepare() {
81 case ${RUBY} in
82 *ruby19)
83 # Remove metadata to avoid registering the unsupported
84 # power_assert dependency.
85 rm -f ../metadata || die
86 ;;
87 esac
88 }
89
90 all_ruby_compile() {
91 all_fakegem_compile
92
93 if use doc; then
94 yard doc --title ${PN} || die
95 fi
96 }
97
98 each_ruby_test() {
99 ${RUBY} test/run-test.rb || die "testsuite failed"
100 }
101
102 all_ruby_install() {
103 all_fakegem_install
104
105 newbin "${FILESDIR}"/testrb-3 testrb-2
106 }