1 |
commit: 5f1e664462099a7e1530c0dde5db1bb640ca2254 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 2 12:35:26 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 2 12:42:11 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f1e6644 |
7 |
|
8 |
dev-python/PyPDF2: Expect sample files only with USE=test |
9 |
|
10 |
Closes: https://bugs.gentoo.org/842147 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/PyPDF2/PyPDF2-1.27.11.ebuild | 4 +++- |
14 |
1 file changed, 3 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/PyPDF2/PyPDF2-1.27.11.ebuild b/dev-python/PyPDF2/PyPDF2-1.27.11.ebuild |
17 |
index 141d383a80eb..0314e035bd9b 100644 |
18 |
--- a/dev-python/PyPDF2/PyPDF2-1.27.11.ebuild |
19 |
+++ b/dev-python/PyPDF2/PyPDF2-1.27.11.ebuild |
20 |
@@ -36,7 +36,9 @@ distutils_enable_tests pytest |
21 |
|
22 |
src_unpack() { |
23 |
default |
24 |
- mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die |
25 |
+ if use test; then |
26 |
+ mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die |
27 |
+ fi |
28 |
} |
29 |
|
30 |
src_install() { |