1 # Copyright 2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{3_6,3_7} )
8 inherit cmake-utils python-r1
11 if [ "${PV#9999}" != "${PV}" ] ; then
13 EGIT_REPO_URI="https://github.com/ament/ament_cmake"
15 S=${WORKDIR}/${P}/${PN}
17 SRC_URI="https://github.com/ament/ament_cmake/archive/${PV}.tar.gz -> ${ROS_PN}-${PV}.tar.gz"
18 S="${WORKDIR}/${ROS_PN}-${PV}/${PN}"
21 DESCRIPTION="The entry point package for the ament buildsystem"
22 HOMEPAGE="https://github.com/ament/ament_cmake"
26 if [ "${PV#9999}" != "${PV}" ] ; then
34 dev-ros/ament_cmake_core[${PYTHON_USEDEP}]
35 dev-ros/ament_cmake_export_definitions[${PYTHON_USEDEP}]
36 dev-ros/ament_cmake_export_dependencies[${PYTHON_USEDEP}]
37 dev-ros/ament_cmake_export_include_directories[${PYTHON_USEDEP}]
38 dev-ros/ament_cmake_export_interfaces[${PYTHON_USEDEP}]
39 dev-ros/ament_cmake_export_libraries[${PYTHON_USEDEP}]
40 dev-ros/ament_cmake_export_link_flags[${PYTHON_USEDEP}]
41 dev-ros/ament_cmake_libraries[${PYTHON_USEDEP}]
42 dev-ros/ament_cmake_python[${PYTHON_USEDEP}]
43 dev-ros/ament_cmake_target_dependencies[${PYTHON_USEDEP}]
44 dev-ros/ament_cmake_test[${PYTHON_USEDEP}]
45 dev-ros/ament_cmake_version[${PYTHON_USEDEP}]
50 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
53 # This is a build tool that does not install python-related files
54 # ... but we need to propagate the deps and use python3 to build it.
55 local pyimpl="${PYTHON_COMPAT[0]}"
56 python_export "${pyimpl}" EPYTHON PYTHON
58 cmake-utils_src_configure