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-ros/robot_state_publisher/
Date: Thu, 06 Aug 2020 16:09:27
Message-Id: 1596730142.1008f6f4708fbf65de8f5f31775e655be48f509b.aballier@gentoo
1 commit: 1008f6f4708fbf65de8f5f31775e655be48f509b
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 6 15:58:09 2020 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 6 16:09:02 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1008f6f4
7
8 dev-ros/robot_state_publisher: fix tests
9
10 Closes: https://bugs.gentoo.org/625136
11 Package-Manager: Portage-3.0.1, Repoman-2.3.23
12 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
13
14 dev-ros/robot_state_publisher/Manifest | 2 ++
15 .../robot_state_publisher-1.15.1.ebuild | 18 ++++++++++++++++++
16 .../robot_state_publisher-9999.ebuild | 18 ++++++++++++++++++
17 3 files changed, 38 insertions(+)
18
19 diff --git a/dev-ros/robot_state_publisher/Manifest b/dev-ros/robot_state_publisher/Manifest
20 index 9e4a0feea91..998e2eb1c68 100644
21 --- a/dev-ros/robot_state_publisher/Manifest
22 +++ b/dev-ros/robot_state_publisher/Manifest
23 @@ -1 +1,3 @@
24 +DIST robot_state_publisher-1.15.1-joint_states_indexed.bag 778888 BLAKE2B 3d117e06712ed20f838be247057645799a8b8501ddc3582a0037d34a2da40b8390367de88bd278f05632f150e88139b34325be3d5a1ce44f7ad3ebfaffd5e0ac SHA512 171e4eb810e12da4af5f9ce4f91bb6967e3895dfa284aa542010b7a7691571051e237ab96b055105f559e8d242099eb41f1429c5afcba13361ee58bdd565a689
25 DIST robot_state_publisher-1.15.1.tar.gz 25717 BLAKE2B 87f1e70f80cff01255840e99be9088bc1d91bc25f5b00d1e46b3ebed9b55bf24e5fa698b41cb4c3603ae7147191a3d39ca85b65469edffacfb91d7f913156268 SHA512 f36d07961c27c85b2787cc294ca10a7e1334e699db61926067aa0a9b1dcab0969a799feed6d2fa78d14ff76cf661d29479585d6f9ec660f94832e79d6c88ddf1
26 +DIST robot_state_publisher-9999-joint_states_indexed.bag 778888 BLAKE2B 3d117e06712ed20f838be247057645799a8b8501ddc3582a0037d34a2da40b8390367de88bd278f05632f150e88139b34325be3d5a1ce44f7ad3ebfaffd5e0ac SHA512 171e4eb810e12da4af5f9ce4f91bb6967e3895dfa284aa542010b7a7691571051e237ab96b055105f559e8d242099eb41f1429c5afcba13361ee58bdd565a689
27
28 diff --git a/dev-ros/robot_state_publisher/robot_state_publisher-1.15.1.ebuild b/dev-ros/robot_state_publisher/robot_state_publisher-1.15.1.ebuild
29 index b5b92efa90d..f61237cc28c 100644
30 --- a/dev-ros/robot_state_publisher/robot_state_publisher-1.15.1.ebuild
31 +++ b/dev-ros/robot_state_publisher/robot_state_publisher-1.15.1.ebuild
32 @@ -11,6 +11,11 @@ DESCRIPTION="Package for publishing the state of a robot to tf"
33 LICENSE="BSD"
34 SLOT="0"
35 IUSE=""
36 +DATA="joint_states_indexed.bag"
37 +for i in ${DATA}; do
38 + SRC_URI="${SRC_URI}
39 + http://wiki.ros.org/robot_state_publisher/data?action=AttachFile&do=get&target=${i} -> ${P}-${i}"
40 +done
41
42 RDEPEND="
43 dev-ros/kdl_parser
44 @@ -30,3 +35,16 @@ RDEPEND="
45 DEPEND="${RDEPEND}
46 test? ( dev-cpp/gtest dev-ros/rostest[${PYTHON_SINGLE_USEDEP}] )
47 "
48 +
49 +src_prepare() {
50 + ros-catkin_src_prepare
51 + for i in ${DATA}; do
52 + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
53 + done
54 + sed -e "s#http://wiki.ros.org/robot_state_publisher/data?action=AttachFile&do=get&target=#file://${S}#" -i CMakeLists.txt || die
55 +}
56 +
57 +src_test() {
58 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
59 + ros-catkin_src_test
60 +}
61
62 diff --git a/dev-ros/robot_state_publisher/robot_state_publisher-9999.ebuild b/dev-ros/robot_state_publisher/robot_state_publisher-9999.ebuild
63 index b5b92efa90d..f61237cc28c 100644
64 --- a/dev-ros/robot_state_publisher/robot_state_publisher-9999.ebuild
65 +++ b/dev-ros/robot_state_publisher/robot_state_publisher-9999.ebuild
66 @@ -11,6 +11,11 @@ DESCRIPTION="Package for publishing the state of a robot to tf"
67 LICENSE="BSD"
68 SLOT="0"
69 IUSE=""
70 +DATA="joint_states_indexed.bag"
71 +for i in ${DATA}; do
72 + SRC_URI="${SRC_URI}
73 + http://wiki.ros.org/robot_state_publisher/data?action=AttachFile&do=get&target=${i} -> ${P}-${i}"
74 +done
75
76 RDEPEND="
77 dev-ros/kdl_parser
78 @@ -30,3 +35,16 @@ RDEPEND="
79 DEPEND="${RDEPEND}
80 test? ( dev-cpp/gtest dev-ros/rostest[${PYTHON_SINGLE_USEDEP}] )
81 "
82 +
83 +src_prepare() {
84 + ros-catkin_src_prepare
85 + for i in ${DATA}; do
86 + cp "${DISTDIR}/${P}-${i}" "${S}/${i}" || die
87 + done
88 + sed -e "s#http://wiki.ros.org/robot_state_publisher/data?action=AttachFile&do=get&target=#file://${S}#" -i CMakeLists.txt || die
89 +}
90 +
91 +src_test() {
92 + export ROS_PACKAGE_PATH="${S}:${ROS_PACKAGE_PATH}"
93 + ros-catkin_src_test
94 +}