1 |
commit: 8f33ed3cfcfb14094825ecd1aea658ef4957fd69 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Aug 3 20:07:50 2016 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 4 14:15:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f33ed3c |
7 |
|
8 |
kde-apps/kmix: Fix runtime crash on volume change |
9 |
|
10 |
Gentoo-bug: 590406 |
11 |
|
12 |
Upstream commit: 7aa904ecacfd2eeaa91068e17cc9bd79ba058206 |
13 |
|
14 |
Package-Manager: portage-2.2.28 |
15 |
|
16 |
kde-apps/kmix/files/kmix-16.04.3-crashfix.patch | 26 ++++++++++++ |
17 |
kde-apps/kmix/kmix-16.04.3-r1.ebuild | 56 +++++++++++++++++++++++++ |
18 |
2 files changed, 82 insertions(+) |
19 |
|
20 |
diff --git a/kde-apps/kmix/files/kmix-16.04.3-crashfix.patch b/kde-apps/kmix/files/kmix-16.04.3-crashfix.patch |
21 |
new file mode 100644 |
22 |
index 0000000..c2ce07c |
23 |
--- /dev/null |
24 |
+++ b/kde-apps/kmix/files/kmix-16.04.3-crashfix.patch |
25 |
@@ -0,0 +1,26 @@ |
26 |
+commit 7aa904ecacfd2eeaa91068e17cc9bd79ba058206 |
27 |
+Author: Andreas Sturmlechner <andreas.sturmlechner@×××××.com> |
28 |
+Date: Thu Jul 28 12:49:32 2016 +0200 |
29 |
+ |
30 |
+ Fix infinite recursion by scroll wheel volume change |
31 |
+ |
32 |
+ BUGS: 364141 |
33 |
+ REVIEW: 128546 |
34 |
+ |
35 |
+diff --git a/gui/viewdockareapopup.cpp b/gui/viewdockareapopup.cpp |
36 |
+index 846d9be..24e462b 100644 |
37 |
+--- a/gui/viewdockareapopup.cpp |
38 |
++++ b/gui/viewdockareapopup.cpp |
39 |
+@@ -137,9 +137,11 @@ void ViewDockAreaPopup::wheelEvent ( QWheelEvent * e ) |
40 |
+ { |
41 |
+ if ( _mdws.isEmpty() ) |
42 |
+ return; |
43 |
+- |
44 |
++ |
45 |
++#ifndef X_KMIX_KF5_BUILD |
46 |
+ // Pass wheel event from "border widget" to child |
47 |
+ QApplication::sendEvent( _mdws.first(), e); |
48 |
++#endif |
49 |
+ } |
50 |
+ |
51 |
+ |
52 |
|
53 |
diff --git a/kde-apps/kmix/kmix-16.04.3-r1.ebuild b/kde-apps/kmix/kmix-16.04.3-r1.ebuild |
54 |
new file mode 100644 |
55 |
index 0000000..cac6429 |
56 |
--- /dev/null |
57 |
+++ b/kde-apps/kmix/kmix-16.04.3-r1.ebuild |
58 |
@@ -0,0 +1,56 @@ |
59 |
+# Copyright 1999-2016 Gentoo Foundation |
60 |
+# Distributed under the terms of the GNU General Public License v2 |
61 |
+# $Id$ |
62 |
+ |
63 |
+EAPI=6 |
64 |
+ |
65 |
+KDE_HANDBOOK="false" |
66 |
+KDE_TEST="false" |
67 |
+inherit kde5 |
68 |
+ |
69 |
+DESCRIPTION="Plasma mixer gui" |
70 |
+HOMEPAGE="https://www.kde.org/applications/multimedia/kmix/" |
71 |
+KEYWORDS="~amd64 ~x86" |
72 |
+IUSE="alsa pulseaudio" |
73 |
+ |
74 |
+DEPEND=" |
75 |
+ $(add_frameworks_dep kcompletion) |
76 |
+ $(add_frameworks_dep kconfig) |
77 |
+ $(add_frameworks_dep kconfigwidgets) |
78 |
+ $(add_frameworks_dep kcoreaddons) |
79 |
+ $(add_frameworks_dep kdbusaddons) |
80 |
+ $(add_frameworks_dep kdelibs4support) |
81 |
+ $(add_frameworks_dep kglobalaccel) |
82 |
+ $(add_frameworks_dep ki18n) |
83 |
+ $(add_frameworks_dep kiconthemes) |
84 |
+ $(add_frameworks_dep knotifications) |
85 |
+ $(add_frameworks_dep kwidgetsaddons) |
86 |
+ $(add_frameworks_dep kwindowsystem) |
87 |
+ $(add_frameworks_dep kxmlgui) |
88 |
+ $(add_frameworks_dep plasma) |
89 |
+ $(add_qt_dep qtdbus) |
90 |
+ $(add_qt_dep qtgui) |
91 |
+ $(add_qt_dep qtwidgets) |
92 |
+ $(add_qt_dep qtxml) |
93 |
+ alsa? ( >=media-libs/alsa-lib-1.0.14a ) |
94 |
+ pulseaudio? ( |
95 |
+ media-libs/libcanberra |
96 |
+ >=media-sound/pulseaudio-0.9.12 |
97 |
+ ) |
98 |
+" |
99 |
+RDEPEND="${DEPEND} |
100 |
+ $(add_plasma_dep kde-cli-tools) |
101 |
+" |
102 |
+ |
103 |
+PATCHES=( "${FILESDIR}/${P}-crashfix.patch" ) |
104 |
+ |
105 |
+src_configure() { |
106 |
+ local mycmakeargs=( |
107 |
+ -DKMIX_KF5_BUILD=ON |
108 |
+ $(cmake-utils_use_find_package alsa Alsa) |
109 |
+ $(cmake-utils_use_find_package pulseaudio Canberra) |
110 |
+ $(cmake-utils_use_find_package pulseaudio PulseAudio) |
111 |
+ ) |
112 |
+ |
113 |
+ kde5_src_configure |
114 |
+} |