net-im/telegram-desktop: add qt-5.15 include patch
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 28 May 2020 05:57:42 +0000 (22:57 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 28 May 2020 06:06:23 +0000 (23:06 -0700)
Bug: https://bugs.gentoo.org/725652
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
net-im/telegram-desktop/files/telegram-desktop-qt5.15.patch [new file with mode: 0644]
net-im/telegram-desktop/telegram-desktop-2.1.0.ebuild
net-im/telegram-desktop/telegram-desktop-2.1.7.ebuild

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 (file)
index 0000000..80c02b1
--- /dev/null
@@ -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 <QPainterPath>
++
+ 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 <QtCore/QtMath>
++#include <QPainterPath>
+ namespace Ui {
+ namespace {
index 07c9b19ab4580e448c3e862e8f764f68d29c8c0b..dd038756cdd25d63121949c301c9de2832b555b3 100644 (file)
@@ -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=(
index 3206772347bbad2e3dd80ca262f604b3cb1b0690..e031bf3e1e77a130f39ebfbb1a44636e5206c2e1 100644 (file)
@@ -69,6 +69,10 @@ REQUIRED_USE="
 
 S="${WORKDIR}/${MY_P}"
 
+PATCHES=(
+       "${FILESDIR}/${PN}-qt5.15.patch"
+)
+
 pkg_pretend() {
        if has ccache ${FEATURES}; then
                ewarn