From 428118540dc90045b854a6aef2e9502e420e2b4a Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Mon, 27 Jul 2020 13:29:10 +0200 Subject: dev-ros/ament_cmake_copyright: fixup deps Closes: https://bugs.gentoo.org/733666 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Alexis Ballier --- .../ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild | 11 ++++++++++- .../ament_cmake_copyright/ament_cmake_copyright-9999.ebuild | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'dev-ros/ament_cmake_copyright') diff --git a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild index c3bd3c40cee5..29ed35a1afd5 100644 --- a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild +++ b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild @@ -29,17 +29,19 @@ else KEYWORDS="~amd64" fi IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" dev-ros/ament_copyright dev-ros/ament_cmake_test " -DEPEND="${RDEPEND}" +DEPEND="" # Deps here are transitive from ament_cmake_core to have matching python support BDEPEND=" $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}] dev-ros/ament_copyright[${PYTHON_USEDEP}] test? ( dev-ros/ament_lint_cmake[${PYTHON_USEDEP}] )' ) dev-ros/ament_cmake_core dev-ros/ament_cmake_test + dev-ros/ament_copyright test? ( dev-ros/ament_cmake_lint_cmake ) @@ -52,3 +54,10 @@ python_check_deps() { has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \ ( use !test || has_version "dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" ) } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} diff --git a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild index c3bd3c40cee5..29ed35a1afd5 100644 --- a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild +++ b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild @@ -29,17 +29,19 @@ else KEYWORDS="~amd64" fi IUSE="test" +RESTRICT="!test? ( test )" RDEPEND=" dev-ros/ament_copyright dev-ros/ament_cmake_test " -DEPEND="${RDEPEND}" +DEPEND="" # Deps here are transitive from ament_cmake_core to have matching python support BDEPEND=" $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}] dev-ros/ament_copyright[${PYTHON_USEDEP}] test? ( dev-ros/ament_lint_cmake[${PYTHON_USEDEP}] )' ) dev-ros/ament_cmake_core dev-ros/ament_cmake_test + dev-ros/ament_copyright test? ( dev-ros/ament_cmake_lint_cmake ) @@ -52,3 +54,10 @@ python_check_deps() { has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \ ( use !test || has_version "dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" ) } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} -- cgit v1.2.3-65-gdbad