git: 93b63f894374 - main - devel/cppcheck: update 2.9.3 → 2.10

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 31 Jan 2023 16:13:20 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=93b63f894374deb2f29d0d12f154610f26bfbcf2

commit 93b63f894374deb2f29d0d12f154610f26bfbcf2
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2023-01-30 17:09:40 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2023-01-31 16:12:51 +0000

    devel/cppcheck: update 2.9.3 → 2.10
---
 devel/cppcheck/Makefile                                       |  5 +++--
 devel/cppcheck/distinfo                                       |  6 +++---
 devel/cppcheck/files/patch-cli_CMakeLists.txt                 | 11 -----------
 devel/cppcheck/files/patch-gui_CMakeLists.txt                 |  9 ---------
 .../files/patch-gui_test_benchmark_simple_CMakeLists.txt      | 11 -----------
 .../cppcheck/files/patch-gui_test_xmlreportv2_CMakeLists.txt  |  9 ---------
 devel/cppcheck/files/patch-lib_CMakeLists.txt                 | 11 -----------
 devel/cppcheck/files/patch-oss-fuzz_CMakeLists.txt            | 11 -----------
 devel/cppcheck/files/patch-test_CMakeLists.txt                | 11 -----------
 9 files changed, 6 insertions(+), 78 deletions(-)

diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile
index c577e143b712..816d00e3e231 100644
--- a/devel/cppcheck/Makefile
+++ b/devel/cppcheck/Makefile
@@ -1,10 +1,11 @@
 PORTNAME=	cppcheck
-PORTVERSION=	2.9.3
+PORTVERSION=	2.10
 CATEGORIES=	devel
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	Tool for static C/C++ code analysis
-WWW=		https://cppcheck.sourceforge.io/
+WWW=		https://cppcheck.sourceforge.io/ \
+		https://github.com/danmar/cppcheck
 
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/COPYING
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo
index e72a1d440397..7e0d3762d4ae 100644
--- a/devel/cppcheck/distinfo
+++ b/devel/cppcheck/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1669218988
-SHA256 (danmar-cppcheck-2.9.3_GH0.tar.gz) = 46319ca73e33e4b2bd91981a76a0d4f184cd3f86b62dc18e8938eabacd3ad2e3
-SIZE (danmar-cppcheck-2.9.3_GH0.tar.gz) = 3918291
+TIMESTAMP = 1675081481
+SHA256 (danmar-cppcheck-2.10_GH0.tar.gz) = 785dcbf711048dfe43ae920b6eff2eeebb4a096e88188a40e173ca4c030f57c3
+SIZE (danmar-cppcheck-2.10_GH0.tar.gz) = 3442586
diff --git a/devel/cppcheck/files/patch-cli_CMakeLists.txt b/devel/cppcheck/files/patch-cli_CMakeLists.txt
deleted file mode 100644
index 76469f8fbc4f..000000000000
--- a/devel/cppcheck/files/patch-cli_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- cli/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ cli/CMakeLists.txt
-@@ -37,7 +37,7 @@ if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
-     endif()
- endif()
- if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--    target_link_libraries(cppcheck ${tinyxml2_LIBRARIES})
-+    target_link_libraries(cppcheck tinyxml2::tinyxml2)
- endif()
- target_link_libraries(cppcheck ${CMAKE_THREAD_LIBS_INIT})
- 
diff --git a/devel/cppcheck/files/patch-gui_CMakeLists.txt b/devel/cppcheck/files/patch-gui_CMakeLists.txt
index 48bfc79062c7..eff3eece7257 100644
--- a/devel/cppcheck/files/patch-gui_CMakeLists.txt
+++ b/devel/cppcheck/files/patch-gui_CMakeLists.txt
@@ -1,14 +1,5 @@
 --- gui/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
 +++ gui/CMakeLists.txt
-@@ -34,7 +34,7 @@ if (BUILD_GUI)
-         target_link_libraries(cppcheck-gui ${PCRE_LIBRARY})
-     endif()
-     if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--        target_link_libraries(cppcheck-gui ${tinyxml2_LIBRARIES})
-+        target_link_libraries(cppcheck-gui tinyxml2::tinyxml2)
-     endif()
-     target_link_libraries(cppcheck-gui ${QT_CORE_LIB} ${QT_GUI_LIB} ${QT_WIDGETS_LIB} ${QT_PRINTSUPPORT_LIB} ${QT_HELP_LIB})
-     if(WITH_QCHART)
 @@ -49,7 +49,7 @@ if (BUILD_GUI)
      endif()
  
