summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-07-27 18:00:14 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-07-27 18:01:38 +0200
commitb08201ccc3b07d6d44391da5a5476977c5ab1c11 (patch)
tree55265d9bf112fff85c0313ce0421c9ff26c11299 /dev-libs/console_bridge
parentdev-libs/console_bridge: add restrict (diff)
downloadgentoo-b08201ccc3b07d6d44391da5a5476977c5ab1c11.tar.gz
gentoo-b08201ccc3b07d6d44391da5a5476977c5ab1c11.tar.bz2
gentoo-b08201ccc3b07d6d44391da5a5476977c5ab1c11.zip
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@gentoo.org>
Diffstat (limited to 'dev-libs/console_bridge')
-rw-r--r--dev-libs/console_bridge/console_bridge-1.0.1.ebuild6
-rw-r--r--dev-libs/console_bridge/console_bridge-9999.ebuild6
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 193f365e5949..44f13c59150e 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 193f365e5949..44f13c59150e 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() {