commit:     df621ad3b75dc50e7682c3090903c6d1ef8929e0
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 13:24:14 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Aug 24 13:44:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df621ad3

dev-ros/geometric_shapes: use c++17

Closes: https://bugs.gentoo.org/738556
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ros/geometric_shapes/geometric_shapes-0.7.0.ebuild | 8 ++++++++
 dev-ros/geometric_shapes/geometric_shapes-9999.ebuild  | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/dev-ros/geometric_shapes/geometric_shapes-0.7.0.ebuild 
b/dev-ros/geometric_shapes/geometric_shapes-0.7.0.ebuild
index 043a80b16c9..6fed36fb482 100644
--- a/dev-ros/geometric_shapes/geometric_shapes-0.7.0.ebuild
+++ b/dev-ros/geometric_shapes/geometric_shapes-0.7.0.ebuild
@@ -28,3 +28,11 @@ DEPEND="${RDEPEND}
        dev-ros/shape_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
        test? ( dev-cpp/gtest dev-ros/rosunit )
 "
+
+src_prepare() {
+       ros-catkin_src_prepare
+       # https://bugs.gentoo.org/738556
+       # 
http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html
+       append-cxxflags '-std=c++17'
+       sed -e 's/add_compile_options(/#\0/g' -i CMakeLists.txt || die
+}

diff --git a/dev-ros/geometric_shapes/geometric_shapes-9999.ebuild 
b/dev-ros/geometric_shapes/geometric_shapes-9999.ebuild
index 043a80b16c9..6fed36fb482 100644
--- a/dev-ros/geometric_shapes/geometric_shapes-9999.ebuild
+++ b/dev-ros/geometric_shapes/geometric_shapes-9999.ebuild
@@ -28,3 +28,11 @@ DEPEND="${RDEPEND}
        dev-ros/shape_msgs[${CATKIN_MESSAGES_CXX_USEDEP}]
        test? ( dev-cpp/gtest dev-ros/rosunit )
 "
+
+src_prepare() {
+       ros-catkin_src_prepare
+       # https://bugs.gentoo.org/738556
+       # 
http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html
+       append-cxxflags '-std=c++17'
+       sed -e 's/add_compile_options(/#\0/g' -i CMakeLists.txt || die
+}

Reply via email to