dev-ros/urdf: fix build with urdfdom 1, add := dep on it.
authorAlexis Ballier <aballier@gentoo.org>
Tue, 26 Jul 2016 07:08:24 +0000 (09:08 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Tue, 26 Jul 2016 09:18:30 +0000 (11:18 +0200)
Package-Manager: portage-2.3.0

dev-ros/urdf/files/urdfdom1.patch [new file with mode: 0644]
dev-ros/urdf/urdf-1.12.3-r1.ebuild [moved from dev-ros/urdf/urdf-1.12.3.ebuild with 73% similarity]

diff --git a/dev-ros/urdf/files/urdfdom1.patch b/dev-ros/urdf/files/urdfdom1.patch
new file mode 100644 (file)
index 0000000..aa1d31c
--- /dev/null
@@ -0,0 +1,13 @@
+Index: urdf/src/model.cpp
+===================================================================
+--- urdf.orig/src/model.cpp
++++ urdf/src/model.cpp
+@@ -136,7 +136,7 @@ bool Model::initXml(TiXmlElement *robot_
+ bool Model::initString(const std::string& xml_string)
+ {
+-  boost::shared_ptr<ModelInterface> model;
++  std::shared_ptr<ModelInterface> model;
+   // necessary for COLLADA compatibility
+   if( IsColladaData(xml_string) ) {
similarity index 73%
rename from dev-ros/urdf/urdf-1.12.3.ebuild
rename to dev-ros/urdf/urdf-1.12.3-r1.ebuild
index e6cb39f0afa66f701bd7bc17ae5bcd7a4136266d..eb2263d99d4d9b6d9308121b7b03a64f2d195960 100644 (file)
@@ -8,7 +8,7 @@ KEYWORDS="~amd64 ~arm"
 ROS_SUBDIR=${PN}
 PYTHON_COMPAT=( python2_7 )
 
-inherit ros-catkin
+inherit ros-catkin flag-o-matic
 
 DESCRIPTION="C++ parser for the Unified Robot Description Format (URDF)"
 LICENSE="BSD"
@@ -17,9 +17,9 @@ IUSE=""
 
 RDEPEND="
        dev-libs/boost:=[threads]
-       dev-libs/urdfdom
+       >=dev-libs/urdfdom-1
        dev-libs/urdfdom_headers
-       dev-ros/urdf_parser_plugin
+       >=dev-ros/urdf_parser_plugin-1.12.3-r1
        dev-ros/pluginlib
        dev-ros/rosconsole_bridge
        dev-ros/roscpp
@@ -28,3 +28,9 @@ RDEPEND="
 DEPEND="${RDEPEND}
        dev-ros/cmake_modules
        test? ( dev-ros/rostest[${PYTHON_USEDEP}] dev-cpp/gtest )"
+PATCHES=( "${FILESDIR}/urdfdom1.patch" )
+
+src_configure() {
+       append-cxxflags -std=c++11
+       ros-catkin_src_configure
+}