commit:     cee49a06e6efb6c1d9152f8842303e4ee3ed5429
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  3 11:09:50 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sat Feb  4 07:07:51 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cee49a06

dev-ruby/net-imap: fix test to work without network access

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/net-imap/Manifest              | 1 +
 dev-ruby/net-imap/net-imap-0.3.4.ebuild | 8 ++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-ruby/net-imap/Manifest b/dev-ruby/net-imap/Manifest
index 1cfbe6b07819..06ce6b70fac1 100644
--- a/dev-ruby/net-imap/Manifest
+++ b/dev-ruby/net-imap/Manifest
@@ -1,3 +1,4 @@
 DIST net-imap-0.2.3.tar.gz 61440 BLAKE2B 
f38bed72777ad93b5a94361ca134644ae218f4a0cb3f26330a99dd5633d30f0f846f3fc4eeb01bc94c13bd5e553cb29f1ad03264987badf83b8f5404755c73ac
 SHA512 
69b6596a8ecc66788be10d11dad911351db6ff651f56e8dc5223f4c948efe0d2e53bd465ebf56edd96f1c414e3819413835c14b35a8e90b9f9ac59bfaa5611c6
 DIST net-imap-0.3.1.tar.gz 63981 BLAKE2B 
df3eca949e9736bebf6af27859c4198d05734762d8f1755fade685986f4248e05a09a6e4c48fd92d5f537a2f206bac6da75165f0c42171fa7bd533b908071d16
 SHA512 
b2f88b3fc2cd6ed6c0ed1e8c60100e84ac9a8c0406a780ff5b7b0f11440fb997e79dea0f67a15a139f9bb41e76bff5fcb60668fd1ed4be65142199a4d3c9e167
 DIST net-imap-0.3.4.tar.gz 103226 BLAKE2B 
b08ee0ad9ad788c1a58e583b3e71cef6e13f6c4f35cc1a67909715a30b0797987f71b1a790e0ca3a2a4b0da3b23ac2451c5e0fb8217506eb0e050c2c2c624362
 SHA512 
ced2433212738e1c54b783602dc8ed79b0d6fabef0d830d12e4d1a8b7f1df896596499a4b986dab1ac8e1e389bf88f87c854ceafbe57b7ad1cf5c0db29223ba1
+DIST rfc3454.txt 138684 BLAKE2B 
56c850a7f5782c1447ae633ad9a380253b97925b9edeadbeb9001f4905157c353db967125dfb3bfef1e1bc2297142e5db424cb3b1325837ab4bb05db1f0f92a9
 SHA512 
79a85fede7df9202cbaf3fbb0bd59d951352c56208da2adf0baa5571ad92fd2153a6348000994b733c8a1bfdc93c38c86ed33708ecdef8571f20f906564384b6

diff --git a/dev-ruby/net-imap/net-imap-0.3.4.ebuild 
b/dev-ruby/net-imap/net-imap-0.3.4.ebuild
index 67d85bbd0843..6a6a2431601e 100644
--- a/dev-ruby/net-imap/net-imap-0.3.4.ebuild
+++ b/dev-ruby/net-imap/net-imap-0.3.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -12,7 +12,8 @@ inherit ruby-fakegem
 
 DESCRIPTION="Ruby client api for Internet Message Access Protocol"
 HOMEPAGE="https://github.com/ruby/net-imap";
-SRC_URI="https://github.com/ruby/net-imap/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI="https://github.com/ruby/net-imap/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       test? ( https://www.rfc-editor.org/rfc/rfc3454.txt )"
 
 LICENSE="BSD-2"
 SLOT="0"
@@ -31,4 +32,7 @@ all_ruby_prepare() {
                -e 's/__FILE__/"'${RUBY_FAKEGEM_GEMSPEC}'"/' \
                -e 's/git ls-files -z/find * -print0/' \
                -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       mkdir rfcs || die
+       cp "${DISTDIR}/rfc3454.txt" rfcs/ || die
 }

Reply via email to