blob: 2cc8912dd83a18ca618ffb5b14e987c7c9344926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
ROS_REPO_URI="https://github.com/ros/ros_comm"
KEYWORDS="~amd64 ~arm"
ROS_SUBDIR=tools/${PN}
inherit ros-catkin
DESCRIPTION="Tool for easily launching multiple ROS nodes"
LICENSE="BSD"
SLOT="0"
CDEPEND="
dev-ros/roslib[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep "dev-python/rospkg[\${PYTHON_USEDEP}]")
dev-ros/rosclean[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep "dev-python/pyyaml[\${PYTHON_USEDEP}]")
dev-ros/rosgraph_msgs[${CATKIN_MESSAGES_PYTHON_USEDEP}]
dev-ros/rosparam[${PYTHON_SINGLE_USEDEP}]
dev-ros/rosmaster[${PYTHON_SINGLE_USEDEP}]
dev-ros/rosout
"
RDEPEND="
${CDEPEND}
acct-group/ros
acct-user/ros
"
DEPEND="
${CDEPEND}
test? (
$(python_gen_cond_dep "dev-util/rosdep[\${PYTHON_USEDEP}]")
$(python_gen_cond_dep "dev-python/nose[\${PYTHON_USEDEP}]")
dev-ros/test_rosmaster
)"
src_test() {
export ROS_PACKAGE_PATH="${S}:${S}/../rosmaster/:${EPREFIX}/usr/share/ros_packages/rosparam:${EPREFIX}/usr/share/ros_packages/roslib:${EPREFIX}/usr/share/ros_packages/rosout"
ros-catkin_src_test
}
src_install() {
ros-catkin_src_install
dodir /etc/ros
sed -e "s/@PKG_VERSION@/${PV}/" "${FILESDIR}/roscore.xml.in" > "${ED}/etc/ros/roscore.xml" || die
newinitd "${FILESDIR}/roscore.initd" roscore
newconfd "${FILESDIR}/roscore.confd" roscore
newinitd "${FILESDIR}/roslaunch.initd" roslaunch
newconfd "${FILESDIR}/roslaunch.confd" roslaunch
doenvd "${FILESDIR}/40roslaunch"
# Needed by test_roslaunch
insinto /usr/share/${PN}
doins test/xml/noop.launch
}
|