1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_6} pypy3 )
8 if [ "${PV#9999}" != "${PV}" ] ; then
10 EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
13 inherit ${SCM} distutils-r1
15 DESCRIPTION="Command-line tool for installing ROS system dependencies"
16 HOMEPAGE="http://wiki.ros.org/rosdep"
17 if [ "${PV#9999}" != "${PV}" ] ; then
21 SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
22 https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
24 KEYWORDS="~amd64 ~arm"
30 RESTRICT="!test? ( test )"
33 dev-python/catkin_pkg[${PYTHON_USEDEP}]
34 dev-python/rospkg[${PYTHON_USEDEP}]
35 dev-python/rosdistro[${PYTHON_USEDEP}]
36 dev-python/pyyaml[${PYTHON_USEDEP}]"
39 dev-python/nose[${PYTHON_USEDEP}]
41 dev-python/coverage[${PYTHON_USEDEP}]
42 dev-python/mock[${PYTHON_USEDEP}]
43 dev-python/flake8[${PYTHON_USEDEP}]
48 nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
52 if [ "${ROOT:-/}" = "/" ] ; then
53 einfo "Removing rosdep default sources list."
54 rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
59 if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
60 einfo "Initializing rosdep"