/[gentoo-x86]/dev-ruby/test-unit/test-unit-2.4.8.ebuild
Gentoo

Contents of /dev-ruby/test-unit/test-unit-2.4.8.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Wed Mar 7 06:55:40 2012 UTC (2 years, 1 month ago) by graaff
Branch: MAIN
Version bump.

(Portage version: 2.1.10.44/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/test-unit/test-unit-2.4.5.ebuild,v 1.1 2012/01/28 11:13:14 graaff Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18 ruby19 ree18 jruby"
7
8 RUBY_FAKEGEM_TASK_DOC=""
9 RUBY_FAKEGEM_DOCDIR="doc"
10 RUBY_FAKEGEM_EXTRADOC="TODO README.textile"
11
12 # Disable default binwraps
13 RUBY_FAKEGEM_BINWRAP=""
14
15 inherit ruby-fakegem
16
17 ruby_add_bdepend "doc? ( dev-ruby/yard )"
18 # redcloth is also needed to build documentation, but not available for
19 # jruby. Since we build documentation with the main ruby implementation
20 # only we skip the dependency for jruby in this roundabout way, assuming
21 # that jruby won't be the main ruby.
22 USE_RUBY=ruby18 ruby_add_bdepend "ruby_targets_ruby18 doc" "( dev-ruby/redcloth )"
23 USE_RUBY=ruby19 ruby_add_bdepend "ruby_targets_ruby19 doc" "( dev-ruby/redcloth )"
24 USE_RUBY=ree18 ruby_add_bdepend "ruby_targets_ree18 doc" "( dev-ruby/redcloth )"
25
26 DESCRIPTION="An improved version of the Test::Unit framework from Ruby 1.8"
27 HOMEPAGE="http://test-unit.rubyforge.org/"
28
29 LICENSE="Ruby"
30 SLOT="2"
31 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
32 IUSE="doc test"
33
34 all_ruby_compile() {
35 all_fakegem_compile
36
37 if use doc; then
38 yard doc --title ${PN} || die
39 fi
40 }
41
42 each_ruby_test() {
43 # the rake audit using dev-ruby/zentest currently fails, and we
44 # just need to call the testsuite directly.
45 # rake audit || die "rake audit failed"
46 local rubyflags
47
48 [[ $(basename ${RUBY}) == jruby ]] && rubyflags="-X+O"
49
50 ${RUBY} ${rubyflags} test/run-test.rb || die "testsuite failed"
51 }
52
53 all_ruby_install() {
54 all_fakegem_install
55
56 # Create a testrb2 wrapper similarly to the rdoc2 wrapper for
57 # rdoc-2* series.
58 ruby_fakegem_binwrapper testrb /usr/bin/testrb-2
59 }

  ViewVC Help
Powered by ViewVC 1.1.20