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-plasma/plasma-workspace/files/, kde-plasma/plasma-workspace/
Date: Sun, 26 Jun 2016 17:19:29
Message-Id: 1466961547.1143b8d33309489ded30c7ea409a47c6b01efb72.kensington@gentoo
1 commit: 1143b8d33309489ded30c7ea409a47c6b01efb72
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 26 17:18:37 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 26 17:19:07 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1143b8d3
7
8 kde-plasma/plasma-workspace: backport patch from upstream to fix panel geometry
9
10 This resolves a regression introduced by plasma-workspace-5.6.5-drop-kscreen-dep.patch.
11
12 Package-Manager: portage-2.3.0
13
14 .../files/plasma-workspace-5.6.5.1-struts.patch | 29 ++++
15 .../plasma-workspace-5.6.5.1-r1.ebuild | 167 +++++++++++++++++++++
16 2 files changed, 196 insertions(+)
17
18 diff --git a/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-struts.patch b/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-struts.patch
19 new file mode 100644
20 index 0000000..4fc7bd2
21 --- /dev/null
22 +++ b/kde-plasma/plasma-workspace/files/plasma-workspace-5.6.5.1-struts.patch
23 @@ -0,0 +1,29 @@
24 +From b866bbe75e04584f0a54980c2c21cba2eadc123b Mon Sep 17 00:00:00 2001
25 +From: Marco Martin <notmart@×××××.com>
26 +Date: Mon, 13 Jun 2016 14:23:43 +0200
27 +Subject: [PATCH] use the whole geometry for the struts
28 +
29 +screen()->virtualSize() is the union of the sizes
30 +of all screens
31 +screen()->geometry().size() is the size of just the
32 +single screen
33 +---
34 + shell/panelview.cpp | 2 +-
35 + 1 file changed, 1 insertion(+), 1 deletion(-)
36 +
37 +diff --git a/shell/panelview.cpp b/shell/panelview.cpp
38 +index fb965e8..b27c18b 100644
39 +--- a/shell/panelview.cpp
40 ++++ b/shell/panelview.cpp
41 +@@ -856,7 +856,7 @@ void PanelView::updateStruts()
42 + if (m_visibilityMode == NormalPanel) {
43 + const QRect thisScreen = screen()->geometry();
44 + // QScreen::virtualGeometry() is very unreliable (Qt 5.5)
45 +- const QRect wholeScreen = QRect(QPoint(0, 0), screen()->geometry().size());
46 ++ const QRect wholeScreen = QRect(QPoint(0, 0), screen()->virtualSize());
47 +
48 + //Extended struts against a screen edge near to another screen are really harmful, so windows maximized under the panel is a lesser pain
49 + //TODO: force "windows can cover" in those cases?
50 +--
51 +2.7.3
52 +
53
54 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r1.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r1.ebuild
55 new file mode 100644
56 index 0000000..e4e3f55
57 --- /dev/null
58 +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.6.5.1-r1.ebuild
59 @@ -0,0 +1,167 @@
60 +# Copyright 1999-2016 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +# $Id$
63 +
64 +EAPI=6
65 +
66 +KDE_HANDBOOK="forceoptional"
67 +KDE_TEST="forceoptional"
68 +VIRTUALX_REQUIRED="test"
69 +inherit kde5 multilib qmake-utils
70 +
71 +DESCRIPTION="KDE Plasma workspace"
72 +KEYWORDS="~amd64 ~arm ~x86"
73 +IUSE="+geolocation gps prison qalculate"
74 +
75 +COMMON_DEPEND="
76 + $(add_frameworks_dep baloo)
77 + $(add_frameworks_dep kactivities)
78 + $(add_frameworks_dep kauth)
79 + $(add_frameworks_dep kbookmarks)
80 + $(add_frameworks_dep kcmutils)
81 + $(add_frameworks_dep kcompletion)
82 + $(add_frameworks_dep kconfig)
83 + $(add_frameworks_dep kconfigwidgets)
84 + $(add_frameworks_dep kcoreaddons)
85 + $(add_frameworks_dep kcrash)
86 + $(add_frameworks_dep kdbusaddons)
87 + $(add_frameworks_dep kdeclarative)
88 + $(add_frameworks_dep kdelibs4support)
89 + $(add_frameworks_dep kdesu)
90 + $(add_frameworks_dep kglobalaccel)
91 + $(add_frameworks_dep kguiaddons)
92 + $(add_frameworks_dep ki18n)
93 + $(add_frameworks_dep kiconthemes)
94 + $(add_frameworks_dep kidletime)
95 + $(add_frameworks_dep kio)
96 + $(add_frameworks_dep kitemviews)
97 + $(add_frameworks_dep kjobwidgets)
98 + $(add_frameworks_dep kjs)
99 + $(add_frameworks_dep kjsembed)
100 + $(add_frameworks_dep knewstuff)
101 + $(add_frameworks_dep knotifications)
102 + $(add_frameworks_dep knotifyconfig)
103 + $(add_frameworks_dep kpackage)
104 + $(add_frameworks_dep krunner)
105 + $(add_frameworks_dep kservice)
106 + $(add_frameworks_dep ktexteditor)
107 + $(add_frameworks_dep ktextwidgets)
108 + $(add_frameworks_dep kwallet)
109 + $(add_frameworks_dep kwayland)
110 + $(add_frameworks_dep kwidgetsaddons)
111 + $(add_frameworks_dep kwindowsystem)
112 + $(add_frameworks_dep kxmlgui)
113 + $(add_frameworks_dep kxmlrpcclient)
114 + $(add_frameworks_dep plasma)
115 + $(add_frameworks_dep solid)
116 + $(add_plasma_dep kscreenlocker)
117 + $(add_plasma_dep kwin)
118 + $(add_plasma_dep libksysguard)
119 + $(add_qt_dep qtconcurrent)
120 + $(add_qt_dep qtdbus)
121 + $(add_qt_dep qtdeclarative 'widgets')
122 + $(add_qt_dep qtgui 'jpeg')
123 + $(add_qt_dep qtnetwork)
124 + $(add_qt_dep qtscript)
125 + $(add_qt_dep qtsql)
126 + $(add_qt_dep qtwidgets)
127 + $(add_qt_dep qtx11extras)
128 + $(add_qt_dep qtxml)
129 + dev-libs/libdbusmenu-qt[qt5]
130 + media-libs/phonon[qt5]
131 + sys-libs/zlib
132 + x11-libs/libICE
133 + x11-libs/libSM
134 + x11-libs/libX11
135 + x11-libs/libXau
136 + x11-libs/libxcb
137 + x11-libs/libXfixes
138 + x11-libs/libXrender
139 + x11-libs/xcb-util
140 + x11-libs/xcb-util-image
141 + geolocation? ( $(add_frameworks_dep networkmanager-qt) )
142 + gps? ( sci-geosciences/gpsd )
143 + prison? ( media-libs/prison:5 )
144 + qalculate? ( sci-libs/libqalculate )
145 +"
146 +RDEPEND="${COMMON_DEPEND}
147 + $(add_frameworks_dep kded)
148 + $(add_kdeapps_dep kio-extras)
149 + $(add_plasma_dep kde-cli-tools)
150 + $(add_plasma_dep ksysguard)
151 + $(add_plasma_dep milou)
152 + $(add_qt_dep qdbus)
153 + $(add_qt_dep qtgraphicaleffects)
154 + $(add_qt_dep qtpaths)
155 + $(add_qt_dep qtquickcontrols 'widgets')
156 + app-text/iso-codes
157 + x11-apps/mkfontdir
158 + x11-apps/xmessage
159 + x11-apps/xprop
160 + x11-apps/xrdb
161 + x11-apps/xset
162 + x11-apps/xsetroot
163 + !dev-libs/xembed-sni-proxy
164 + !kde-base/freespacenotifier:4
165 + !kde-base/libtaskmanager:4
166 + !kde-base/kcminit:4
167 + !kde-base/kdebase-startkde:4
168 + !kde-base/klipper:4
169 + !kde-base/krunner:4
170 + !kde-base/ksmserver:4
171 + !kde-base/ksplash:4
172 + !kde-base/plasma-workspace:4
173 +"
174 +DEPEND="${COMMON_DEPEND}
175 + x11-proto/xproto
176 +"
177 +
178 +PATCHES=(
179 + "${FILESDIR}/${PN}-5.4-startkde-script.patch"
180 + "${FILESDIR}/${PN}-5.6.0-rpath.patch"
181 + "${FILESDIR}/${PN}-5.6.5-drop-kscreen-dep.patch"
182 + "${FILESDIR}/${PN}-5.6.5.1-struts.patch"
183 +)
184 +
185 +RESTRICT="test"
186 +
187 +S=${WORKDIR}/${PN}-5.6.5
188 +
189 +src_prepare() {
190 + kde5_src_prepare
191 +
192 + sed -e "s|\`qtpaths|\`$(qt5_get_bindir)/qtpaths|" \
193 + -i startkde/startkde.cmake startkde/startplasmacompositor.cmake || die
194 +}
195 +
196 +src_configure() {
197 + local mycmakeargs=(
198 + $(cmake-utils_use_find_package geolocation KF5NetworkManagerQt)
199 + $(cmake-utils_use_find_package gps libgps)
200 + $(cmake-utils_use_find_package prison KF5Prison)
201 + $(cmake-utils_use_find_package qalculate Qalculate)
202 + )
203 +
204 + kde5_src_configure
205 +}
206 +
207 +src_install() {
208 + kde5_src_install
209 +
210 + # startup and shutdown scripts
211 + insinto /etc/plasma/startup
212 + doins "${FILESDIR}/10-agent-startup.sh"
213 +
214 + insinto /etc/plasma/shutdown
215 + doins "${FILESDIR}/10-agent-shutdown.sh"
216 +}
217 +
218 +pkg_postinst () {
219 + kde5_pkg_postinst
220 +
221 + echo
222 + elog "To enable gpg-agent and/or ssh-agent in Plasma sessions,"
223 + elog "edit ${EPREFIX}/etc/plasma/startup/10-agent-startup.sh and"
224 + elog "${EPREFIX}/etc/plasma/shutdown/10-agent-shutdown.sh"
225 + echo
226 +}