From: Alexis Ballier Date: Mon, 16 Dec 2019 11:32:57 +0000 (+0100) Subject: dev-ros/ament_cmake_libraries: Declare python_check_deps(). X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b443c236413b9e2465484212f08a54663143a814;p=gentoo.git dev-ros/ament_cmake_libraries: Declare python_check_deps(). Closes: https://bugs.gentoo.org/702722 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier --- diff --git a/dev-ros/ament_cmake_libraries/ament_cmake_libraries-0.8.1.ebuild b/dev-ros/ament_cmake_libraries/ament_cmake_libraries-0.8.1.ebuild index b38982c35672..9e26d92976cd 100644 --- a/dev-ros/ament_cmake_libraries/ament_cmake_libraries-0.8.1.ebuild +++ b/dev-ros/ament_cmake_libraries/ament_cmake_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_libraries/ament_cmake_libraries-9999.ebuild b/dev-ros/ament_cmake_libraries/ament_cmake_libraries-9999.ebuild index b38982c35672..9e26d92976cd 100644 --- a/dev-ros/ament_cmake_libraries/ament_cmake_libraries-9999.ebuild +++ b/dev-ros/ament_cmake_libraries/ament_cmake_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}]" +}