From 4fd7ae3236efd1834cafd9771e942fc49cc94da2 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Wed, 27 May 2020 22:57:42 -0700 Subject: [PATCH] net-im/telegram-desktop: add qt-5.15 include patch Bug: https://bugs.gentoo.org/725652 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev --- .../files/telegram-desktop-qt5.15.patch | 23 +++++++++++++++++++ .../telegram-desktop-2.1.0.ebuild | 5 +++- .../telegram-desktop-2.1.7.ebuild | 4 ++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 net-im/telegram-desktop/files/telegram-desktop-qt5.15.patch diff --git a/net-im/telegram-desktop/files/telegram-desktop-qt5.15.patch b/net-im/telegram-desktop/files/telegram-desktop-qt5.15.patch new file mode 100644 index 000000000000..80c02b10db2b --- /dev/null +++ b/net-im/telegram-desktop/files/telegram-desktop-qt5.15.patch @@ -0,0 +1,23 @@ +diff -ru tdesktop-2.1.7-full.orig/Telegram/lib_ui/ui/effects/animation_value.h tdesktop-2.1.7-full/Telegram/lib_ui/ui/effects/animation_value.h +--- tdesktop-2.1.7-full.orig/Telegram/lib_ui/ui/effects/animation_value.h 2020-05-24 09:44:41.000000000 +0200 ++++ tdesktop-2.1.7-full/Telegram/lib_ui/ui/effects/animation_value.h 2020-05-26 20:31:34.381796057 +0200 +@@ -10,6 +10,8 @@ + + #include "ui/style/style_core.h" + ++#include ++ + namespace anim { + + enum class type { +diff -ru tdesktop-2.1.7-full.orig/Telegram/lib_ui/ui/effects/cross_animation.cpp tdesktop-2.1.7-full/Telegram/lib_ui/ui/effects/cross_animation.cpp +--- tdesktop-2.1.7-full.orig/Telegram/lib_ui/ui/effects/cross_animation.cpp 2020-05-24 09:44:41.000000000 +0200 ++++ tdesktop-2.1.7-full/Telegram/lib_ui/ui/effects/cross_animation.cpp 2020-05-26 20:32:16.340015129 +0200 +@@ -10,6 +10,7 @@ + #include "ui/painter.h" + + #include ++#include + + namespace Ui { + namespace { diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.0.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.0.ebuild index 07c9b19ab458..dd038756cdd2 100644 --- a/net-im/telegram-desktop/telegram-desktop-2.1.0.ebuild +++ b/net-im/telegram-desktop/telegram-desktop-2.1.0.ebuild @@ -70,7 +70,10 @@ REQUIRED_USE=" S="${WORKDIR}/${MY_P}" -PATCHES=( "${FILESDIR}/${PV}-kde-dir.patch" ) +PATCHES=( + "${FILESDIR}/${PV}-kde-dir.patch" + "${FILESDIR}/${PN}-qt5.15.patch" +) src_configure() { local mycxxflags=( diff --git a/net-im/telegram-desktop/telegram-desktop-2.1.7.ebuild b/net-im/telegram-desktop/telegram-desktop-2.1.7.ebuild index 3206772347bb..e031bf3e1e77 100644 --- a/net-im/telegram-desktop/telegram-desktop-2.1.7.ebuild +++ b/net-im/telegram-desktop/telegram-desktop-2.1.7.ebuild @@ -69,6 +69,10 @@ REQUIRED_USE=" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}/${PN}-qt5.15.patch" +) + pkg_pretend() { if has ccache ${FEATURES}; then ewarn -- 2.26.2