git: ee37add5b3e8 - main - devel/cppcheck: update 2.14.2 → 2.15.0

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Mon, 02 Sep 2024 20:02:07 UTC
The branch main has been updated by amdmi3:

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

commit ee37add5b3e842f3ac19d38f904f48e8558a8811
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-09-02 20:01:29 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-09-02 20:01:59 +0000

    devel/cppcheck: update 2.14.2 → 2.15.0
---
 devel/cppcheck/Makefile                       |  2 +-
 devel/cppcheck/distinfo                       |  6 +++---
 devel/cppcheck/files/patch-CMakeLists.txt     | 10 +++++-----
 devel/cppcheck/files/patch-cli_CMakeLists.txt | 23 +++++++++++++++++++++++
 4 files changed, 32 insertions(+), 9 deletions(-)

diff --git a/devel/cppcheck/Makefile b/devel/cppcheck/Makefile
index 3a6606ba94a6..26d523baf36f 100644
--- a/devel/cppcheck/Makefile
+++ b/devel/cppcheck/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	cppcheck
-DISTVERSION=	2.14.2
+DISTVERSION=	2.15.0
 CATEGORIES=	devel
 
 MAINTAINER=	amdmi3@FreeBSD.org
diff --git a/devel/cppcheck/distinfo b/devel/cppcheck/distinfo
index 813e305d290e..387f9aeab83f 100644
--- a/devel/cppcheck/distinfo
+++ b/devel/cppcheck/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1719238315
-SHA256 (danmar-cppcheck-2.14.2_GH0.tar.gz) = 9c3acea5f489336bd83a8ea33917a9a04a80c56d874bf270287e7de27acf2d00
-SIZE (danmar-cppcheck-2.14.2_GH0.tar.gz) = 3723248
+TIMESTAMP = 1725071876
+SHA256 (danmar-cppcheck-2.15.0_GH0.tar.gz) = 98bcc40ac8062635b492fb096d7815376a176ae26749d6c708083f4637f7c0bb
+SIZE (danmar-cppcheck-2.15.0_GH0.tar.gz) = 3820560
diff --git a/devel/cppcheck/files/patch-CMakeLists.txt b/devel/cppcheck/files/patch-CMakeLists.txt
index 2a0447f44305..b216425a943c 100644
--- a/devel/cppcheck/files/patch-CMakeLists.txt
+++ b/devel/cppcheck/files/patch-CMakeLists.txt
@@ -1,11 +1,11 @@
---- CMakeLists.txt.orig	2024-04-20 18:31:07 UTC
+--- CMakeLists.txt.orig	2024-08-31 14:09:43 UTC
 +++ CMakeLists.txt
-@@ -3,7 +3,7 @@ cmake_policy(SET CMP0048 NEW) # allow VERSION in proje
+@@ -2,7 +2,7 @@ endif()
+ if(MSVC)
      cmake_minimum_required(VERSION 3.13)
  endif()
- cmake_policy(SET CMP0048 NEW) # allow VERSION in project()
--project(Cppcheck VERSION 2.13.99 LANGUAGES CXX)
-+project(cppcheck VERSION 2.13.99 LANGUAGES CXX)
+-project(Cppcheck VERSION 2.15.0 LANGUAGES CXX)
++project(cppcheck VERSION 2.15.0 LANGUAGES CXX)
  
  include(cmake/cxx11.cmake)
  use_cxx11()
diff --git a/devel/cppcheck/files/patch-cli_CMakeLists.txt b/devel/cppcheck/files/patch-cli_CMakeLists.txt
new file mode 100644
index 000000000000..f03f4baf5439
--- /dev/null
+++ b/devel/cppcheck/files/patch-cli_CMakeLists.txt
@@ -0,0 +1,23 @@
+--- cli/CMakeLists.txt.orig	2024-08-31 14:09:43 UTC
++++ cli/CMakeLists.txt
+@@ -75,15 +75,15 @@ if (BUILD_CLI)
+         COMPONENT applications)
+ 
+     install(FILES ${addons}
+-       DESTINATION ${FILESDIR}/addons
++       DESTINATION ${FILESDIR_DEF}/addons
+        COMPONENT headers)
+ 
+     install(FILES ${cfgs}
+-       DESTINATION ${FILESDIR}/cfg
++       DESTINATION ${FILESDIR_DEF}/cfg
+        COMPONENT headers)
+ 
+     install(FILES ${platforms}
+-       DESTINATION ${FILESDIR}/platforms
++       DESTINATION ${FILESDIR_DEF}/platforms
+        COMPONENT headers)
+ 
+-endif()
+\ No newline at end of file
++endif()