/[gentoo-x86]/dev-ruby/mocha/mocha-0.10.0.ebuild
Gentoo

Contents of /dev-ruby/mocha/mocha-0.10.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jan 18 16:25:17 2012 UTC (2 years, 9 months ago) by jer
Branch: MAIN
Changes since 1.1: +2 -2 lines
Marked ~hppa (bug #398985).

(Portage version: 2.2.0_alpha84/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/mocha/mocha-0.10.0.ebuild,v 1.1 2012/01/15 13:30:02 graaff Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18 ree18 ruby19 jruby"
7
8 RUBY_FAKEGEM_TASK_TEST="test:units"
9
10 RUBY_FAKEGEM_TASK_DOC="rdoc"
11 RUBY_FAKEGEM_DOCDIR="doc"
12 RUBY_FAKEGEM_EXTRADOC="README.rdoc RELEASE.rdoc"
13
14 RUBY_FAKEGEM_EXTRAINSTALL="init.rb"
15
16 inherit ruby-fakegem
17
18 DESCRIPTION="A Ruby library for mocking and stubbing using a syntax like that of JMock, and SchMock"
19 HOMEPAGE="http://mocha.rubyforge.org/"
20
21 LICENSE="MIT"
22 SLOT="0"
23 KEYWORDS="~amd64 ~hppa"
24 IUSE=""
25
26 ruby_add_bdepend "
27 doc? ( dev-ruby/coderay )"
28
29 ruby_add_rdepend "dev-ruby/metaclass" #metaclass ~> 0.0.1
30
31 all_ruby_prepare() {
32 sed -i -e '/[Bb]undler/ s:^:#:' -e '1iload "lib/mocha/version.rb"' Rakefile || die
33 }
34
35 all_ruby_compile() {
36 all_fakegem_compile
37
38 if use doc; then
39 rake examples || die
40 fi
41 }
42
43 all_ruby_install() {
44 all_fakegem_install
45
46 docinto examples
47 dodoc examples/*.rb || die
48 }

  ViewVC Help
Powered by ViewVC 1.1.20