diff options
Diffstat (limited to 'dev-ros/rosgraph/rosgraph-9999.ebuild')
-rw-r--r-- | dev-ros/rosgraph/rosgraph-9999.ebuild | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/dev-ros/rosgraph/rosgraph-9999.ebuild b/dev-ros/rosgraph/rosgraph-9999.ebuild index 49cca14bf4f3..171218629338 100644 --- a/dev-ros/rosgraph/rosgraph-9999.ebuild +++ b/dev-ros/rosgraph/rosgraph-9999.ebuild @@ -1,11 +1,10 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=7 ROS_REPO_URI="https://github.com/ros/ros_comm" KEYWORDS="~amd64 ~arm" -PYTHON_COMPAT=( python{2_7,3_6} pypy3 ) ROS_SUBDIR=tools/${PN} inherit ros-catkin @@ -16,7 +15,16 @@ SLOT="0" IUSE="" RDEPEND=" - dev-python/netifaces[${PYTHON_USEDEP}] - dev-python/rospkg[${PYTHON_USEDEP}]" + $(python_gen_cond_dep "dev-python/netifaces[\${PYTHON_USEDEP}]") + $(python_gen_cond_dep "dev-python/rospkg[\${PYTHON_USEDEP}]") +" DEPEND="${RDEPEND} - test? ( dev-python/mock[${PYTHON_USEDEP}] dev-python/nose[${PYTHON_USEDEP}] )" + test? ( + $(python_gen_cond_dep "dev-python/mock[\${PYTHON_USEDEP}]") + $(python_gen_cond_dep "dev-python/nose[\${PYTHON_USEDEP}]") + )" + +src_test() { + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}" + ros-catkin_src_test +} |