commit:     5db1cda785c290be88e0f4d58393e916cead4418
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 19 09:51:49 2023 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Feb 19 09:53:41 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5db1cda7

dev-ruby/net-imap: only install rfc3454.txt when tests are enabled

Thanks to Ștefan Talpalaru for proposing the fix.

Closes: https://bugs.gentoo.org/893186
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/net-imap/net-imap-0.3.4.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 6a6a2431601e..eaedc9142d36 100644
--- a/dev-ruby/net-imap/net-imap-0.3.4.ebuild
+++ b/dev-ruby/net-imap/net-imap-0.3.4.ebuild
@@ -33,6 +33,8 @@ all_ruby_prepare() {
                -e 's/git ls-files -z/find * -print0/' \
                -i ${RUBY_FAKEGEM_GEMSPEC} || die
 
-       mkdir rfcs || die
-       cp "${DISTDIR}/rfc3454.txt" rfcs/ || die
+       if use test ; then
+               mkdir rfcs || die
+               cp "${DISTDIR}/rfc3454.txt" rfcs/ || die
+       fi
 }

Reply via email to