git: 485daef3f1cc - main - net-im/telegram-desktop: update to 5.10.4 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 24 Jan 2025 15:20:51 UTC
The branch main has been updated by fluffy:

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

commit 485daef3f1cc7126d0e7812e7d16c8e154db8009
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2025-01-23 21:36:58 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-01-24 15:20:36 +0000

    net-im/telegram-desktop: update to 5.10.4 release (+)
    
    What's new in this release:
    * Add messages search in channel comments.
    * Allow sending your unique gifts to blockchain.
    * Add option for running in backround on Linux.
    * Fix possible freeze on quit on macOS.
    
    While here, set workaround to proper build with clang19
---
 net-im/telegram-desktop/Makefile                               | 10 +++++++---
 net-im/telegram-desktop/distinfo                               |  6 +++---
 ...e.h => extrapatch-Telegram_lib__base_base_qt_qt__compare.h} |  0
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index 2cd5cd0e0f81..6d202c10fab6 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	5.10.3
+DISTVERSION=	5.10.4
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -100,7 +100,7 @@ X11_LIB_DEPENDS=	libxcb-keysyms.so:x11/xcb-util-keysyms \
 TELEGRAM_API_HASH=	20a3432aab43f24bb4460fceac5ba38d
 TELEGRAM_API_ID=	601761
 
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk> # for COMPILER_VERSION
 
 .if ${OPSYS} == FreeBSD && defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
 CMAKE_ARGS+=	-DCMAKE_CC_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
@@ -108,6 +108,10 @@ CMAKE_ARGS+=	-DCMAKE_CC_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
 		-DCMAKE_CXX_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache"
 .endif
 
+.if ${OPSYS} == FreeBSD && ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 190
+EXTRA_PATCHES=	${PATCHDIR}/extrapatch-Telegram_lib__base_base_qt_qt__compare.h
+.endif
+
 post-extract:
 	# Some of the third-party components already built, and
 	# can be safely removed
@@ -138,4 +142,4 @@ post-patch:
 	${REINPLACE_CMD} -e /-Wno-maybe-uninitialized/d -e /-fstack-clash-protection/d \
 	    ${WRKSRC}/cmake/options_linux.cmake
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index a2a9c887fa7d..42979b7ad439 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1736518588
-SHA256 (tdesktop-5.10.3-full.tar.gz) = 856be2d5cc772a2511f6e861b7c3f122385d3b3424c35cd45776fcbfd648a66d
-SIZE (tdesktop-5.10.3-full.tar.gz) = 72533743
+TIMESTAMP = 1737667371
+SHA256 (tdesktop-5.10.4-full.tar.gz) = 5dd0bfe5b9a668ae56b5420cc4c839ef678810d56b8557664c9de10110c3e38a
+SIZE (tdesktop-5.10.4-full.tar.gz) = 72566586
diff --git a/net-im/telegram-desktop/files/patch-Telegram_lib__base_base_qt_qt__compare.h b/net-im/telegram-desktop/files/extrapatch-Telegram_lib__base_base_qt_qt__compare.h
similarity index 100%
rename from net-im/telegram-desktop/files/patch-Telegram_lib__base_base_qt_qt__compare.h
rename to net-im/telegram-desktop/files/extrapatch-Telegram_lib__base_base_qt_qt__compare.h