From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 48158138350 for ; Wed, 12 Feb 2020 09:10:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4D596E0864; Wed, 12 Feb 2020 09:10:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 1CE66E0864 for ; Wed, 12 Feb 2020 09:10:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 8709034EC24 for ; Wed, 12 Feb 2020 09:10:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 30DD810B for ; Wed, 12 Feb 2020 09:10:26 +0000 (UTC) From: "Georgy Yakovlev" 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" Message-ID: <1581498604.c793aa288187e2094355eb2aa841340adb48315c.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/telegram-desktop/, net-im/telegram-desktop/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-im/telegram-desktop/files/1.9.12-dbus.patch net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild X-VCS-Directories: net-im/telegram-desktop/files/ net-im/telegram-desktop/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: c793aa288187e2094355eb2aa841340adb48315c X-VCS-Branch: master Date: Wed, 12 Feb 2020 09:10:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4cc4579b-349b-4294-9014-8c0848b9c3ee X-Archives-Hash: 2a9fe49da37eaf3c6497c56502d20b4f commit: c793aa288187e2094355eb2aa841340adb48315c Author: Georgy Yakovlev gentoo org> AuthorDate: Wed Feb 12 09:04:21 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Wed Feb 12 09:10:04 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c793aa28 net-im/telegram-desktop: remove gtk3 useflag from 1.9.12 gtk integration is unneeded with system-qt according to upstream also remove unneeded musl patch and make possible to build without qdbus (patch will be upstream) Package-Manager: Portage-2.3.88, Repoman-2.3.20 Signed-off-by: Georgy Yakovlev gentoo.org> net-im/telegram-desktop/files/1.9.12-dbus.patch | 13 +++++++++++++ net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild | 12 +++--------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/net-im/telegram-desktop/files/1.9.12-dbus.patch b/net-im/telegram-desktop/files/1.9.12-dbus.patch new file mode 100644 index 00000000000..d622645d8f8 --- /dev/null +++ b/net-im/telegram-desktop/files/1.9.12-dbus.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/external/CMakeLists.txt b/cmake/external/CMakeLists.txt +index b52e2cd..e868a63 100644 +--- a/cmake/external/CMakeLists.txt ++++ b/cmake/external/CMakeLists.txt +@@ -24,7 +24,7 @@ add_subdirectory(rlottie) + if (APPLE) + add_subdirectory(sp_media_key_tap) + endif() +-if (LINUX) ++if (LINUX AND Qt5DBus_FOUND AND dbusmenu-qt5_FOUND) + add_subdirectory(statusnotifieritem) + endif() + add_subdirectory(variant) diff --git a/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild b/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild index 79b0ce1d5a0..7dd055b0574 100644 --- a/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild +++ b/net-im/telegram-desktop/telegram-desktop-1.9.12.ebuild @@ -16,10 +16,8 @@ SRC_URI="https://github.com/telegramdesktop/tdesktop/releases/download/v${PV}/${ LICENSE="GPL-3-with-openssl-exception" SLOT="0" KEYWORDS="~amd64 ~ppc64" -IUSE="+alsa ayatana dbus gtk3 libressl pulseaudio spell" +IUSE="+alsa ayatana dbus libressl pulseaudio spell" -# dbus still required to build, but use flag disables dbus usage at runtime -# pkg-config will pick up gtk2 first if found, needs a workaround RDEPEND=" !net-im/telegram-desktop-bin app-arch/lz4:= @@ -31,7 +29,6 @@ RDEPEND=" dev-libs/libdbusmenu-qt[qt5(+)] dev-libs/xxhash dev-qt/qtcore:5 - dev-qt/qtdbus:5 dev-qt/qtimageformats:5 dev-qt/qtnetwork:5 dev-qt/qtsvg:5 @@ -53,7 +50,7 @@ RDEPEND=" dev-qt/qtwidgets:5[png,xcb(-)] ) ayatana? ( dev-libs/libappindicator:3 ) - gtk3? ( x11-libs/gtk+:3 ) + dbus? ( dev-qt/qtdbus:5 ) pulseaudio? ( media-sound/pulseaudio ) spell? ( app-text/enchant:= ) " @@ -74,7 +71,7 @@ S="${WORKDIR}/${MY_P}" PATCHES=( "${FILESDIR}/0002-PPC-big-endian.patch" - "${FILESDIR}/musl.patch" + "${FILESDIR}/${PV}-dbus.patch" ) src_configure() { @@ -90,7 +87,6 @@ src_configure() { # it fals with tl-expected-1.0.0, so we use bundled for now to avoid git rev snapshots # EXPECTED VARIANT local mycmakeargs=( - -Ddisable_autoupdate=1 -DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON -DDESKTOP_APP_USE_GLIBC_WRAPS=OFF -DDESKTOP_APP_USE_PACKAGED=ON @@ -100,9 +96,7 @@ src_configure() { -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON -DTDESKTOP_LAUNCHER_BASENAME="${PN}" -DDESKTOP_APP_DISABLE_SPELLCHECK="$(usex spell OFF ON)" - -DTDESKTOP_DISABLE_GTK_INTEGRATION="$(usex gtk3 OFF ON)" -DTDESKTOP_DISABLE_DBUS_INTEGRATION="$(usex dbus OFF ON)" - -DTDESKTOP_FORCE_GTK_FILE_DIALOG="$(usex gtk3)" ) if [[ -n ${MY_TDESKTOP_API_ID} && -n ${MY_TDESKTOP_API_HASH} ]]; then