diff options
author | Alexis Ballier <aballier@gentoo.org> | 2020-08-04 17:52:55 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2020-08-04 18:00:19 +0200 |
commit | 1375a32be0bc4bdc377177c4e00b6a38b00992da (patch) | |
tree | 86793ab621a7b6af02b9281bc300ed0b98c5dbdb /dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild | |
parent | dev-python/rospkg: Remove old (diff) | |
download | gentoo-1375a32be0bc4bdc377177c4e00b6a38b00992da.tar.gz gentoo-1375a32be0bc4bdc377177c4e00b6a38b00992da.tar.bz2 gentoo-1375a32be0bc4bdc377177c4e00b6a38b00992da.zip |
dev-ros/roslaunch: set ROS_DISTRO too
Bug: https://bugs.gentoo.org/734722
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
Diffstat (limited to 'dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild')
-rw-r--r-- | dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild b/dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild new file mode 100644 index 000000000000..b0c3d9412aae --- /dev/null +++ b/dev-ros/roslaunch/roslaunch-1.15.8-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2020 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 user + +DESCRIPTION="Tool for easily launching multiple ROS nodes" +LICENSE="BSD" +SLOT="0" +IUSE="" + +RDEPEND=" + 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 +" +DEPEND="${RDEPEND} + 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 +} + +pkg_preinst() { + enewgroup ros + enewuser ros -1 -1 /home/ros ros +} |