summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-02-19 10:51:49 +0100
committerHans de Graaff <graaff@gentoo.org>2023-02-19 10:53:41 +0100
commit5db1cda785c290be88e0f4d58393e916cead4418 (patch)
tree45f652722470794a099cd99f0c66cc444e43ad8e
parentdev-libs/FP16: add python 3.11 support (diff)
downloadgentoo-5db1cda785c290be88e0f4d58393e916cead4418.tar.gz
gentoo-5db1cda785c290be88e0f4d58393e916cead4418.tar.bz2
gentoo-5db1cda785c290be88e0f4d58393e916cead4418.zip
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@gentoo.org>
-rw-r--r--dev-ruby/net-imap/net-imap-0.3.4.ebuild6
1 files 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
}