Skip to content

Commit

Permalink
dev-ros/rviz_plugin_tutorials: install ressources in /usr/share/ros_p…
Browse files Browse the repository at this point in the history
…ackages since they are expected here.

Package-Manager: portage-2.3.2
  • Loading branch information
aballier committed Oct 20, 2016
1 parent b93b648 commit 716f1f2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
24 changes: 24 additions & 0 deletions dev-ros/rviz_plugin_tutorials/files/install_loc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Install ressources in ros_packages subdir. We force catkin to install packages
there, so move them too.

Index: rviz_plugin_tutorials/CMakeLists.txt
===================================================================
--- rviz_plugin_tutorials.orig/CMakeLists.txt
+++ rviz_plugin_tutorials/CMakeLists.txt
@@ -73,13 +73,13 @@ install(TARGETS

install(FILES
plugin_description.xml
- DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
+ DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/ros_packages/${PROJECT_NAME})

install(DIRECTORY media/
- DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/media)
+ DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/ros_packages/${PROJECT_NAME}/media)

install(DIRECTORY icons/
- DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/icons)
+ DESTINATION ${CATKIN_GLOBAL_SHARE_DESTINATION}/ros_packages/${PROJECT_NAME}/icons)

install(PROGRAMS scripts/send_test_msgs.py
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -20,3 +20,4 @@ RDEPEND="
dev-qt/qtgui:4
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/install_loc.patch" )
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

Expand All @@ -20,3 +20,4 @@ RDEPEND="
dev-qt/qtgui:4
"
DEPEND="${RDEPEND}"
PATCHES=( "${FILESDIR}/install_loc.patch" )

0 comments on commit 716f1f2

Please sign in to comment.