commit: b08201ccc3b07d6d44391da5a5476977c5ab1c11 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> AuthorDate: Mon Jul 27 16:00:14 2020 +0000 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> CommitDate: Mon Jul 27 16:01:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b08201cc
dev-libs/console_bridge: fix USE=-test Closes: https://bugs.gentoo.org/734110 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> dev-libs/console_bridge/console_bridge-1.0.1.ebuild | 6 ++++-- dev-libs/console_bridge/console_bridge-9999.ebuild | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dev-libs/console_bridge/console_bridge-1.0.1.ebuild b/dev-libs/console_bridge/console_bridge-1.0.1.ebuild index 193f365e594..44f13c59150 100644 --- a/dev-libs/console_bridge/console_bridge-1.0.1.ebuild +++ b/dev-libs/console_bridge/console_bridge-1.0.1.ebuild @@ -53,8 +53,10 @@ src_configure() { cmake_src_configure # For tests - cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cppcheck.py" "${BUILD_DIR}/test/cppcheck.py" || die - cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cpplint.py" "${BUILD_DIR}/test/cpplint.py" || die + if use test ; then + cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cppcheck.py" "${BUILD_DIR}/test/cppcheck.py" || die + cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cpplint.py" "${BUILD_DIR}/test/cpplint.py" || die + fi } src_test() { diff --git a/dev-libs/console_bridge/console_bridge-9999.ebuild b/dev-libs/console_bridge/console_bridge-9999.ebuild index 193f365e594..44f13c59150 100644 --- a/dev-libs/console_bridge/console_bridge-9999.ebuild +++ b/dev-libs/console_bridge/console_bridge-9999.ebuild @@ -53,8 +53,10 @@ src_configure() { cmake_src_configure # For tests - cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cppcheck.py" "${BUILD_DIR}/test/cppcheck.py" || die - cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cpplint.py" "${BUILD_DIR}/test/cpplint.py" || die + if use test ; then + cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cppcheck.py" "${BUILD_DIR}/test/cppcheck.py" || die + cp "${DISTDIR}/${P}-ament-${AMENT_LINT_VER}-cpplint.py" "${BUILD_DIR}/test/cpplint.py" || die + fi } src_test() {