dev-python/PyPDF2: Expect sample files only with USE=test

Closes: https://bugs.gentoo.org/842147
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-05-02 14:35:26 +02:00
parent b18d059b6e
commit 5f1e664462

View File

@@ -36,7 +36,9 @@ distutils_enable_tests pytest
src_unpack() {
default
mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
if use test; then
mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die
fi
}
src_install() {