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.4.8.ebuild
Date: Wed, 07 Mar 2012 06:55:51
Message-Id: 20120307065540.7A1362004B@flycatcher.gentoo.org
1 graaff 12/03/07 06:55:40
2
3 Modified: ChangeLog
4 Added: test-unit-2.4.8.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.44/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.52 dev-ruby/test-unit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.52&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?rev=1.52&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/ChangeLog?r1=1.51&r2=1.52
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v
20 retrieving revision 1.51
21 retrieving revision 1.52
22 diff -u -r1.51 -r1.52
23 --- ChangeLog 28 Jan 2012 11:13:14 -0000 1.51
24 +++ ChangeLog 7 Mar 2012 06:55:40 -0000 1.52
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/test-unit
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.51 2012/01/28 11:13:14 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/ChangeLog,v 1.52 2012/03/07 06:55:40 graaff Exp $
30 +
31 +*test-unit-2.4.8 (07 Mar 2012)
32 +
33 + 07 Mar 2012; Hans de Graaff <graaff@g.o> +test-unit-2.4.8.ebuild:
34 + Version bump.
35
36 *test-unit-2.4.5 (28 Jan 2012)
37
38
39
40
41 1.1 dev-ruby/test-unit/test-unit-2.4.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-2.4.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/test-unit/test-unit-2.4.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: test-unit-2.4.8.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.4.8.ebuild,v 1.1 2012/03/07 06:55:40 graaff Exp $
51
52 EAPI=2
53 USE_RUBY="ruby18 ruby19 ree18 jruby"
54
55 RUBY_FAKEGEM_TASK_DOC=""
56 RUBY_FAKEGEM_DOCDIR="doc"
57 RUBY_FAKEGEM_EXTRADOC="TODO README.textile"
58
59 # Disable default binwraps
60 RUBY_FAKEGEM_BINWRAP=""
61
62 inherit ruby-fakegem
63
64 ruby_add_bdepend "doc? ( dev-ruby/yard )"
65 # redcloth is also needed to build documentation, but not available for
66 # jruby. Since we build documentation with the main ruby implementation
67 # only we skip the dependency for jruby in this roundabout way, assuming
68 # that jruby won't be the main ruby.
69 USE_RUBY=ruby18 ruby_add_bdepend "ruby_targets_ruby18 doc" "( dev-ruby/redcloth )"
70 USE_RUBY=ruby19 ruby_add_bdepend "ruby_targets_ruby19 doc" "( dev-ruby/redcloth )"
71 USE_RUBY=ree18 ruby_add_bdepend "ruby_targets_ree18 doc" "( dev-ruby/redcloth )"
72
73 DESCRIPTION="An improved version of the Test::Unit framework from Ruby 1.8"
74 HOMEPAGE="http://test-unit.rubyforge.org/"
75
76 LICENSE="Ruby"
77 SLOT="2"
78 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
79 IUSE="doc test"
80
81 all_ruby_compile() {
82 all_fakegem_compile
83
84 if use doc; then
85 yard doc --title ${PN} || die
86 fi
87 }
88
89 each_ruby_test() {
90 # the rake audit using dev-ruby/zentest currently fails, and we
91 # just need to call the testsuite directly.
92 # rake audit || die "rake audit failed"
93 local rubyflags
94
95 [[ $(basename ${RUBY}) == jruby ]] && rubyflags="-X+O"
96
97 ${RUBY} ${rubyflags} test/run-test.rb || die "testsuite failed"
98 }
99
100 all_ruby_install() {
101 all_fakegem_install
102
103 # Create a testrb2 wrapper similarly to the rdoc2 wrapper for
104 # rdoc-2* series.
105 ruby_fakegem_binwrapper testrb /usr/bin/testrb-2
106 }