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/rospkg"
13 inherit ${SCM} distutils-r1
15 DESCRIPTION="Standalone Python library for the ROS package system"
16 HOMEPAGE="http://wiki.ros.org/rospkg"
17 if [ "${PV#9999}" != "${PV}" ] ; then
22 EGIT_CHECKOUT_DIR="${S}"
24 SRC_URI="https://github.com/ros-infrastructure/rospkg/archive/${PV}.tar.gz -> ${P}.tar.gz"
25 KEYWORDS="~amd64 ~arm"
31 RESTRICT="!test? ( test )"
33 RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]"
35 dev-python/setuptools[${PYTHON_USEDEP}]
37 dev-python/nose[${PYTHON_USEDEP}]
39 DEPEND="${RDEPEND} ${BDEPEND}
41 dev-python/coverage[${PYTHON_USEDEP}]
42 dev-python/mock[${PYTHON_USEDEP}]
45 PATCHES=( "${FILESDIR}/gentoo.patch" )
48 nosetests --with-coverage --cover-package=rospkg --with-xunit test || die