summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-03-24 12:12:41 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-03-24 13:11:21 +0100
commit79ae88e214162858c1ebc69bcb9577f067d2e445 (patch)
treeb0fe2791f9cd6d208d46266d52a5c7ed43f5009f /media-gfx
parentmedia-sound/soundkonverter: Drop 3.0.1-r1 (diff)
downloadgentoo-79ae88e214162858c1ebc69bcb9577f067d2e445.tar.gz
gentoo-79ae88e214162858c1ebc69bcb9577f067d2e445.tar.bz2
gentoo-79ae88e214162858c1ebc69bcb9577f067d2e445.zip
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@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/kgraphviewer/files/kgraphviewer-2.4.3-set-startupwmclass.patch27
-rw-r--r--media-gfx/kgraphviewer/kgraphviewer-2.4.3-r1.ebuild40
2 files changed, 67 insertions, 0 deletions
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 000000000000..970bf57f2cfb
--- /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" <kossebau@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 000000000000..80476c054574
--- /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" )