summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2020-07-23 13:09:17 +0200
committerAlexis Ballier <aballier@gentoo.org>2020-07-23 17:18:36 +0200
commite672f6663f5e91598dd99b04530475ace03fc8b4 (patch)
tree6ecd27899d51195d8c15851ab8bdba58401eaa51 /dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild
parentdev-ros/ament_cmake_export_definitions: Remove old (diff)
downloadgentoo-e672f6663f5e91598dd99b04530475ace03fc8b4.tar.gz
gentoo-e672f6663f5e91598dd99b04530475ace03fc8b4.tar.bz2
gentoo-e672f6663f5e91598dd99b04530475ace03fc8b4.zip
dev-ros/ament_cmake_export_dependencies: bump to 0.9.6
Use cmake.eclass Add python check deps Closes: https://bugs.gentoo.org/719918 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild')
-rw-r--r--dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild b/dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild
index a8243ae65981..6dcea483b58f 100644
--- a/dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild
+++ b/dev-ros/ament_cmake_export_dependencies/ament_cmake_export_dependencies-9999.ebuild
@@ -1,11 +1,11 @@
-# Copyright 2019 Gentoo Authors
+# Copyright 2019-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python{3_6,3_7} )
+PYTHON_COMPAT=( python{3_6,3_7,3_8} )
-inherit cmake-utils python-any-r1
+inherit cmake python-any-r1
ROS_PN="ament_cmake"
if [ "${PV#9999}" != "${PV}" ] ; then
@@ -40,3 +40,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}]"
+}