commit:     650ebef5e7861d5bfe741ca96530a3e1e3a4f7be
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct  4 06:11:33 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Oct  4 06:11:40 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=650ebef5

dev-ros/ament_cmake_copyright: use python_has_version inside python_check_deps

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../ament_cmake_copyright/ament_cmake_copyright-0.11.2.ebuild  | 10 +++++-----
 .../ament_cmake_copyright/ament_cmake_copyright-0.12.1.ebuild  |  8 ++++----
 .../ament_cmake_copyright/ament_cmake_copyright-9999.ebuild    | 10 +++++-----
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.11.2.ebuild 
b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.11.2.ebuild
index a5d7095d6b60..5366e55b2827 100644
--- a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.11.2.ebuild
+++ b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.11.2.ebuild
@@ -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
@@ -47,10 +47,10 @@ BDEPEND="
 "
 
 python_check_deps() {
-       has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
-               has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
-               ( use !test || has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
+       python_has_version "dev-python/ament_package[${PYTHON_USEDEP}]" \
+               "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
+               "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
+               ( use !test || python_has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
 }
 
 src_configure() {

diff --git a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.12.1.ebuild 
b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.12.1.ebuild
index dd36342b121c..5366e55b2827 100644
--- a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.12.1.ebuild
+++ b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-0.12.1.ebuild
@@ -47,10 +47,10 @@ BDEPEND="
 "
 
 python_check_deps() {
-       has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
-               has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
-               ( use !test || has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
+       python_has_version "dev-python/ament_package[${PYTHON_USEDEP}]" \
+               "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
+               "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
+               ( use !test || python_has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
 }
 
 src_configure() {

diff --git a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild 
b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild
index a5d7095d6b60..5366e55b2827 100644
--- a/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild
+++ b/dev-ros/ament_cmake_copyright/ament_cmake_copyright-9999.ebuild
@@ -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
@@ -47,10 +47,10 @@ BDEPEND="
 "
 
 python_check_deps() {
-       has_version "dev-python/ament_package[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
-               has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
-               ( use !test || has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
+       python_has_version "dev-python/ament_package[${PYTHON_USEDEP}]" \
+               "dev-python/catkin_pkg[${PYTHON_USEDEP}]" \
+               "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
+               ( use !test || python_has_version 
"dev-ros/ament_lint_cmake[${PYTHON_USEDEP}]" )
 }
 
 src_configure() {

Reply via email to