Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-apps/ark/files/, kde-apps/ark/
Date: Wed, 16 Dec 2015 12:28:21
Message-Id: 1450268873.4bff875eca703cebcba799cca535f86a604c34fe.kensington@gentoo
1 commit: 4bff875eca703cebcba799cca535f86a604c34fe
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Tue Dec 15 18:44:24 2015 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 16 12:27:53 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bff875e
7
8 kde-apps/ark: Fix bug with kde-frameworks 5.17
9
10 A change in kxmlgui causes lingering ark processes in the background.
11
12 Package-Manager: portage-2.2.24
13
14 kde-apps/ark/ark-15.08.3-r1.ebuild | 63 ++++++++++++++++++++++
15 .../ark-15.08.3-fix-lingering-processes.patch | 42 +++++++++++++++
16 2 files changed, 105 insertions(+)
17
18 diff --git a/kde-apps/ark/ark-15.08.3-r1.ebuild b/kde-apps/ark/ark-15.08.3-r1.ebuild
19 new file mode 100644
20 index 0000000..358abb3
21 --- /dev/null
22 +++ b/kde-apps/ark/ark-15.08.3-r1.ebuild
23 @@ -0,0 +1,63 @@
24 +# Copyright 1999-2015 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=5
29 +
30 +KDE_HANDBOOK="forceoptional"
31 +KDE_TEST="forceoptional"
32 +inherit kde5
33 +
34 +DESCRIPTION="KDE Archiving tool"
35 +HOMEPAGE="https://www.kde.org/applications/utilities/ark
36 +https://utils.kde.org/projects/ark"
37 +KEYWORDS=" ~amd64 ~x86"
38 +IUSE="bzip2 lzma zlib"
39 +
40 +RDEPEND="
41 + $(add_frameworks_dep karchive)
42 + $(add_frameworks_dep kconfig)
43 + $(add_frameworks_dep kcompletion)
44 + $(add_frameworks_dep kconfigwidgets)
45 + $(add_frameworks_dep kcoreaddons)
46 + $(add_frameworks_dep kcrash)
47 + $(add_frameworks_dep kdbusaddons)
48 + $(add_frameworks_dep khtml)
49 + $(add_frameworks_dep ki18n)
50 + $(add_frameworks_dep kiconthemes)
51 + $(add_frameworks_dep kio)
52 + $(add_frameworks_dep kjobwidgets)
53 + $(add_frameworks_dep kparts)
54 + $(add_frameworks_dep kpty)
55 + $(add_frameworks_dep kservice)
56 + $(add_frameworks_dep kwidgetsaddons)
57 + $(add_frameworks_dep kxmlgui)
58 + >=app-arch/libarchive-3.0.0[bzip2?,lzma?,zlib?]
59 + dev-qt/qtdbus:5
60 + dev-qt/qtgui:5
61 + dev-qt/qtwidgets:5
62 +"
63 +DEPEND="${RDEPEND}
64 + sys-devel/gettext
65 +"
66 +
67 +PATCHES=( "${FILESDIR}/${PN}-15.08.3-fix-lingering-processes.patch" )
68 +
69 +src_configure() {
70 + local mycmakeargs=(
71 + $(cmake-utils_use_find_package bzip2 BZip2)
72 + $(cmake-utils_use_find_package lzma LibLZMA)
73 + $(cmake-utils_use_find_package test Qt5Test)
74 + $(cmake-utils_use_find_package zlib ZLIB)
75 + )
76 +
77 + kde5_src_configure
78 +}
79 +
80 +pkg_postinst() {
81 + kde5_pkg_postinst
82 +
83 + if ! has_version app-arch/rar ; then
84 + elog "For creating rar archives, install app-arch/rar"
85 + fi
86 +}
87
88 diff --git a/kde-apps/ark/files/ark-15.08.3-fix-lingering-processes.patch b/kde-apps/ark/files/ark-15.08.3-fix-lingering-processes.patch
89 new file mode 100644
90 index 0000000..3d83c1b
91 --- /dev/null
92 +++ b/kde-apps/ark/files/ark-15.08.3-fix-lingering-processes.patch
93 @@ -0,0 +1,42 @@
94 +From: Weng Xuetian <wengxt@×××××.com>
95 +Date: Tue, 15 Dec 2015 07:40:43 +0000
96 +Subject: Fix ark doesn't exit with kxmlgui 5.17.
97 +X-Git-Url: http://quickgit.kde.org/?p=ark.git&a=commitdiff&h=f7312a26d31cdc31776a09df600327ca86d3daea
98 +---
99 +Fix ark doesn't exit with kxmlgui 5.17.
100 +
101 +Previously setQuitOnLastWindowClosed is reset by KMainWindow::init but
102 +now it's removed in 5.17. Change to use setQuitOnLastWindowClosed in ark
103 +only when it's using a kjob and connect quit() to finished signal.
104 +
105 +REVIEW: 126358
106 +---
107 +
108 +
109 +--- a/app/main.cpp
110 ++++ b/app/main.cpp
111 +@@ -119,7 +119,6 @@
112 + QStringLiteral("http://littlesvr.ca/misc/contactandrew.php"));
113 +
114 + application.setWindowIcon(QIcon::fromTheme(QStringLiteral("ark")));
115 +- application.setQuitOnLastWindowClosed(false);
116 +
117 + QCommandLineParser parser;
118 + parser.setApplicationDescription(aboutData.shortDescription());
119 +@@ -196,6 +195,7 @@
120 + parser.isSet(QStringLiteral("add-to"))) {
121 +
122 + AddToArchive *addToArchiveJob = new AddToArchive(&application);
123 ++ application.setQuitOnLastWindowClosed(false);
124 + application.connect(addToArchiveJob, SIGNAL(result(KJob*)), SLOT(quit()), Qt::QueuedConnection);
125 +
126 + if (parser.isSet(QStringLiteral("changetofirstpath"))) {
127 +@@ -233,6 +233,7 @@
128 + } else if (parser.isSet(QStringLiteral("batch"))) {
129 +
130 + BatchExtract *batchJob = new BatchExtract(&application);
131 ++ application.setQuitOnLastWindowClosed(false);
132 + application.connect(batchJob, SIGNAL(result(KJob*)), SLOT(quit()), Qt::QueuedConnection);
133 +
134 + for (int i = 0; i < urls.count(); ++i) {
135 +