diff options
author | Nikos Chantziaras <realnc@gmail.com> | 2019-12-30 16:22:51 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-01-01 08:55:09 +0100 |
commit | a3976f8b771939a59857f3f6e5f7557aa49cb65f (patch) | |
tree | 5f049585900e0e771c98e7f8c2203b0f15d26c73 /x11-misc/kdocker | |
parent | dev-ruby/rspec-mocks: add 3.9.1 (diff) | |
download | gentoo-a3976f8b771939a59857f3f6e5f7557aa49cb65f.tar.gz gentoo-a3976f8b771939a59857f3f6e5f7557aa49cb65f.tar.bz2 gentoo-a3976f8b771939a59857f3f6e5f7557aa49cb65f.zip |
x11-misc/kdocker: fix Qt 5.14 build, EAPI 7
Closes: https://bugs.gentoo.org/703882
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Nikos Chantziaras <realnc@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14181
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'x11-misc/kdocker')
-rw-r--r-- | x11-misc/kdocker/files/qt-5.14.patch | 38 | ||||
-rw-r--r-- | x11-misc/kdocker/kdocker-5.2.ebuild | 18 |
2 files changed, 45 insertions, 11 deletions
diff --git a/x11-misc/kdocker/files/qt-5.14.patch b/x11-misc/kdocker/files/qt-5.14.patch new file mode 100644 index 000000000000..ca1237965aaf --- /dev/null +++ b/x11-misc/kdocker/files/qt-5.14.patch @@ -0,0 +1,38 @@ +From 1579ee388749a7b056ccdd8ef2d4deafe21bd3e7 Mon Sep 17 00:00:00 2001 +From: Nikos Chantziaras <realnc@gmail.com> +Date: Mon, 30 Dec 2019 16:03:16 +0200 +Subject: [PATCH] Fix building with Qt 5.14 + +Qt 5.14 introduced QActionGroup::ExclusionPolicy::None, but <X.h> defines a +'None' macro. Work around the resulting mess by temporarily undefining the +macro. +--- + src/trayitem.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/trayitem.h b/src/trayitem.h +index 7698ea4..4b54cdd 100644 +--- a/src/trayitem.h ++++ b/src/trayitem.h +@@ -21,6 +21,10 @@ + #ifndef _TRAYITEM_H + #define _TRAYITEM_H + ++// Qt 5.14 introduced QActionGroup::ExclusionPolicy::None, but <X.h> defines a 'None' macro. ++#pragma push_macro("None") ++#undef None ++ + #include <QAction> + #include <QEvent> + #include <QIcon> +@@ -32,6 +36,10 @@ + + #include "xlibutil.h" + ++#ifndef None ++#pragma pop_macro("None") ++#endif ++ + #define DEFAULT_CustomIcon QString() + #define DEFAULT_BalloonTimeout 4000 // 4 seconds + #define DEFAULT_SkipTaskbar false diff --git a/x11-misc/kdocker/kdocker-5.2.ebuild b/x11-misc/kdocker/kdocker-5.2.ebuild index 43c6d71eef65..a97ab33e91ee 100644 --- a/x11-misc/kdocker/kdocker-5.2.ebuild +++ b/x11-misc/kdocker/kdocker-5.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit bash-completion-r1 gnome2-utils qmake-utils +inherit bash-completion-r1 qmake-utils xdg MY_P=KDocker-${PV} DESCRIPTION="Helper to dock any application into the system tray" @@ -29,6 +29,10 @@ RDEPEND="${DEPEND}" DOCS=( AUTHORS BUGS ChangeLog CREDITS README.md TODO ) +PATCHES=( + "${FILESDIR}"/qt-5.14.patch +) + S=${WORKDIR}/${MY_P} src_prepare() { @@ -46,11 +50,3 @@ src_install() { emake INSTALL_ROOT="${D}" install einstalldocs } - -pkg_postinst() { - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} |