1 |
commit: 7644d1ccb7a14f8b0076002081f8c92f8abd9c43 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 20 03:09:51 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 20 03:10:32 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7644d1cc |
7 |
|
8 |
dev-python/citeproc-py: fix installation without tests, simplify |
9 |
|
10 |
- distutils_enable_tests handles IUSE=test, RESTRICT, and BDEPEND="test? ( ${RDEPEND} )" |
11 |
for us. |
12 |
|
13 |
- Don't try to mv a directory which won't exist if USE=-test. |
14 |
|
15 |
See: https://github.com/gentoo/gentoo/pull/22283 |
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 9 +++++---- |
19 |
1 file changed, 5 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild |
22 |
index d69a3058ef1..6aaa4f52d37 100644 |
23 |
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild |
24 |
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild |
25 |
@@ -21,19 +21,20 @@ SRC_URI=" |
26 |
LICENSE="BSD-2" |
27 |
SLOT="0" |
28 |
KEYWORDS="~amd64" |
29 |
-IUSE="test" |
30 |
|
31 |
BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]" |
32 |
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]" |
33 |
-DEPEND="test? ( ${RDEPEND} )" |
34 |
|
35 |
PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" ) |
36 |
|
37 |
distutils_enable_tests nose |
38 |
|
39 |
src_prepare() { |
40 |
- default_src_prepare |
41 |
- mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die |
42 |
+ default |
43 |
+ |
44 |
+ if use test ; then |
45 |
+ mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite" || die |
46 |
+ fi |
47 |
} |
48 |
|
49 |
python_test() { |