1 |
commit: f05eb7aedc83e8a96770d155c88731779ab98b4c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 20 15:16:46 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 20 15:32:51 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f05eb7ae |
7 |
|
8 |
kde-plasma/plasma-workspace: Re-add 5.18.5-r0 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
.../plasma-workspace-5.18.5.ebuild | 223 +++++++++++++++++++++ |
14 |
1 file changed, 223 insertions(+) |
15 |
|
16 |
diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.18.5.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.18.5.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..cbf39efe9cc |
19 |
--- /dev/null |
20 |
+++ b/kde-plasma/plasma-workspace/plasma-workspace-5.18.5.ebuild |
21 |
@@ -0,0 +1,223 @@ |
22 |
+# Copyright 1999-2020 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+ECM_HANDBOOK="forceoptional" |
28 |
+ECM_TEST="forceoptional" |
29 |
+KFMIN=5.66.0 |
30 |
+PVCUT=$(ver_cut 1-3) |
31 |
+QTMIN=5.12.3 |
32 |
+VIRTUALX_REQUIRED="test" |
33 |
+inherit ecm kde.org |
34 |
+ |
35 |
+DESCRIPTION="KDE Plasma workspace" |
36 |
+ |
37 |
+LICENSE="GPL-2" # TODO: CHECK |
38 |
+SLOT="5" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
40 |
+IUSE="appstream +calendar geolocation gps qalculate qrcode +semantic-desktop systemd telemetry" |
41 |
+ |
42 |
+REQUIRED_USE="gps? ( geolocation )" |
43 |
+ |
44 |
+# drop qtgui subslot operator when QT_MINIMAL >= 5.14.0 |
45 |
+COMMON_DEPEND=" |
46 |
+ >=dev-qt/qtdbus-${QTMIN}:5 |
47 |
+ >=dev-qt/qtdeclarative-${QTMIN}:5[widgets] |
48 |
+ >=dev-qt/qtgui-${QTMIN}:5=[jpeg] |
49 |
+ >=dev-qt/qtnetwork-${QTMIN}:5 |
50 |
+ >=dev-qt/qtsql-${QTMIN}:5 |
51 |
+ >=dev-qt/qtwidgets-${QTMIN}:5 |
52 |
+ >=dev-qt/qtx11extras-${QTMIN}:5 |
53 |
+ >=dev-qt/qtxml-${QTMIN}:5 |
54 |
+ >=kde-frameworks/kactivities-${KFMIN}:5 |
55 |
+ >=kde-frameworks/kactivities-stats-${KFMIN}:5 |
56 |
+ >=kde-frameworks/kauth-${KFMIN}:5 |
57 |
+ >=kde-frameworks/kbookmarks-${KFMIN}:5 |
58 |
+ >=kde-frameworks/kcompletion-${KFMIN}:5 |
59 |
+ >=kde-frameworks/kconfig-${KFMIN}:5 |
60 |
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5 |
61 |
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5 |
62 |
+ >=kde-frameworks/kcrash-${KFMIN}:5 |
63 |
+ >=kde-frameworks/kdbusaddons-${KFMIN}:5 |
64 |
+ >=kde-frameworks/kdeclarative-${KFMIN}:5 |
65 |
+ >=kde-frameworks/kded-${KFMIN}:5 |
66 |
+ >=kde-frameworks/kdelibs4support-${KFMIN}:5 |
67 |
+ >=kde-frameworks/kglobalaccel-${KFMIN}:5 |
68 |
+ >=kde-frameworks/kguiaddons-${KFMIN}:5 |
69 |
+ >=kde-frameworks/ki18n-${KFMIN}:5 |
70 |
+ >=kde-frameworks/kiconthemes-${KFMIN}:5 |
71 |
+ >=kde-frameworks/kidletime-${KFMIN}:5 |
72 |
+ >=kde-frameworks/kio-${KFMIN}:5 |
73 |
+ >=kde-frameworks/kitemmodels-${KFMIN}:5 |
74 |
+ >=kde-frameworks/kitemviews-${KFMIN}:5 |
75 |
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5 |
76 |
+ >=kde-frameworks/knewstuff-${KFMIN}:5 |
77 |
+ >=kde-frameworks/knotifications-${KFMIN}:5 |
78 |
+ >=kde-frameworks/knotifyconfig-${KFMIN}:5 |
79 |
+ >=kde-frameworks/kpackage-${KFMIN}:5 |
80 |
+ >=kde-frameworks/kpeople-${KFMIN}:5 |
81 |
+ >=kde-frameworks/krunner-${KFMIN}:5 |
82 |
+ >=kde-frameworks/kservice-${KFMIN}:5 |
83 |
+ >=kde-frameworks/ktexteditor-${KFMIN}:5 |
84 |
+ >=kde-frameworks/ktextwidgets-${KFMIN}:5 |
85 |
+ >=kde-frameworks/kwallet-${KFMIN}:5 |
86 |
+ >=kde-frameworks/kwayland-${KFMIN}:5 |
87 |
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 |
88 |
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5 |
89 |
+ >=kde-frameworks/kxmlgui-${KFMIN}:5 |
90 |
+ >=kde-frameworks/plasma-${KFMIN}:5 |
91 |
+ >=kde-frameworks/solid-${KFMIN}:5 |
92 |
+ >=kde-plasma/kscreenlocker-${PVCUT}:5 |
93 |
+ >=kde-plasma/kwin-${PVCUT}:5 |
94 |
+ >=kde-plasma/libkscreen-${PVCUT}:5 |
95 |
+ >=kde-plasma/libksysguard-${PVCUT}:5 |
96 |
+ >=kde-plasma/libkworkspace-${PVCUT}:5 |
97 |
+ media-libs/phonon[qt5(+)] |
98 |
+ sys-libs/zlib |
99 |
+ x11-libs/libICE |
100 |
+ x11-libs/libSM |
101 |
+ x11-libs/libX11 |
102 |
+ x11-libs/libXau |
103 |
+ x11-libs/libxcb |
104 |
+ x11-libs/libXfixes |
105 |
+ x11-libs/libXrender |
106 |
+ x11-libs/libXtst |
107 |
+ x11-libs/xcb-util |
108 |
+ x11-libs/xcb-util-image |
109 |
+ appstream? ( dev-libs/appstream[qt5] ) |
110 |
+ calendar? ( >=kde-frameworks/kholidays-${KFMIN}:5 ) |
111 |
+ geolocation? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:5 ) |
112 |
+ gps? ( sci-geosciences/gpsd ) |
113 |
+ qalculate? ( sci-libs/libqalculate:= ) |
114 |
+ qrcode? ( >=kde-frameworks/prison-${KFMIN}:5 ) |
115 |
+ semantic-desktop? ( >=kde-frameworks/baloo-${KFMIN}:5 ) |
116 |
+ telemetry? ( dev-libs/kuserfeedback:5 ) |
117 |
+" |
118 |
+DEPEND="${COMMON_DEPEND} |
119 |
+ >=dev-qt/qtconcurrent-${QTMIN}:5 |
120 |
+ x11-base/xorg-proto |
121 |
+" |
122 |
+RDEPEND="${COMMON_DEPEND} |
123 |
+ app-text/iso-codes |
124 |
+ >=dev-qt/qdbus-${QTMIN}:5 |
125 |
+ >=dev-qt/qtgraphicaleffects-${QTMIN}:5 |
126 |
+ >=dev-qt/qtpaths-${QTMIN}:5 |
127 |
+ >=dev-qt/qtquickcontrols-${QTMIN}:5[widgets] |
128 |
+ >=dev-qt/qtquickcontrols2-${QTMIN}:5 |
129 |
+ >=kde-apps/kio-extras-19.04.3:5 |
130 |
+ >=kde-frameworks/kquickcharts-${KFMIN}:5 |
131 |
+ >=kde-frameworks/kdesu-${KFMIN}:5 |
132 |
+ >=kde-frameworks/kirigami-${KFMIN}:5 |
133 |
+ >=kde-plasma/ksysguard-${PVCUT}:5 |
134 |
+ >=kde-plasma/milou-${PVCUT}:5 |
135 |
+ >=kde-plasma/plasma-integration-${PVCUT}:5 |
136 |
+ x11-apps/xmessage |
137 |
+ x11-apps/xprop |
138 |
+ x11-apps/xrdb |
139 |
+ x11-apps/xsetroot |
140 |
+ systemd? ( sys-apps/dbus[user-session] ) |
141 |
+ !systemd? ( sys-apps/dbus ) |
142 |
+ !<kde-plasma/plasma-desktop-5.16.80:5 |
143 |
+" |
144 |
+PDEPEND=" |
145 |
+ >=kde-plasma/kde-cli-tools-${PVCUT}:5 |
146 |
+" |
147 |
+ |
148 |
+PATCHES=( |
149 |
+ "${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch" # downstream patch |
150 |
+ |
151 |
+ "${FILESDIR}/${P}-sddm-theme-prevent-logo-leaking.patch" # in Plasma/5.18 |
152 |
+) |
153 |
+ |
154 |
+RESTRICT+=" test" |
155 |
+ |
156 |
+pkg_setup() { |
157 |
+ ecm_pkg_setup |
158 |
+ |
159 |
+ local md5 |
160 |
+ local srcfile=/etc/plasma/XX/10-agent-XX.sh |
161 |
+ local newdir="${EPREFIX}"/etc/xdg/plasma-workspace |
162 |
+ |
163 |
+ if [[ -f "${EROOT}"${srcfile//XX/startup} ]]; then |
164 |
+ md5=$(md5sum "${EROOT}"${srcfile//XX/startup}) |
165 |
+ if [[ ${md5%% *} != 90caaabb40b56bfbe65388841a6dd6ca ]]; then |
166 |
+ elog "Existing modified ${EPREFIX}${srcfile//XX/startup} detected." |
167 |
+ elog "Copying to ${newdir}/env/10-agent-startup.sh..." |
168 |
+ cp -v "${EROOT}"${srcfile//XX/startup} "${T}"/ || die |
169 |
+ fi |
170 |
+ fi |
171 |
+ |
172 |
+ if [[ -f "${EROOT}"${srcfile//XX/shutdown} ]]; then |
173 |
+ md5=$(md5sum "${EROOT}"${srcfile//XX/shutdown}) |
174 |
+ if [[ ${md5%% *} != d7bffa0273f92abd999c7c3c43dbc23d ]]; then |
175 |
+ elog "Existing modified ${EPREFIX}${srcfile//XX/shutdown} detected." |
176 |
+ elog "Copying to ${newdir}/shutdown/10-agent-shutdown.sh..." |
177 |
+ cp -v "${EROOT}"${srcfile//XX/shutdown} "${T}"/ || die |
178 |
+ fi |
179 |
+ fi |
180 |
+} |
181 |
+ |
182 |
+src_prepare() { |
183 |
+ ecm_src_prepare |
184 |
+ |
185 |
+ if [[ ! -f "${T}"/10-agent-startup.sh ]]; then |
186 |
+ cp "${FILESDIR}"/10-agent-startup.sh "${T}"/ || die |
187 |
+ fi |
188 |
+ if [[ ! -f "${T}"/10-agent-shutdown.sh ]]; then |
189 |
+ cp "${FILESDIR}"/10-agent-shutdown.sh "${T}"/ || die |
190 |
+ fi |
191 |
+ |
192 |
+ cmake_comment_add_subdirectory libkworkspace |
193 |
+ # delete colliding libkworkspace translations |
194 |
+ if [[ ${KDE_BUILD_TYPE} = release ]]; then |
195 |
+ find po -type f -name "*po" -and -name "libkworkspace*" -delete || die |
196 |
+ fi |
197 |
+} |
198 |
+ |
199 |
+src_configure() { |
200 |
+ local mycmakeargs=( |
201 |
+ -DBUILD_xembed-sni-proxy=OFF |
202 |
+ $(cmake_use_find_package appstream AppStreamQt) |
203 |
+ $(cmake_use_find_package calendar KF5Holidays) |
204 |
+ $(cmake_use_find_package geolocation KF5NetworkManagerQt) |
205 |
+ $(cmake_use_find_package qalculate Qalculate) |
206 |
+ $(cmake_use_find_package qrcode KF5Prison) |
207 |
+ $(cmake_use_find_package semantic-desktop KF5Baloo) |
208 |
+ $(cmake_use_find_package telemetry KUserFeedback) |
209 |
+ ) |
210 |
+ |
211 |
+ use geolocation && mycmakeargs+=( $(cmake_use_find_package gps libgps) ) |
212 |
+ |
213 |
+ ecm_src_configure |
214 |
+} |
215 |
+ |
216 |
+src_install() { |
217 |
+ ecm_src_install |
218 |
+ |
219 |
+ # default startup and shutdown scripts |
220 |
+ insinto /etc/xdg/plasma-workspace/env |
221 |
+ doins "${T}"/10-agent-startup.sh |
222 |
+ |
223 |
+ insinto /etc/xdg/plasma-workspace/shutdown |
224 |
+ doins "${T}"/10-agent-shutdown.sh |
225 |
+ fperms +x /etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh |
226 |
+} |
227 |
+ |
228 |
+pkg_postinst () { |
229 |
+ ecm_pkg_postinst |
230 |
+ |
231 |
+ # Clean up pre-5.17.4 scripts |
232 |
+ if [[ -e "${EROOT}"/etc/plasma/startup/10-agent-startup.sh ]]; then |
233 |
+ rm "${EROOT}"/etc/plasma/startup/10-agent-startup.sh || die |
234 |
+ elog "Removed obsolete ${EPREFIX}/etc/plasma/startup/10-agent-startup.sh" |
235 |
+ fi |
236 |
+ if [[ -e "${EROOT}"/etc/plasma/shutdown/10-agent-shutdown.sh ]]; then |
237 |
+ rm "${EROOT}"/etc/plasma/shutdown/10-agent-shutdown.sh || die |
238 |
+ elog "Removed obsolete ${EPREFIX}/etc/plasma/shutdown/10-agent-shutdown.sh" |
239 |
+ fi |
240 |
+ |
241 |
+ elog "To enable gpg-agent and/or ssh-agent in Plasma sessions," |
242 |
+ elog "edit ${EPREFIX}/etc/xdg/plasma-workspace/env/10-agent-startup.sh" |
243 |
+ elog "and ${EPREFIX}/etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh" |
244 |
+} |