dev-ros/ament_cmake_cpplint: use python_has_version inside python_check_deps

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2022-10-04 09:24:09 +03:00
parent 1020d90201
commit de997f3ca0
3 changed files with 11 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2021 Gentoo Authors
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -45,9 +45,9 @@ BDEPEND="
"
python_check_deps() {
{ use !test || has_version -b "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
has_version -b "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
has_version -b "dev-python/ament_package[${PYTHON_USEDEP}]"
{ use !test || python_has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
python_has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
"dev-python/ament_package[${PYTHON_USEDEP}]"
}
src_configure() {

View File

@@ -45,9 +45,9 @@ BDEPEND="
"
python_check_deps() {
{ use !test || has_version -b "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
has_version -b "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
has_version -b "dev-python/ament_package[${PYTHON_USEDEP}]"
{ use !test || python_has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
python_has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
"dev-python/ament_package[${PYTHON_USEDEP}]"
}
src_configure() {

View File

@@ -1,4 +1,4 @@
# Copyright 2019-2021 Gentoo Authors
# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -45,9 +45,9 @@ BDEPEND="
"
python_check_deps() {
{ use !test || has_version -b "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
has_version -b "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
has_version -b "dev-python/ament_package[${PYTHON_USEDEP}]"
{ use !test || python_has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
python_has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
"dev-python/ament_package[${PYTHON_USEDEP}]"
}
src_configure() {