summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-03-30 08:32:23 +0200
committerHans de Graaff <graaff@gentoo.org>2023-03-30 09:01:52 +0200
commit35f51bec13becf05402aa8f41215d7d94ac789d7 (patch)
treec918772abd0b4ac67f3aac26cca6f59bd0ca8b0c /dev-ruby/netrc
parentdev-java/bsh: enable more tests (diff)
downloadgentoo-35f51bec13becf05402aa8f41215d7d94ac789d7.tar.gz
gentoo-35f51bec13becf05402aa8f41215d7d94ac789d7.tar.bz2
gentoo-35f51bec13becf05402aa8f41215d7d94ac789d7.zip
dev-ruby/netrc: update EAPI 7 -> 8, add ruby32
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/netrc')
-rw-r--r--dev-ruby/netrc/netrc-0.11.0-r2.ebuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-ruby/netrc/netrc-0.11.0-r2.ebuild b/dev-ruby/netrc/netrc-0.11.0-r2.ebuild
new file mode 100644
index 000000000000..a57f2be410c9
--- /dev/null
+++ b/dev-ruby/netrc/netrc-0.11.0-r2.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30 ruby31 ruby32"
+
+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"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~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
+}