gentoo-ebuilds/dev-ruby/netrc/netrc-0.11.0-r2.ebuild
Hans de Graaff ac3b25ddb1
dev-ruby/netrc: enable ruby34
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
2024-12-31 07:39:21 +01:00

28 lines
742 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRADOC="changelog.txt Readme.md"
inherit ruby-fakegem
DESCRIPTION="This library reads and writes .netrc files"
HOMEPAGE="https://github.com/heroku/netrc"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~riscv x86"
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
}