Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ros/urdf/files/, dev-ros/urdf/
Date: Tue, 26 Jul 2016 09:25:11
Message-Id: 1469524710.291d58be3f46b4c15ba54f5e53a189676e3b73a1.aballier@gentoo
1 commit: 291d58be3f46b4c15ba54f5e53a189676e3b73a1
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 26 07:08:24 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 26 09:18:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=291d58be
7
8 dev-ros/urdf: fix build with urdfdom 1, add := dep on it.
9
10 Package-Manager: portage-2.3.0
11
12 dev-ros/urdf/files/urdfdom1.patch | 13 +++++++++++++
13 dev-ros/urdf/{urdf-1.12.3.ebuild => urdf-1.12.3-r1.ebuild} | 12 +++++++++---
14 2 files changed, 22 insertions(+), 3 deletions(-)
15
16 diff --git a/dev-ros/urdf/files/urdfdom1.patch b/dev-ros/urdf/files/urdfdom1.patch
17 new file mode 100644
18 index 0000000..aa1d31c
19 --- /dev/null
20 +++ b/dev-ros/urdf/files/urdfdom1.patch
21 @@ -0,0 +1,13 @@
22 +Index: urdf/src/model.cpp
23 +===================================================================
24 +--- urdf.orig/src/model.cpp
25 ++++ urdf/src/model.cpp
26 +@@ -136,7 +136,7 @@ bool Model::initXml(TiXmlElement *robot_
27 +
28 + bool Model::initString(const std::string& xml_string)
29 + {
30 +- boost::shared_ptr<ModelInterface> model;
31 ++ std::shared_ptr<ModelInterface> model;
32 +
33 + // necessary for COLLADA compatibility
34 + if( IsColladaData(xml_string) ) {
35
36 diff --git a/dev-ros/urdf/urdf-1.12.3.ebuild b/dev-ros/urdf/urdf-1.12.3-r1.ebuild
37 similarity index 73%
38 rename from dev-ros/urdf/urdf-1.12.3.ebuild
39 rename to dev-ros/urdf/urdf-1.12.3-r1.ebuild
40 index e6cb39f..eb2263d 100644
41 --- a/dev-ros/urdf/urdf-1.12.3.ebuild
42 +++ b/dev-ros/urdf/urdf-1.12.3-r1.ebuild
43 @@ -8,7 +8,7 @@ KEYWORDS="~amd64 ~arm"
44 ROS_SUBDIR=${PN}
45 PYTHON_COMPAT=( python2_7 )
46
47 -inherit ros-catkin
48 +inherit ros-catkin flag-o-matic
49
50 DESCRIPTION="C++ parser for the Unified Robot Description Format (URDF)"
51 LICENSE="BSD"
52 @@ -17,9 +17,9 @@ IUSE=""
53
54 RDEPEND="
55 dev-libs/boost:=[threads]
56 - dev-libs/urdfdom
57 + >=dev-libs/urdfdom-1
58 dev-libs/urdfdom_headers
59 - dev-ros/urdf_parser_plugin
60 + >=dev-ros/urdf_parser_plugin-1.12.3-r1
61 dev-ros/pluginlib
62 dev-ros/rosconsole_bridge
63 dev-ros/roscpp
64 @@ -28,3 +28,9 @@ RDEPEND="
65 DEPEND="${RDEPEND}
66 dev-ros/cmake_modules
67 test? ( dev-ros/rostest[${PYTHON_USEDEP}] dev-cpp/gtest )"
68 +PATCHES=( "${FILESDIR}/urdfdom1.patch" )
69 +
70 +src_configure() {
71 + append-cxxflags -std=c++11
72 + ros-catkin_src_configure
73 +}