dev-ros/urdf: append-cxxflags -std=gnu++11. Fixes build with gcc 5. Bug #604960.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 7 Jan 2017 18:11:40 +0000 (19:11 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sat, 7 Jan 2017 18:11:48 +0000 (19:11 +0100)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

dev-ros/urdf/urdf-1.12.6.ebuild

index ce8d3c0baed6235b5484b6d34c610271b3648538..8ad9688b02c1fec692a37b5c13c13a74cb9817d8 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"
@@ -28,3 +28,8 @@ RDEPEND="
 DEPEND="${RDEPEND}
        dev-ros/cmake_modules
        test? ( dev-ros/rostest[${PYTHON_USEDEP}] dev-cpp/gtest )"
+
+src_prepare() {
+       append-cxxflags -std=gnu++11
+       ros-catkin_src_prepare
+}