dev-ros/amcl: fix build with latest cmake
authorAlexis Ballier <aballier@gentoo.org>
Wed, 11 Dec 2019 15:32:45 +0000 (16:32 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Wed, 11 Dec 2019 16:12:26 +0000 (17:12 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Alexis Ballier <aballier@gentoo.org>
dev-ros/amcl/amcl-1.16.3.ebuild
dev-ros/amcl/files/cmake.patch [new file with mode: 0644]

index 61525256fd5486c052c4352d487cbeab9ae99a0c..f83edae6cd3d427d35bdfc12297575eb86588653 100644 (file)
@@ -31,3 +31,4 @@ RDEPEND="
 DEPEND="${RDEPEND}
        test? ( dev-ros/rostest[${PYTHON_USEDEP}] dev-python/python_orocos_kdl[${PYTHON_USEDEP}] dev-ros/map_server[${PYTHON_USEDEP}] )
 "
+PATCHES=( "${FILESDIR}/cmake.patch" )
diff --git a/dev-ros/amcl/files/cmake.patch b/dev-ros/amcl/files/cmake.patch
new file mode 100644 (file)
index 0000000..4ae8171
--- /dev/null
@@ -0,0 +1,11 @@
+Index: amcl/CMakeLists.txt
+===================================================================
+--- amcl.orig/CMakeLists.txt
++++ amcl/CMakeLists.txt
+@@ -1,5 +1,6 @@
+ cmake_minimum_required(VERSION 3.1)
+ project(amcl)
++include(CheckSymbolExists)
+ if(NOT CMAKE_CXX_STANDARD)
+   set(CMAKE_CXX_STANDARD 11)