diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-07-27 13:29:10 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-07-27 13:29:10 +0200 |
commit | 428118540dc90045b854a6aef2e9502e420e2b4a (patch) | |
tree | aa661f86d85c8979e00492c2df2079ed0029b514 /dev-ros/ament_cmake_copyright | |
parent | dev-ros/ament_cmake_xmllint: fixup deps (diff) | |
download | gentoo-428118540dc90045b854a6aef2e9502e420e2b4a.tar.gz gentoo-428118540dc90045b854a6aef2e9502e420e2b4a.tar.bz2 gentoo-428118540dc90045b854a6aef2e9502e420e2b4a.zip |
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 <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/ament_cmake_copyright')
-rw-r--r-- | dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.9.5.ebuild | 11 | ||||
-rw-r--r-- | dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild | 11 |
2 files changed, 20 insertions, 2 deletions
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 +} |