Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/rosdep/
Date: Tue, 15 Jan 2019 10:47:01
Message-Id: 1547549206.1f5d719b09277df4a2e2382ca3a7281d14f60152.aballier@gentoo
1 commit: 1f5d719b09277df4a2e2382ca3a7281d14f60152
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 15 10:46:04 2019 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 15 10:46:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f5d719b
7
8 dev-util/rosdep: bump to 0.14.0
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 dev-util/rosdep/Manifest | 1 +
14 dev-util/rosdep/rosdep-0.14.0.ebuild | 62 ++++++++++++++++++++++++++++++++++++
15 2 files changed, 63 insertions(+)
16
17 diff --git a/dev-util/rosdep/Manifest b/dev-util/rosdep/Manifest
18 index 97181a88fbf..648e4ca95e9 100644
19 --- a/dev-util/rosdep/Manifest
20 +++ b/dev-util/rosdep/Manifest
21 @@ -1 +1,2 @@
22 DIST rosdep-0.13.0.tar.gz 301327 BLAKE2B 39c39903bb2e6c07dfd4e3aa9546acf434498db518c3bda04ef79c46ed5d13b7cd55978c78bea8294d8e5b84ddddef22814436566f3f958d91d3964650399a08 SHA512 c42aa17ee9b31f7013415e99a484a66a7a7fb52abef4cc9045658150ce0c36b475f2885ebfff537f9ce9f8fd5eeaef5482226c5bff5b4a3df03cc72b149db07a
23 +DIST rosdep-0.14.0.tar.gz 301534 BLAKE2B 86e4fb42e682218dc1d68851a0023f2fbddc5a8a89d90dd33cc7223080792e3d3dea7607a57692428f81589abc693c9f843be4c10ca81b6419da7e383d1c7987 SHA512 abf9c294b9fb01aa4c32bd7ad563119874e162d6031255edce642eeee1512da39a03383aa6cd55f090587df2b6bd1dc83bc53163be9d2b53be6178ec8a422f66
24
25 diff --git a/dev-util/rosdep/rosdep-0.14.0.ebuild b/dev-util/rosdep/rosdep-0.14.0.ebuild
26 new file mode 100644
27 index 00000000000..6f344ec5df7
28 --- /dev/null
29 +++ b/dev-util/rosdep/rosdep-0.14.0.ebuild
30 @@ -0,0 +1,62 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} pypy{,3} )
36 +
37 +SCM=""
38 +if [ "${PV#9999}" != "${PV}" ] ; then
39 + SCM="git-r3"
40 + EGIT_REPO_URI="https://github.com/ros-infrastructure/rosdep"
41 +fi
42 +
43 +inherit ${SCM} distutils-r1
44 +
45 +DESCRIPTION="Command-line tool for installing ROS system dependencies"
46 +HOMEPAGE="http://wiki.ros.org/rosdep"
47 +if [ "${PV#9999}" != "${PV}" ] ; then
48 + SRC_URI=""
49 + KEYWORDS=""
50 +else
51 + SRC_URI="http://download.ros.org/downloads/${PN}/${P}.tar.gz
52 + https://github.com/ros-infrastructure/rosdep/archive/${PV}.tar.gz -> ${P}.tar.gz
53 + "
54 + KEYWORDS="~amd64 ~arm"
55 +fi
56 +
57 +LICENSE="BSD"
58 +SLOT="0"
59 +IUSE="test"
60 +
61 +RDEPEND="
62 + dev-python/catkin_pkg[${PYTHON_USEDEP}]
63 + dev-python/rospkg[${PYTHON_USEDEP}]
64 + dev-python/rosdistro[${PYTHON_USEDEP}]
65 + dev-python/pyyaml[${PYTHON_USEDEP}]"
66 +DEPEND="${RDEPEND}"
67 +BDEPEND="
68 + dev-python/nose[${PYTHON_USEDEP}]
69 + test? (
70 + dev-python/coverage[${PYTHON_USEDEP}]
71 + dev-python/mock[${PYTHON_USEDEP}]
72 + dev-python/flake8[${PYTHON_USEDEP}]
73 + )
74 +"
75 +
76 +python_test() {
77 + nosetests --with-coverage --cover-package=rosdep2 --with-xunit test || die
78 +}
79 +
80 +pkg_postrm() {
81 + if [ "${ROOT:-/}" = "/" ] ; then
82 + einfo "Removing rosdep default sources list."
83 + rm -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list"
84 + fi
85 +}
86 +
87 +pkg_postinst() {
88 + if [ "${ROOT:-/}" = "/" -a ! -f "${EPREFIX}/etc/ros/rosdep/sources.list.d/20-default.list" ] ; then
89 + einfo "Initializing rosdep"
90 + rosdep init
91 + fi
92 +}