blob: b1c827eb0f4e1651aedd25f26b19bd13538f797f (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
RUBY_FAKEGEM_EXTRADOC="changelog.txt Readme.md"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
inherit ruby-fakegem
DESCRIPTION="This library reads and writes .netrc files"
HOMEPAGE="https://github.com/geemus/netrc"
LICENSE="MIT"
KEYWORDS="amd64 ~arm x86"
SLOT="0"
IUSE=""
all_ruby_prepare() {
# Avoid broken test that wrongly tests ruby internal code, bug 643922
sed -e '/test_encrypted_roundtrip/,/^ end/ s:^:#:' \
-e '/test_missing_environment/,/^ end/ s:^:#:' \
-e "s:/tmp/:${T}/:" \
-i test/test_netrc.rb || die
}
each_ruby_test() {
${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die
}
|