summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2019-12-13 14:39:36 +0100
committerAlexis Ballier <aballier@gentoo.org>2019-12-13 14:53:21 +0100
commit4c97f0e4d88fe5273e4dd986faa140ef44962484 (patch)
tree5775c0d61bec08f8ff9d8df84d80f8d20cd8a31a /dev-ros
parentdev-ros/ament_cmake_export_definitions: use python-any-r1 (diff)
downloadgentoo-4c97f0e4d88fe5273e4dd986faa140ef44962484.tar.gz
gentoo-4c97f0e4d88fe5273e4dd986faa140ef44962484.tar.bz2
gentoo-4c97f0e4d88fe5273e4dd986faa140ef44962484.zip
dev-ros/ament_cmake_core: use python-any-r1
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros')
-rw-r--r--dev-ros/ament_cmake_core/ament_cmake_core-0.8.1.ebuild24
-rw-r--r--dev-ros/ament_cmake_core/ament_cmake_core-9999.ebuild24
2 files changed, 16 insertions, 32 deletions
diff --git a/dev-ros/ament_cmake_core/ament_cmake_core-0.8.1.ebuild b/dev-ros/ament_cmake_core/ament_cmake_core-0.8.1.ebuild
index cd95fc719ffe..6e3eac947c36 100644
--- a/dev-ros/ament_cmake_core/ament_cmake_core-0.8.1.ebuild
+++ b/dev-ros/ament_cmake_core/ament_cmake_core-0.8.1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
-inherit cmake-utils python-r1
+inherit cmake-utils python-any-r1
ROS_PN="ament_cmake"
if [ "${PV#9999}" != "${PV}" ] ; then
@@ -30,20 +30,12 @@ else
fi
IUSE=""
-DEPEND="
- dev-python/ament_package[${PYTHON_USEDEP}]
- dev-python/catkin_pkg[${PYTHON_USEDEP}]
+RDEPEND="
+ dev-python/ament_package
+ dev-python/catkin_pkg
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]')
${PYTHON_DEPS}
"
-RDEPEND="${DEPEND}"
-BDEPEND="${DEPEND}"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-src_configure() {
- # This is a build tool that does not install python-related files
- # ... but we need to propagate the deps and use python3 to build it.
- local pyimpl="${PYTHON_COMPAT[0]}"
- python_export "${pyimpl}" EPYTHON PYTHON
- python_wrapper_setup
- cmake-utils_src_configure
-}
diff --git a/dev-ros/ament_cmake_core/ament_cmake_core-9999.ebuild b/dev-ros/ament_cmake_core/ament_cmake_core-9999.ebuild
index cd95fc719ffe..6e3eac947c36 100644
--- a/dev-ros/ament_cmake_core/ament_cmake_core-9999.ebuild
+++ b/dev-ros/ament_cmake_core/ament_cmake_core-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python{3_6,3_7} )
-inherit cmake-utils python-r1
+inherit cmake-utils python-any-r1
ROS_PN="ament_cmake"
if [ "${PV#9999}" != "${PV}" ] ; then
@@ -30,20 +30,12 @@ else
fi
IUSE=""
-DEPEND="
- dev-python/ament_package[${PYTHON_USEDEP}]
- dev-python/catkin_pkg[${PYTHON_USEDEP}]
+RDEPEND="
+ dev-python/ament_package
+ dev-python/catkin_pkg
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ $(python_gen_any_dep 'dev-python/ament_package[${PYTHON_USEDEP}] dev-python/catkin_pkg[${PYTHON_USEDEP}]')
${PYTHON_DEPS}
"
-RDEPEND="${DEPEND}"
-BDEPEND="${DEPEND}"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-src_configure() {
- # This is a build tool that does not install python-related files
- # ... but we need to propagate the deps and use python3 to build it.
- local pyimpl="${PYTHON_COMPAT[0]}"
- python_export "${pyimpl}" EPYTHON PYTHON
- python_wrapper_setup
- cmake-utils_src_configure
-}