From: Alexis Ballier Date: Mon, 16 Dec 2019 11:30:51 +0000 (+0100) Subject: dev-ros/ament_cmake_export_libraries: Declare python_check_deps(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=90931d853657e42c750dd77959747751705687ed;p=gentoo.git dev-ros/ament_cmake_export_libraries: Declare python_check_deps(). Thanks to mgorny. Closes: https://bugs.gentoo.org/702728 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier --- diff --git a/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-0.8.1.ebuild b/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-0.8.1.ebuild index c3827165a1ec..3a206672bb44 100644 --- a/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-0.8.1.ebuild +++ b/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-0.8.1.ebuild @@ -39,3 +39,8 @@ BDEPEND=" $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]') ${PYTHON_DEPS} " + +python_check_deps() { + has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \ + has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" +} diff --git a/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-9999.ebuild b/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-9999.ebuild index c3827165a1ec..3a206672bb44 100644 --- a/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-9999.ebuild +++ b/dev-ros/ament_cmake_export_libraries/ament_cmake_export_libraries-9999.ebuild @@ -39,3 +39,8 @@ BDEPEND=" $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]') ${PYTHON_DEPS} " + +python_check_deps() { + has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \ + has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" +}