forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST ros_comm-1.12.6.tar.gz 967763 SHA256 8585d952b1168d2011949b38c68160180b1f3ee1648a506bcb5989f9807335ca SHA512 1987c6362ae0c7c019a226223c73a7aefdc14a3fc66469ab6cdf9c41e9efdf4d7b7d4932af2a52f2082d716342a307b2e415c0ab45f77dfd9a7c1e4274deab5c WHIRLPOOL a719bb81da6b1b7e2f253d3bf6c8db8339333b4fa7f89a18d0fa734e9ff1700e1dac7b537f154015b4ada7455a6673c1715a89e2fdd3da9bbbb70081fc2943cd | ||
DIST ros_comm-1.12.7.tar.gz 974568 SHA256 4c141270c9263ba1ceb0d510f9d17bfe229530a277bfe10762e88d25f46efd38 SHA512 7cfc5bf231e8e388102f192d46bd902a2b92d4620938379b362efd250c48f317f5ba6e0aee7398c841392f56c2b79f933ad5ec60eb69492add90fa2ca86a3a8f WHIRLPOOL 7537aa5b781b3426cbaa82bdb07b117045efc3f748af7413e6b52ee63f3b401e403966afb1ea305674a5613f6a191f0afa098ad16e63267ad2ec8e3117996eb0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
ROS_REPO_URI="https://github.com/ros/ros_comm" | ||
KEYWORDS="~amd64 ~arm" | ||
ROS_SUBDIR=tools/${PN} | ||
PYTHON_COMPAT=( python{2_7,3_4,3_5} ) | ||
|
||
inherit ros-catkin user | ||
|
||
DESCRIPTION="Tool for easily launching multiple ROS nodes" | ||
LICENSE="BSD" | ||
SLOT="0" | ||
IUSE="" | ||
|
||
RDEPEND=" | ||
dev-ros/roslib[${PYTHON_USEDEP}] | ||
dev-python/rospkg[${PYTHON_USEDEP}] | ||
dev-ros/rosclean[${PYTHON_USEDEP}] | ||
dev-python/pyyaml[${PYTHON_USEDEP}] | ||
dev-ros/rosgraph_msgs[${CATKIN_MESSAGES_PYTHON_USEDEP}] | ||
dev-ros/rosparam[${PYTHON_USEDEP}] | ||
dev-ros/rosmaster[${PYTHON_USEDEP}] | ||
dev-ros/rosout | ||
" | ||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-util/rosdep[${PYTHON_USEDEP}] | ||
dev-python/nose[${PYTHON_USEDEP}] | ||
dev-ros/test_rosmaster | ||
)" | ||
PATCHES=( "${FILESDIR}/timeout.patch" ) | ||
|
||
src_test() { | ||
rosdep update | ||
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 | ||
} |