summaryrefslogtreecommitdiff
blob: ecf6ae406b89c0e27261f08a3a56265e14bdeb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/testunit-mock/testunit-mock-0.03.ebuild,v 1.2 2006/03/30 04:00:07 agriffis Exp $

inherit ruby

MY_P="Test-Unit-Mock-${PV}"
S="${WORKDIR}/${MY_P}"

DESCRIPTION="Mock objects for Ruby's Test::Unit"
HOMEPAGE="http://www.deveiate.org/code/Test-Unit-Mock.html"
SRC_URI="http://www.deveiate.org/code/${MY_P}.tar.bz2"

KEYWORDS="~ia64 ~x86"

USE_RUBY="ruby18 ruby19"
RDEPEND="dev-ruby/diff"

IUSE=""

# prevent ruby.eclass from using a broken install.rb
src_compile() {
	return
}

src_install() {
	local sitelibdir
	sitelibdir=`${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]'`
	insinto "$sitelibdir/test/unit"
	doins mock.rb
	erubydoc
}

src_test() {
	ruby test.rb || "test.rb failed"
}