From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1312273-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id C0C32139360
	for <garchives@archives.gentoo.org>; Thu, 12 Aug 2021 17:56:12 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B5F34E0825;
	Thu, 12 Aug 2021 17:56:11 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9A06EE0825
	for <gentoo-commits@lists.gentoo.org>; Thu, 12 Aug 2021 17:56:11 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D239833BDFC
	for <gentoo-commits@lists.gentoo.org>; Thu, 12 Aug 2021 17:56:09 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 39AE986D
	for <gentoo-commits@lists.gentoo.org>; Thu, 12 Aug 2021 17:56:08 +0000 (UTC)
From: "Georgy Yakovlev" <gyakovlev@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" <gyakovlev@gentoo.org>
Message-ID: <1628789952.5f02a6813a0fce67287cc49bf1ddcd2712da2389.gyakovlev@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop/
X-VCS-Repository: repo/gentoo
X-VCS-Files: net-im/telegram-desktop/metadata.xml net-im/telegram-desktop/telegram-desktop-2.8.11-r1.ebuild net-im/telegram-desktop/telegram-desktop-2.8.11-r2.ebuild
X-VCS-Directories: net-im/telegram-desktop/
X-VCS-Committer: gyakovlev
X-VCS-Committer-Name: Georgy Yakovlev
X-VCS-Revision: 5f02a6813a0fce67287cc49bf1ddcd2712da2389
X-VCS-Branch: master
Date: Thu, 12 Aug 2021 17:56:08 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b5711d44-5ee6-4172-b2dc-12fabeecbdf3
X-Archives-Hash: 1147819cff23de3d3716fcd2f375970f

commit:     5f02a6813a0fce67287cc49bf1ddcd2712da2389
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Thu Aug 12 09:03:28 2021 +0000
Commit:     Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
CommitDate: Thu Aug 12 17:39:12 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f02a681

net-im/telegram-desktop: Rebuild whenever tg_owt flags change

The different USE flags of tg_owt affect the ABI compatibility of the
library. Additionally, tdesktop itself uses some of the variables
controlled by USE flags of the tg_owt package during compilation.

As such, telegram-desktop should be rebuilt when *anything* about tg_owt
changes...

Bug: https://bugs.gentoo.org/807586
See-also: https://github.com/telegramdesktop/tdesktop/issues/16781
Thanks-to: Dmitry Baranov <reagentoo <AT> gmail.com>
Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>

 net-im/telegram-desktop/metadata.xml                                  | 1 +
 ...ram-desktop-2.8.11-r1.ebuild => telegram-desktop-2.8.11-r2.ebuild} | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/net-im/telegram-desktop/metadata.xml b/net-im/telegram-desktop/metadata.xml
index bb15e2ab9e5..ffde9e742c6 100644
--- a/net-im/telegram-desktop/metadata.xml
+++ b/net-im/telegram-desktop/metadata.xml
@@ -12,5 +12,6 @@
 	<use>
 		<flag name="enchant">Enable the app-text/aspell spell-checking backend</flag>
 		<flag name="hunspell">Enable the app-text/hunspell spell-checking backend</flag>
+		<flag name="screencast">Enable support for remote desktop and screen cast using <pkg>media-video/pipewire</pkg></flag>
 	</use>
 </pkgmetadata>

diff --git a/net-im/telegram-desktop/telegram-desktop-2.8.11-r1.ebuild b/net-im/telegram-desktop/telegram-desktop-2.8.11-r2.ebuild
similarity index 97%
rename from net-im/telegram-desktop/telegram-desktop-2.8.11-r1.ebuild
rename to net-im/telegram-desktop/telegram-desktop-2.8.11-r2.ebuild
index 7987cc94ec8..4a4734f72e0 100644
--- a/net-im/telegram-desktop/telegram-desktop-2.8.11-r1.ebuild
+++ b/net-im/telegram-desktop/telegram-desktop-2.8.11-r2.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${
 LICENSE="BSD GPL-3-with-openssl-exception LGPL-2+"
 SLOT="0"
 KEYWORDS="amd64 ~ppc64"
-IUSE="+dbus enchant +gtk +hunspell +spell wayland webkit +X"
+IUSE="+dbus enchant +gtk +hunspell screencast +spell wayland webkit +X"
 REQUIRED_USE="
 	spell? (
 		^^ ( enchant hunspell )
@@ -44,7 +44,7 @@ RDEPEND="
 	media-libs/openal
 	media-libs/opus:=
 	media-libs/rnnoise
-	~media-libs/tg_owt-0_pre20210626
+	~media-libs/tg_owt-0_pre20210626[screencast=,X=]
 	media-video/ffmpeg:=[opus]
 	sys-libs/zlib:=[minizip]
 	dbus? (