blob: f12d22e3e4a1238b02361169c0bda4b3957e4895 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/spruz/spruz-0.2.11.ebuild,v 1.4 2011/08/28 19:40:13 jer Exp $
EAPI=2
USE_RUBY="ruby18 ree18 jruby"
RUBY_FAKEGEM_TASK_DOC=""
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
inherit ruby-fakegem
DESCRIPTION="All the stuff that isn't good enough for a real library."
HOMEPAGE="http://github.com/flori/spruz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
IUSE=""
ruby_add_bdepend "test? ( virtual/ruby-test-unit ) "
all_ruby_prepare() {
# sdoc is not available for Gentoo yet, use rdoc instead
sed -i -e 's/sdoc/rdoc/' Rakefile || die
# Fix glob expansion so that documentation can be built
sed -i -e "s/} \* ' '}/.join(' ')}/" Rakefile || die
}
each_ruby_test() {
${RUBY} -Ilib -S testrb tests/* || die
}
|