git: fd2c612f52b8 - main - devel/cmake-core: backport boost-1.88+ support from upstream (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Mon, 15 Sep 2025 11:15:39 UTC
The branch main has been updated by fluffy:

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

commit fd2c612f52b830696cc7595aa6163d533eb258be
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-09-15 11:12:38 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-15 11:15:33 +0000

    devel/cmake-core: backport boost-1.88+ support from upstream (+)
    
    Also track conversion Boost.system from library to header-only after 1.70 release
    
    Prepare to boost-1.89 landing to the portstree
---
 devel/cmake-core/Makefile                            | 4 ++++
 devel/cmake-core/distinfo                            | 4 +++-
 devel/cmake-core/files/patch-Modules_FindBoost.cmake | 9 +++++++++
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/devel/cmake-core/Makefile b/devel/cmake-core/Makefile
index f6dead9a0794..533042192c3b 100644
--- a/devel/cmake-core/Makefile
+++ b/devel/cmake-core/Makefile
@@ -1,8 +1,12 @@
 PORTNAME=	cmake
 DISTVERSION=	${_CMAKE_VERSION}
+PORTREVISION=	1
 CATEGORIES=	devel
 PKGNAMESUFFIX=	-core
 
+PATCH_SITES+=	https://github.com/Kitware/CMake/commit/
+PATCHFILES+=	2bb8c6aec74bb658b9ef7b8b3c8db75f2fb6c2b5.diff:-p1
+
 MAINTAINER=	kde@FreeBSD.org
 COMMENT=	Cross-platform Makefile generator
 WWW=		https://www.cmake.org/
diff --git a/devel/cmake-core/distinfo b/devel/cmake-core/distinfo
index 38d638c4dcd0..e549f05c67f0 100644
--- a/devel/cmake-core/distinfo
+++ b/devel/cmake-core/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1746076226
+TIMESTAMP = 1753273999
 SHA256 (cmake-3.31.7.tar.gz) = a6d2eb1ebeb99130dfe63ef5a340c3fdb11431cce3d7ca148524c125924cea68
 SIZE (cmake-3.31.7.tar.gz) = 11711975
+SHA256 (2bb8c6aec74bb658b9ef7b8b3c8db75f2fb6c2b5.diff) = 7c9b2bbb3c95aff4649c884ba31114ac0a177d512ef6a0684e30ff275383a676
+SIZE (2bb8c6aec74bb658b9ef7b8b3c8db75f2fb6c2b5.diff) = 2912
diff --git a/devel/cmake-core/files/patch-Modules_FindBoost.cmake b/devel/cmake-core/files/patch-Modules_FindBoost.cmake
index ffff3ae66b4c..548cc7f4268b 100644
--- a/devel/cmake-core/files/patch-Modules_FindBoost.cmake
+++ b/devel/cmake-core/files/patch-Modules_FindBoost.cmake
@@ -20,6 +20,15 @@
  #-------------------------------------------------------------------------------
  # Before we go searching, check whether a boost cmake package is available, unless
  # the user specifically asked NOT to search for one.
+@@ -2170,7 +2177,7 @@ if(Boost_VERSION_STRING AND Boost_FIND_COMPONENTS)
+ # On versions < 1.35, remove the System library from the considered list
+ # since it wasn't added until 1.35.
+ if(Boost_VERSION_STRING AND Boost_FIND_COMPONENTS)
+-  if(Boost_VERSION_STRING VERSION_LESS 1.35.0)
++  if(Boost_VERSION_STRING VERSION_LESS 1.35.0 OR Boost_VERSION_STRING VERSION_GREATER_EQUAL 1.71.0)
+     list(REMOVE_ITEM Boost_FIND_COMPONENTS system)
+   endif()
+ endif()
 @@ -2196,10 +2202,10 @@ foreach(COMPONENT ${Boost_FIND_COMPONENTS})
    # Handle Python version suffixes
    unset(COMPONENT_PYTHON_VERSION_MAJOR)