diff --git a/devel/cppcheck/files/patch-gui_test_benchmark_simple_CMakeLists.txt b/devel/cppcheck/files/patch-gui_test_benchmark_simple_CMakeLists.txt
deleted file mode 100644
index 0bc2b678c1ca..000000000000
--- a/devel/cppcheck/files/patch-gui_test_benchmark_simple_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- gui/test/benchmark/simple/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ gui/test/benchmark/simple/CMakeLists.txt
-@@ -17,7 +17,7 @@ if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
-     target_link_libraries(benchmark-simple ${PCRE_LIBRARY})
- endif()
- if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--    target_link_libraries(benchmark-simple ${tinyxml2_LIBRARIES})
-+    target_link_libraries(benchmark-simple tinyxml2::tinyxml2)
- endif()
- 
- if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
diff --git a/devel/cppcheck/files/patch-gui_test_xmlreportv2_CMakeLists.txt b/devel/cppcheck/files/patch-gui_test_xmlreportv2_CMakeLists.txt
deleted file mode 100644
index de51aaf9da44..000000000000
--- a/devel/cppcheck/files/patch-gui_test_xmlreportv2_CMakeLists.txt
+++ /dev/null
@@ -1,9 +0,0 @@
---- gui/test/xmlreportv2/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ gui/test/xmlreportv2/CMakeLists.txt
-@@ -21,5 +21,5 @@ if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
-     target_link_libraries(test-xmlreportv2 ${PCRE_LIBRARY})
- endif()
- if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--    target_link_libraries(test-xmlreportv2 ${tinyxml2_LIBRARIES})
-+    target_link_libraries(test-xmlreportv2 tinyxml2::tinyxml2)
- endif()
diff --git a/devel/cppcheck/files/patch-lib_CMakeLists.txt b/devel/cppcheck/files/patch-lib_CMakeLists.txt
deleted file mode 100644
index b3bf45f144a5..000000000000
--- a/devel/cppcheck/files/patch-lib_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ lib/CMakeLists.txt
-@@ -36,6 +36,8 @@ if(USE_BUNDLED_TINYXML2)
- target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/)
- if(USE_BUNDLED_TINYXML2)
-     target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/tinyxml2/)
-+else()
-+    target_link_libraries(lib_objs PRIVATE tinyxml2::tinyxml2)
- endif()
- target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/picojson/)
- target_include_directories(lib_objs SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/externals/simplecpp/)
diff --git a/devel/cppcheck/files/patch-oss-fuzz_CMakeLists.txt b/devel/cppcheck/files/patch-oss-fuzz_CMakeLists.txt
deleted file mode 100644
index cb5b20f0ca8f..000000000000
--- a/devel/cppcheck/files/patch-oss-fuzz_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- oss-fuzz/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ oss-fuzz/CMakeLists.txt
-@@ -22,7 +22,7 @@ if (ENABLE_OSS_FUZZ AND CMAKE_CXX_COMPILER_ID MATCHES 
-         target_link_libraries(fuzz-client PRIVATE ${PCRE_LIBRARY})
-     endif()
-     if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--        target_link_libraries(fuzz-client PRIVATE ${tinyxml2_LIBRARIES})
-+        target_link_libraries(fuzz-client PRIVATE tinyxml2::tinyxml2)
-     endif()
- 
-     add_executable(translate EXCLUDE_FROM_ALL
diff --git a/devel/cppcheck/files/patch-test_CMakeLists.txt b/devel/cppcheck/files/patch-test_CMakeLists.txt
deleted file mode 100644
index 7ad2144b350f..000000000000
--- a/devel/cppcheck/files/patch-test_CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
---- test/CMakeLists.txt.orig	2022-08-28 12:43:18 UTC
-+++ test/CMakeLists.txt
-@@ -23,7 +23,7 @@ if (BUILD_TESTS)
-         endif()
-     endif()
-     if(tinyxml2_FOUND AND NOT USE_BUNDLED_TINYXML2)
--        target_link_libraries(testrunner ${tinyxml2_LIBRARIES})
-+        target_link_libraries(testrunner tinyxml2::tinyxml2)
-     endif()
-     target_link_libraries(testrunner ${CMAKE_THREAD_LIBS_INIT})
-