From 13b1a7f2be3666c36b10ea84def0feedc615d237 Mon Sep 17 00:00:00 2001
From: Aurelie Clodic <aurelie.clodic@gmail.com>
Date: Fri, 20 Dec 2013 14:07:40 +0100
Subject: [PATCH] [wip/dynamic-graph-bridge] patch install to be able to use
 ros facilities

patch-ac
--------
install ros executables also in share since
ros facitilies are not able to find it in bin
for now
this issue has already been raised by ros community
(e.g.  https://github.com/ros/xacro/issues/2)
should be possible to remove the patch with Hydro version (need to be tested)
---
 dynamic-graph-bridge/PLIST            |  3 +++
 dynamic-graph-bridge/distinfo         |  1 +
 dynamic-graph-bridge/patches/patch-ac | 24 ++++++++++++++++++++++++
 3 files changed, 28 insertions(+)
 create mode 100644 dynamic-graph-bridge/patches/patch-ac

diff --git a/dynamic-graph-bridge/PLIST b/dynamic-graph-bridge/PLIST
index c860da8c..b43b6e5d 100644
--- a/dynamic-graph-bridge/PLIST
+++ b/dynamic-graph-bridge/PLIST
@@ -13,6 +13,9 @@ include/dynamic_graph_bridge/warning.hh
 lib/dynamic_graph_bridge/robot_pose_publisher
 lib/dynamic_graph_bridge/run_command
 lib/dynamic_graph_bridge/tf_publisher
+share/dynamic_graph_bridge/robot_pose_publisher
+share/dynamic_graph_bridge/run_command
+share/dynamic_graph_bridge/tf_publisher
 lib/librobot_model.so
 lib/libros_bridge.so
 lib/libros_interpreter.so
diff --git a/dynamic-graph-bridge/distinfo b/dynamic-graph-bridge/distinfo
index 1b603130..e98f04e2 100644
--- a/dynamic-graph-bridge/distinfo
+++ b/dynamic-graph-bridge/distinfo
@@ -3,3 +3,4 @@ RMD160 (dynamic_graph_bridge-1.0.0.tar.gz) = 9c55c95353479bda4b5e3cde79790c18788
 Size (dynamic_graph_bridge-1.0.0.tar.gz) = 101838 bytes
 SHA1 (patch-aa) = 9b131ca3ce53dc8bbe54aa94cd301ddb45d49897
 SHA1 (patch-ab) = acf1b743f11302c2123a49febbe48c4e53be3ef4
+SHA1 (patch-ac) = 5d5cd10313d9f5e5195c8f6f2314e84eae094eaf
diff --git a/dynamic-graph-bridge/patches/patch-ac b/dynamic-graph-bridge/patches/patch-ac
new file mode 100644
index 00000000..3977a272
--- /dev/null
+++ b/dynamic-graph-bridge/patches/patch-ac
@@ -0,0 +1,24 @@
+install ros executables also in share since
+ros facitilies are not able to find it in bin
+for now
+this issue has already been raised by ros community
+(e.g.  https://github.com/ros/xacro/issues/2)
+should be possible to remove the patch with Hydro version (need to be tested)
+
+--- CMakeLists.txt-old	2013-12-20 13:22:01.741374000 +0100
++++ CMakeLists.txt	2013-12-20 13:23:06.659322000 +0100
+@@ -161,5 +161,14 @@
+   ${CMAKE_SOURCE_DIR}/scripts/tf_publisher
+   DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
+   )
++#install ros executables also in share since
++# ros facitilies are not able to find it in bin
++# for now
++install(PROGRAMS
++  ${CMAKE_SOURCE_DIR}/scripts/robot_pose_publisher
++  ${CMAKE_SOURCE_DIR}/scripts/run_command
++  ${CMAKE_SOURCE_DIR}/scripts/tf_publisher
++  DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
++  )
+ SETUP_PROJECT_FINALIZE()
+ 
-- 
GitLab