blob: cf3eab38b290762f7f6e6f7eef7630df959d82c2 (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26"
RUBY_FAKEGEM_RECIPE="rake"
RUBY_FAKEGEM_TASK_DOC="build_rdoc"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.rdoc"
RUBY_FAKEGEM_EXTRAINSTALL="gli.rdoc"
inherit ruby-fakegem
DESCRIPTION="Git-Like Interface Command Line Parser"
HOMEPAGE="https://davetron5000.github.com/gli"
LICENSE="Apache-2.0"
KEYWORDS="x86 amd64"
SLOT="0"
IUSE=""
ruby_add_bdepend "test? ( dev-util/cucumber )"
all_ruby_prepare() {
sed -e '/sdoc/ s:^:#:' -i Rakefile || die
sed -e 's:tmp/fakehome:#{ENV["TMPDIR"]}/fakehome:' -i features/support/env.rb || die
}
each_ruby_test() {
# Unit tests depend on unpackaged clean_test.
${RUBY} -S cucumber --format progress features || die
}
|