Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/test-unit: ChangeLog test-unit-2.5.5-r1.ebuild
Date: Sat, 31 Aug 2013 06:23:39
Message-Id: 20130831062331.AED372004B@flycatcher.gentoo.org
1 graaff 13/08/31 06:23:31
2
3 Modified: ChangeLog
4 Added: test-unit-2.5.5-r1.ebuild
5 Log:
6 Add a ruby20 bootstrap revision without yard dependency for ruby20.
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.86 dev-ruby/test-unit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.86&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.86&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?r1=1.85&r2=1.86
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v
20 retrieving revision 1.85
21 retrieving revision 1.86
22 diff -u -r1.85 -r1.86
23 --- ChangeLog 3 Aug 2013 07:40:12 -0000 1.85
24 +++ ChangeLog 31 Aug 2013 06:23:31 -0000 1.86
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/test-unit
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.85 2013/08/03 07:40:12 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.86 2013/08/31 06:23:31 graaff Exp $
30 +
31 +*test-unit-2.5.5-r1 (31 Aug 2013)
32 +
33 + 31 Aug 2013; Hans de Graaff <graaff@g.o> +test-unit-2.5.5-r1.ebuild:
34 + Add a ruby20 bootstrap revision without yard dependency for ruby20.
35
36 03 Aug 2013; Agostino Sarubbo <ago@g.o> test-unit-1.2.3.ebuild:
37 Stable for sparc, wrt bug #472910
38
39
40
41 1.1 dev-ruby/test-unit/test-unit-2.5.5-r1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-2.5.5-r1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-2.5.5-r1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: test-unit-2.5.5-r1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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-2.5.5-r1.ebuild,v 1.1 2013/08/31 06:23:31 graaff Exp $
51
52 EAPI=5
53 USE_RUBY="ruby18 ruby19 ruby20 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_DOCDIR="doc"
57 RUBY_FAKEGEM_EXTRADOC="TODO README.textile"
58
59 inherit ruby-fakegem
60
61 # Assume for now that ruby20 is not eselected yet and only depend on
62 # yard for the other ruby implementations. Without this assumption
63 # bootstrapping ruby20 won't be possible due to the yard dependency
64 # tree.
65 USE_RUBY="${USE_RUBY/ruby20/}" ruby_add_bdepend "doc? ( dev-ruby/yard )"
66 # redcloth is also needed to build documentation, but not available for
67 # jruby. Since we build documentation with the main ruby implementation
68 # only we skip the dependency for jruby in this roundabout way, assuming
69 # that jruby won't be the main ruby.
70 USE_RUBY="${USE_RUBY/ruby20 jruby/}" ruby_add_bdepend "doc? ( dev-ruby/redcloth )"
71
72 DESCRIPTION="An improved version of the Test::Unit framework from Ruby 1.8"
73 HOMEPAGE="http://test-unit.rubyforge.org/"
74
75 LICENSE="Ruby"
76 SLOT="2"
77 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
78 IUSE="doc test"
79
80 each_ruby_prepare() {
81 case ${RUBY} in
82 *jruby)
83 # Avoid tests with slightly different output for jruby
84 sed -i -e '/test_assert_nothing_thrown/,/^ end/ s:^:#:' \
85 -e '/test_assert_throw/,/^ end/ s:^:#:' test/test-assertions.rb || die
86 # And fix missing testunit exposed by it
87 sed -i -e "9irequire 'testunit-test-util'" test/test-assertions.rb || die
88 ;;
89 esac
90 }
91
92 all_ruby_compile() {
93 all_fakegem_compile
94
95 if use doc; then
96 yard doc --title ${PN} || die
97 fi
98 }
99
100 each_ruby_test() {
101 # the rake audit using dev-ruby/zentest currently fails, and we
102 # just need to call the testsuite directly.
103 # rake audit || die "rake audit failed"
104 local rubyflags
105
106 [[ ${RUBY} == */jruby ]] && rubyflags="-X+O"
107
108 ${RUBY} ${rubyflags} test/run-test.rb || die "testsuite failed"
109 }
110
111 all_ruby_install() {
112 all_fakegem_install
113
114 newbin "${FILESDIR}"/testrb testrb-2
115 }