summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-04-29 07:20:24 +0200
committerHans de Graaff <graaff@gentoo.org>2021-04-30 07:52:06 +0200
commit0a47ae99c8d3ff7c0ade3de45beb8b833da7438b (patch)
tree80a6003f2a5a4aaa0a9628078aa047cb09ed8ae4 /dev-ruby/netrc
parentdev-ruby/multipart-post: add ruby30 (diff)
downloadgentoo-0a47ae99c8d3ff7c0ade3de45beb8b833da7438b.tar.gz
gentoo-0a47ae99c8d3ff7c0ade3de45beb8b833da7438b.tar.bz2
gentoo-0a47ae99c8d3ff7c0ade3de45beb8b833da7438b.zip
dev-ruby/netrc: add ruby30; EAPI 7
Package-Manager: Portage-3.0.18, Repoman-3.0.2 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-r1.ebuild29
1 files changed, 29 insertions, 0 deletions
diff --git a/dev-ruby/netrc/netrc-0.11.0-r1.ebuild b/dev-ruby/netrc/netrc-0.11.0-r1.ebuild
new file mode 100644
index 000000000000..4b707a95d105
--- /dev/null
+++ b/dev-ruby/netrc/netrc-0.11.0-r1.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="changelog.txt Readme.md"
+
+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
+}