1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_4,3_5} )
8 if [ "${PV#9999}" != "${PV}" ] ; then
10 EGIT_REPO_URI="https://github.com/vcstools/wstool"
13 inherit ${SCM} distutils-r1
15 DESCRIPTION="Commands to manage several local SCM repositories for ROS"
16 HOMEPAGE="http://wiki.ros.org/wstool"
17 if [ "${PV#9999}" != "${PV}" ] ; then
21 SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
22 https://github.com/vcstools/wstool/archive/${PV}.tar.gz -> ${P}.tar.gz
24 KEYWORDS="~amd64 ~arm"
32 dev-python/pyyaml[${PYTHON_USEDEP}]
33 >=dev-python/vcstools-0.1.38[${PYTHON_USEDEP}]
38 dev-python/nose[${PYTHON_USEDEP}]
39 dev-python/coverage[${PYTHON_USEDEP}]
47 PATCHES=( "${FILESDIR}/prefix2.patch" )
48 DISTUTILS_IN_SOURCE_BUILD="yes"
52 # Set git config to silence some stuff in the tests
53 git config --global user.email "foo@example.com"
54 git config --global user.name "Foo Bar"
56 echo -e "[ui]\nusername = Your Name <your@mail.com>" >> ~/.hgrc
58 bzr whoami "Your Name <name@example.com>"
59 # command to run tests
60 nosetests --with-coverage --cover-package=wstool || die