git: 1e452f6a9cbb - main - net-im/telegram-desktop: update to 4.14.12 release (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 20:49:20 UTC
The branch main has been updated by fluffy:

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

commit 1e452f6a9cbb7f13333f3db1e2599e61c7deb7b0
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2024-02-03 16:58:59 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2024-02-03 20:48:00 +0000

    net-im/telegram-desktop: update to 4.14.12 release (+)
    
    While here, allow to use ccache (if enabled) with non-base llvm
    
    Changelog:      https://github.com/telegramdesktop/tdesktop/releases/tag/v4.14.12
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v4.14.11
                    https://github.com/telegramdesktop/tdesktop/releases/tag/v4.14.10
---
 net-im/telegram-desktop/Makefile | 12 ++++++++----
 net-im/telegram-desktop/distinfo |  6 +++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index bfc17132113b..bbbf1c9e3cf7 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	4.14.9
+DISTVERSION=	4.14.12
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -50,7 +50,7 @@ qt6_PKGNAMESUFFIX=	-qt6
 qt5_CONFLICTS_INSTALL=	${PORTNAME}-qt6
 qt6_CONFLICTS_INSTALL=	${PORTNAME}
 
-USES=		cmake desktop-file-utils gl gnome jpeg localbase \
+USES=		cmake compiler:c++20-lang desktop-file-utils gl gnome jpeg localbase \
 		minizip openal pkgconfig python:build ssl xorg
 
 USE_GITHUB=	nodefault
@@ -107,8 +107,12 @@ TELEGRAM_API_ID=	601761
 
 .if ${OPSYS} == FreeBSD && ((${OSVERSION} >= 1400000 && ${OSVERSION} < 1400091) || ${OSVERSION} < 1302507)
 USES+=	llvm:min=16,build
-.else
-USES+=	compiler:c++20-lang
+USES:=	${USES:Ncompiler\:*} # XXX avoid warnings
+.if defined(WITH_CCACHE_BUILD) && !defined(NO_CCACHE)
+CMAKE_ARGS+=	-DCMAKE_CC_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
+		-DCMAKE_CPP_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache" \
+		-DCMAKE_CXX_COMPILER_LAUNCHER="${LOCALBASE}/bin/ccache"
+.endif
 .endif
 
 post-extract:
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index bcc7a5a9c0a1..7cb98338f28f 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1705706135
-SHA256 (tdesktop-4.14.9-full.tar.gz) = 64d639f36405a54136b520a3fcd68d15784ee85ed871b13119c4e6f9235f47a7
-SIZE (tdesktop-4.14.9-full.tar.gz) = 68106660
+TIMESTAMP = 1706956678
+SHA256 (tdesktop-4.14.12-full.tar.gz) = 0556f9bedf4fbb185ed8df5646695b68204595e4976d5ec4a59f89cc7c540a7c
+SIZE (tdesktop-4.14.12-full.tar.gz) = 68148132