1 |
commit: a3976f8b771939a59857f3f6e5f7557aa49cb65f |
2 |
Author: Nikos Chantziaras <realnc <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Dec 30 14:22:51 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 1 07:55:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3976f8b |
7 |
|
8 |
x11-misc/kdocker: fix Qt 5.14 build, EAPI 7 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/703882 |
11 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
12 |
Signed-off-by: Nikos Chantziaras <realnc <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/14181 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
x11-misc/kdocker/files/qt-5.14.patch | 38 ++++++++++++++++++++++++++++++++++++ |
17 |
x11-misc/kdocker/kdocker-5.2.ebuild | 18 +++++++---------- |
18 |
2 files changed, 45 insertions(+), 11 deletions(-) |
19 |
|
20 |
diff --git a/x11-misc/kdocker/files/qt-5.14.patch b/x11-misc/kdocker/files/qt-5.14.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..ca1237965aa |
23 |
--- /dev/null |
24 |
+++ b/x11-misc/kdocker/files/qt-5.14.patch |
25 |
@@ -0,0 +1,38 @@ |
26 |
+From 1579ee388749a7b056ccdd8ef2d4deafe21bd3e7 Mon Sep 17 00:00:00 2001 |
27 |
+From: Nikos Chantziaras <realnc@×××××.com> |
28 |
+Date: Mon, 30 Dec 2019 16:03:16 +0200 |
29 |
+Subject: [PATCH] Fix building with Qt 5.14 |
30 |
+ |
31 |
+Qt 5.14 introduced QActionGroup::ExclusionPolicy::None, but <X.h> defines a |
32 |
+'None' macro. Work around the resulting mess by temporarily undefining the |
33 |
+macro. |
34 |
+--- |
35 |
+ src/trayitem.h | 8 ++++++++ |
36 |
+ 1 file changed, 8 insertions(+) |
37 |
+ |
38 |
+diff --git a/src/trayitem.h b/src/trayitem.h |
39 |
+index 7698ea4..4b54cdd 100644 |
40 |
+--- a/src/trayitem.h |
41 |
++++ b/src/trayitem.h |
42 |
+@@ -21,6 +21,10 @@ |
43 |
+ #ifndef _TRAYITEM_H |
44 |
+ #define _TRAYITEM_H |
45 |
+ |
46 |
++// Qt 5.14 introduced QActionGroup::ExclusionPolicy::None, but <X.h> defines a 'None' macro. |
47 |
++#pragma push_macro("None") |
48 |
++#undef None |
49 |
++ |
50 |
+ #include <QAction> |
51 |
+ #include <QEvent> |
52 |
+ #include <QIcon> |
53 |
+@@ -32,6 +36,10 @@ |
54 |
+ |
55 |
+ #include "xlibutil.h" |
56 |
+ |
57 |
++#ifndef None |
58 |
++#pragma pop_macro("None") |
59 |
++#endif |
60 |
++ |
61 |
+ #define DEFAULT_CustomIcon QString() |
62 |
+ #define DEFAULT_BalloonTimeout 4000 // 4 seconds |
63 |
+ #define DEFAULT_SkipTaskbar false |
64 |
|
65 |
diff --git a/x11-misc/kdocker/kdocker-5.2.ebuild b/x11-misc/kdocker/kdocker-5.2.ebuild |
66 |
index 43c6d71eef6..a97ab33e91e 100644 |
67 |
--- a/x11-misc/kdocker/kdocker-5.2.ebuild |
68 |
+++ b/x11-misc/kdocker/kdocker-5.2.ebuild |
69 |
@@ -1,9 +1,9 @@ |
70 |
-# Copyright 1999-2018 Gentoo Foundation |
71 |
+# Copyright 1999-2019 Gentoo Authors |
72 |
# Distributed under the terms of the GNU General Public License v2 |
73 |
|
74 |
-EAPI=6 |
75 |
+EAPI=7 |
76 |
|
77 |
-inherit bash-completion-r1 gnome2-utils qmake-utils |
78 |
+inherit bash-completion-r1 qmake-utils xdg |
79 |
|
80 |
MY_P=KDocker-${PV} |
81 |
DESCRIPTION="Helper to dock any application into the system tray" |
82 |
@@ -29,6 +29,10 @@ RDEPEND="${DEPEND}" |
83 |
|
84 |
DOCS=( AUTHORS BUGS ChangeLog CREDITS README.md TODO ) |
85 |
|
86 |
+PATCHES=( |
87 |
+ "${FILESDIR}"/qt-5.14.patch |
88 |
+) |
89 |
+ |
90 |
S=${WORKDIR}/${MY_P} |
91 |
|
92 |
src_prepare() { |
93 |
@@ -46,11 +50,3 @@ src_install() { |
94 |
emake INSTALL_ROOT="${D}" install |
95 |
einstalldocs |
96 |
} |
97 |
- |
98 |
-pkg_postinst() { |
99 |
- gnome2_icon_cache_update |
100 |
-} |
101 |
- |
102 |
-pkg_postrm() { |
103 |
- gnome2_icon_cache_update |
104 |
-} |