summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-10-20 03:09:51 +0000
committerSam James <sam@gentoo.org>2021-10-20 03:10:32 +0000
commit7644d1ccb7a14f8b0076002081f8c92f8abd9c43 (patch)
tree06cba543950425189764519cdc359b39d3fd2667 /dev-python/citeproc-py
parentdev-python/citeproc-py: add 0.6.0 (diff)
downloadgentoo-7644d1ccb7a14f8b0076002081f8c92f8abd9c43.tar.gz
gentoo-7644d1ccb7a14f8b0076002081f8c92f8abd9c43.tar.bz2
gentoo-7644d1ccb7a14f8b0076002081f8c92f8abd9c43.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/citeproc-py')
-rw-r--r--dev-python/citeproc-py/citeproc-py-0.6.0.ebuild9
1 files 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 d69a3058ef1b..6aaa4f52d370 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() {