git: 66e150da1f7c - 2023Q4 - net-im/t*: update Telegram Desktop to 4.11.5 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 29 Nov 2023 10:04:52 UTC
The branch 2023Q4 has been updated by fluffy:

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

commit 66e150da1f7cd13ff91921ce17a7444a848dd545
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2023-11-08 20:59:19 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-11-29 10:04:11 +0000

    net-im/t*: update Telegram Desktop to 4.11.5 (+)
    
    Also, update net-im/tg_owt to the recent commit.
    
    (cherry picked from commit 1114a1e961231159607e44b779e474299ce6826c)
---
 net-im/telegram-desktop/Makefile                   | 29 ++++++++++++++++++++--
 net-im/telegram-desktop/distinfo                   |  6 ++---
 ...latform_linux_notifications__manager__linux.cpp | 11 --------
 net-im/tg_owt/Makefile                             |  7 ++----
 net-im/tg_owt/distinfo                             |  6 ++---
 5 files changed, 35 insertions(+), 24 deletions(-)

diff --git a/net-im/telegram-desktop/Makefile b/net-im/telegram-desktop/Makefile
index 6d437091fedb..97b6c6f53767 100644
--- a/net-im/telegram-desktop/Makefile
+++ b/net-im/telegram-desktop/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	telegram-desktop
-DISTVERSION=	4.10.3
-PORTREVISION=	1
+DISTVERSION=	4.11.5
 CATEGORIES=	net-im
 MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/releases/download/v${DISTVERSION}/
 DISTNAME=	tdesktop-${DISTVERSION}-full
@@ -111,6 +110,32 @@ USES+=	llvm:max=15,build
 USES+=	compiler:c++20-lang
 .endif
 
+post-extract:
+	# Some of the third-party components already built, and
+	# can be safely removed
+	${RM} -rf \
+		${WRKSRC}/Telegram/ThirdParty/QR \
+		${WRKSRC}/Telegram/ThirdParty/dispatch \
+		${WRKSRC}/Telegram/ThirdParty/expected \
+		${WRKSRC}/Telegram/ThirdParty/fcitx5-qt \
+		${WRKSRC}/Telegram/ThirdParty/hime \
+		${WRKSRC}/Telegram/ThirdParty/hunspell \
+		${WRKSRC}/Telegram/ThirdParty/jemalloc \
+		${WRKSRC}/Telegram/ThirdParty/lz4 \
+		${WRKSRC}/Telegram/ThirdParty/minizip \
+		${WRKSRC}/Telegram/ThirdParty/jimf \
+		${WRKSRC}/Telegram/ThirdParty/plasma-wayland-protocols \
+		${WRKSRC}/Telegram/ThirdParty/range-v3 \
+		${WRKSRC}/Telegram/ThirdParty/wayland \
+		${WRKSRC}/Telegram/ThirdParty/wayland-protocols \
+		${WRKSRC}/Telegram/ThirdParty/xxHash
+
+.if ${FLAVOR} == qt5
+	${RM} -rf \
+		${WRKSRC}/Telegram/ThirdParty/kcoreaddons \
+		${WRKSRC}/Telegram/ThirdParty/kimageformats
+.endif
+
 post-patch:
 	# XXX fix the following on every source file
 	# warning: unknown warning option '-Wno-maybe-uninitialized'
diff --git a/net-im/telegram-desktop/distinfo b/net-im/telegram-desktop/distinfo
index cc7f9cbc0ded..7e658df17f70 100644
--- a/net-im/telegram-desktop/distinfo
+++ b/net-im/telegram-desktop/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1696278627
-SHA256 (tdesktop-4.10.3-full.tar.gz) = 09d793834f7a25614ba23995e2290002a09e8e790520b4a265d0f7c3592c396e
-SIZE (tdesktop-4.10.3-full.tar.gz) = 67750018
+TIMESTAMP = 1699463455
+SHA256 (tdesktop-4.11.5-full.tar.gz) = a4c569d6e4587682c4a834e55c8c3acf507b477ca2f11c08f23c4cfe2773cf99
+SIZE (tdesktop-4.11.5-full.tar.gz) = 68347224
diff --git a/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_notifications__manager__linux.cpp b/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_notifications__manager__linux.cpp
deleted file mode 100644
index 1f69d447fd4f..000000000000
--- a/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_platform_linux_notifications__manager__linux.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp.orig	2023-10-02 20:31:34 UTC
-+++ Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp
-@@ -814,7 +814,7 @@ bool ByDefault() {
- 
- 	// A list of capabilities that offer feature parity
- 	// with custom notifications
--	return ranges::all_of(std::initializer_list{
-+	return ranges::all_of(std::array{
- 		// To show message content
- 		"body",
- 		// To have buttons on notifications
diff --git a/net-im/tg_owt/Makefile b/net-im/tg_owt/Makefile
index 133b34586e34..48ccc217a4a6 100644
--- a/net-im/tg_owt/Makefile
+++ b/net-im/tg_owt/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	tg_owt
-PORTVERSION=	0.0.20230918
+PORTVERSION=	0.0.20231101
 CATEGORIES=	net-im
 
 MAINTAINER=	ports@FreeBSD.org
@@ -21,7 +21,7 @@ USE_XORG=	x11 xcomposite xdamage xrender xrandr xtst
 USE_GL=		gbm
 USE_GITHUB=	yes
 GH_ACCOUNT=	desktop-app
-GH_TAGNAME=	592b14d
+GH_TAGNAME=	71cce98
 
 # libyuv cloned from https://chromium.googlesource.com/libyuv/libyuv
 # when updating port check if hash tag in the submodule was updated
@@ -30,7 +30,4 @@ GH_TUPLE=	abseil:abseil-cpp:8c0b94e:abseilcpp/src/third_party/abseil-cpp \
 		google:crc32c:21fc8ef:crc32c/src/third_party/crc32c/src \
 		klemensn:libyuv:04821d:libyuv/src/third_party/libyuv
 
-# mute deprecation warnings from abseil submodule
-CXXFLAGS+=	-Wno-deprecated-builtins
-
 .include <bsd.port.mk>
diff --git a/net-im/tg_owt/distinfo b/net-im/tg_owt/distinfo
index 4211b30482c7..ff4592686833 100644
--- a/net-im/tg_owt/distinfo
+++ b/net-im/tg_owt/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1695758173
-SHA256 (desktop-app-tg_owt-0.0.20230918-592b14d_GH0.tar.gz) = ff40fbb4b229ecbaf96a7ece17af6b4076ab21591500878bce50db81c5494704
-SIZE (desktop-app-tg_owt-0.0.20230918-592b14d_GH0.tar.gz) = 13719987
+TIMESTAMP = 1698950086
+SHA256 (desktop-app-tg_owt-0.0.20231101-71cce98_GH0.tar.gz) = 1e48900bd7d84efc737670962559d8845f52eaa382add32766f9fa1259e24e78
+SIZE (desktop-app-tg_owt-0.0.20231101-71cce98_GH0.tar.gz) = 13720179
 SHA256 (abseil-abseil-cpp-8c0b94e_GH0.tar.gz) = e995f06ce4fd4a9641e6a8e5d8d2258710eef481a07307a3e727012f1a83c442
 SIZE (abseil-abseil-cpp-8c0b94e_GH0.tar.gz) = 1957422
 SHA256 (cisco-libsrtp-a566a9_GH0.tar.gz) = 3a02196f8bb36ff640cb1d24920414f9c80e3d7ca78304cab0e6a70ca72a683f