commit: af521f6d2c365ec981930b8ac3127f506655b792 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org> AuthorDate: Mon Jul 27 13:01:37 2020 +0000 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org> CommitDate: Mon Jul 27 13:19:43 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af521f6d
dev-ros/ament_cmake_xmllint: dont build tests when not needed Closes: https://bugs.gentoo.org/734082 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org> dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-0.9.5.ebuild | 7 +++++++ dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-0.9.5.ebuild b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-0.9.5.ebuild index c340183a9e6..065d1257e26 100644 --- a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-0.9.5.ebuild +++ b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-0.9.5.ebuild @@ -52,3 +52,10 @@ python_check_deps() { has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \ has_version "dev-ros/ament_xmllint[${PYTHON_USEDEP}]" } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +} diff --git a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild index c340183a9e6..065d1257e26 100644 --- a/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild +++ b/dev-ros/ament_cmake_xmllint/ament_cmake_xmllint-9999.ebuild @@ -52,3 +52,10 @@ python_check_deps() { has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \ has_version "dev-ros/ament_xmllint[${PYTHON_USEDEP}]" } + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test ON OFF) + ) + cmake_src_configure +}
