commit:     79ae88e214162858c1ebc69bcb9577f067d2e445
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 24 11:12:41 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 24 12:11:21 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ae88e2

media-gfx/kgraphviewer: Set StartupWMClass in desktop file, EAPI-7

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../kgraphviewer-2.4.3-set-startupwmclass.patch    | 27 +++++++++++++++
 .../kgraphviewer/kgraphviewer-2.4.3-r1.ebuild      | 40 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)

diff --git 
a/media-gfx/kgraphviewer/files/kgraphviewer-2.4.3-set-startupwmclass.patch 
b/media-gfx/kgraphviewer/files/kgraphviewer-2.4.3-set-startupwmclass.patch
new file mode 100644
index 00000000000..970bf57f2cf
--- /dev/null
+++ b/media-gfx/kgraphviewer/files/kgraphviewer-2.4.3-set-startupwmclass.patch
@@ -0,0 +1,27 @@
+From 50fea8d6413e06fcfaf0d0ca03cc6c266a1cda14 Mon Sep 17 00:00:00 2001
+From: "Friedrich W. H. Kossebau" <kosse...@kde.org>
+Date: Tue, 5 Feb 2019 04:49:16 +0100
+Subject: Set StartupWMClass in desktop file
+
+Used by non-Plasma unixoid X-based shells to map windows to desktop files
+e.g. in launcher UIs, which do not know about _KDE_NET_WM_DESKTOP_FILE and
+instead expect (one of) the WM_CLASS entries to match the basename of the
+desktop file by default. StartupWMClass overwrites that default.
+---
+ src/org.kde.kgraphviewer.desktop | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/org.kde.kgraphviewer.desktop 
b/src/org.kde.kgraphviewer.desktop
+index bfff1bf..6b3affb 100644
+--- a/src/org.kde.kgraphviewer.desktop
++++ b/src/org.kde.kgraphviewer.desktop
+@@ -41,6 +41,7 @@ MimeType=text/vnd.graphviz
+ Exec=kgraphviewer -qwindowtitle %c %u
+ Icon=kgraphviewer
+ Type=Application
++StartupWMClass=kgraphviewer
+ Categories=Qt;KDE;Graphics;Viewer;2DGraphics;DataVisualization;
+ X-DocPath=kgraphviewer/index.html
+ InitialPreference=10
+-- 
+cgit v1.1

diff --git a/media-gfx/kgraphviewer/kgraphviewer-2.4.3-r1.ebuild 
b/media-gfx/kgraphviewer/kgraphviewer-2.4.3-r1.ebuild
new file mode 100644
index 00000000000..80476c05457
--- /dev/null
+++ b/media-gfx/kgraphviewer/kgraphviewer-2.4.3-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Graphviz dot graph file viewer"
+HOMEPAGE="https://kde.org/applications/graphics/kgraphviewer/";
+[[ ${PV} != *9999* ]] && SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+
+LICENSE="GPL-2 GPL-2+ LGPL-2+ LGPL-2.1+ handbook? ( FDL-1.2 )"
+KEYWORDS="amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="
+       $(add_frameworks_dep kconfig)
+       $(add_frameworks_dep kconfigwidgets)
+       $(add_frameworks_dep kcoreaddons)
+       $(add_frameworks_dep ki18n)
+       $(add_frameworks_dep kiconthemes)
+       $(add_frameworks_dep kparts)
+       $(add_frameworks_dep kwidgetsaddons)
+       $(add_frameworks_dep kxmlgui)
+       $(add_qt_dep qtdbus)
+       $(add_qt_dep qtgui)
+       $(add_qt_dep qtprintsupport)
+       $(add_qt_dep qtsvg)
+       $(add_qt_dep qtwidgets)
+       >=media-gfx/graphviz-2.30
+"
+DEPEND="${COMMON_DEPEND}
+       dev-libs/boost
+"
+RDEPEND="${COMMON_DEPEND}
+       !media-gfx/kgraphviewer:4
+"
+
+PATCHES=( "${FILESDIR}/${P}-set-startupwmclass.patch" )

Reply via email to