commit: 7644d1ccb7a14f8b0076002081f8c92f8abd9c43
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 20 03:09:51 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Oct 20 03:10:32 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7644d1cc
dev-python/citeproc-py: fix installation without tests, simplify
- distutils_enable_tests handles IUSE=test, RESTRICT, and BDEPEND="test? (
${RDEPEND} )"
for us.
- Don't try to mv a directory which won't exist if USE=-test.
See: https://github.com/gentoo/gentoo/pull/22283
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-python/citeproc-py/citeproc-py-0.6.0.ebuild | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
index d69a3058ef1..6aaa4f52d37 100644
--- a/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
+++ b/dev-python/citeproc-py/citeproc-py-0.6.0.ebuild
@@ -21,19 +21,20 @@ SRC_URI="
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="test"
BDEPEND=">=app-text/rnc2rng-2.6.3[${PYTHON_USEDEP}]"
RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
-DEPEND="test? ( ${RDEPEND} )"
PATCHES=( "${FILESDIR}/stop_test_from_accessing_git-${PV}.patch" )
distutils_enable_tests nose
src_prepare() {
- default_src_prepare
- mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}" "${S}/tests/test-suite"
|| die
+ default
+
+ if use test ; then
+ mv "${WORKDIR}/test-suite-${TEST_SUITE_COMMIT}"
"${S}/tests/test-suite" || die
+ fi
}
python_test() {