git: 2b82f0b7c5cd - main - devel/cppcheck: update 2.10.3 → 2.12.1

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 26 Sep 2023 19:39:38 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2b82f0b7c5cdf3c071f104c0f1aa5c1f18945b40

commit 2b82f0b7c5cdf3c071f104c0f1aa5c1f18945b40
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2023-09-26 18:33:58 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2023-09-26 19:35:09 +0000

    devel/cppcheck: update 2.10.3 → 2.12.1
---
 devel/cppcheck/Makefile                      |  2 +-
 devel/cppcheck/distinfo                      |  6 +++---
 devel/cppcheck/files/patch-CMakeLists.txt    |  6 +++---
 devel/cppcheck/files/patch-test_testpath.cpp | 14 ++++++++++++++
 4 files changed, 21 insertions(+), 7 deletions(-)

diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile
index 5065e238bf84..a5bcfcf64dc3 100644
--- a/devel/cppcheck/Makefile
+++ b/devel/cppcheck/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cppcheck
-PORTVERSION=	2.10.3
+PORTVERSION=	2.12.1
 CATEGORIES=	devel
 
 MAINTAINER=	amdmi3@FreeBSD.org
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo
index 2b41c893c8dd..0d6560fcceb6 100644
--- a/devel/cppcheck/distinfo
+++ b/devel/cppcheck/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1679426311
-SHA256 (danmar-cppcheck-2.10.3_GH0.tar.gz) = 8aae5e116daeaaf5d19f3efa61b91c06f161cb97412a1d1af6e1e20686e48967
-SIZE (danmar-cppcheck-2.10.3_GH0.tar.gz) = 3447010
+TIMESTAMP = 1695753260
+SHA256 (danmar-cppcheck-2.12.1_GH0.tar.gz) = 2a3d4ba1179419612183ab3d6aed6d3b18be75e98cd6f138ea8e2020905dced2
+SIZE (danmar-cppcheck-2.12.1_GH0.tar.gz) = 3579702
diff --git a/devel/cppcheck/files/patch-CMakeLists.txt b/devel/cppcheck/files/patch-CMakeLists.txt
index 71a0b515cdb8..c09aa766944f 100644
--- a/devel/cppcheck/files/patch-CMakeLists.txt
+++ b/devel/cppcheck/files/patch-CMakeLists.txt
@@ -1,9 +1,9 @@
---- CMakeLists.txt.orig	2020-05-10 09:31:19 UTC
+--- CMakeLists.txt.orig	2023-06-22 09:07:56 UTC
 +++ CMakeLists.txt
 @@ -1,5 +1,5 @@
  cmake_minimum_required(VERSION 2.8.12)
 -project(Cppcheck)
 +project(cppcheck)
  
- set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
- 
+ include(cmake/cxx11.cmake)
+ use_cxx11()
diff --git a/devel/cppcheck/files/patch-test_testpath.cpp b/devel/cppcheck/files/patch-test_testpath.cpp
new file mode 100644
index 000000000000..2b21c01bc0d4
--- /dev/null
+++ b/devel/cppcheck/files/patch-test_testpath.cpp
@@ -0,0 +1,14 @@
+This test requires /proc to be mounted
+
+--- test/testpath.cpp.orig	2023-06-22 09:07:56 UTC
++++ test/testpath.cpp
+@@ -74,7 +74,9 @@ class TestPath : public TestFixture { (private)
+     }
+ 
+     void getCurrentExecutablePath() const {
++#ifndef __FreeBSD__
+         ASSERT_EQUALS(false, Path::getCurrentExecutablePath("").empty());
++#endif
+     }
+ 
+     void isAbsolute() const {