Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-plasma/plasma-workspace/
Date: Fri, 14 May 2021 20:42:04
Message-Id: 1621024732.68a42d99027217a0247b3e067ae5f51081240b0d.asturm@gentoo
1 commit: 68a42d99027217a0247b3e067ae5f51081240b0d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 14 20:32:28 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 14 20:38:52 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=68a42d99
7
8 kde-plasma/plasma-workspace: 5.21.90 version bump
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 .../plasma-workspace-5.21.90.ebuild | 207 +++++++++++++++++++++
13 1 file changed, 207 insertions(+)
14
15 diff --git a/kde-plasma/plasma-workspace/plasma-workspace-5.21.90.ebuild b/kde-plasma/plasma-workspace/plasma-workspace-5.21.90.ebuild
16 new file mode 100644
17 index 0000000000..56a8a45e5f
18 --- /dev/null
19 +++ b/kde-plasma/plasma-workspace/plasma-workspace-5.21.90.ebuild
20 @@ -0,0 +1,207 @@
21 +# Copyright 1999-2021 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +ECM_HANDBOOK="forceoptional"
27 +ECM_TEST="forceoptional"
28 +KFMIN=5.82.0
29 +PVCUT=$(ver_cut 1-3)
30 +QTMIN=5.15.2
31 +VIRTUALX_REQUIRED="test"
32 +inherit ecm kde.org
33 +
34 +DESCRIPTION="KDE Plasma workspace"
35 +
36 +LICENSE="GPL-2" # TODO: CHECK
37 +SLOT="5"
38 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
39 +IUSE="appstream +calculator +calendar +fontconfig geolocation gps screencast
40 ++semantic-desktop systemd telemetry"
41 +
42 +REQUIRED_USE="gps? ( geolocation )"
43 +RESTRICT+=" test"
44 +
45 +COMMON_DEPEND="
46 + >=dev-libs/wayland-1.15
47 + >=dev-qt/qtdbus-${QTMIN}:5
48 + >=dev-qt/qtdeclarative-${QTMIN}:5[widgets]
49 + >=dev-qt/qtgui-${QTMIN}:5=[jpeg,libinput]
50 + >=dev-qt/qtnetwork-${QTMIN}:5
51 + >=dev-qt/qtsql-${QTMIN}:5
52 + >=dev-qt/qtsvg-${QTMIN}:5
53 + >=dev-qt/qtwayland-${QTMIN}:5
54 + >=dev-qt/qtwidgets-${QTMIN}:5
55 + >=dev-qt/qtx11extras-${QTMIN}:5
56 + >=dev-qt/qtxml-${QTMIN}:5
57 + >=kde-frameworks/kactivities-${KFMIN}:5
58 + >=kde-frameworks/kactivities-stats-${KFMIN}:5
59 + >=kde-frameworks/karchive-${KFMIN}:5
60 + >=kde-frameworks/kauth-${KFMIN}:5
61 + >=kde-frameworks/kbookmarks-${KFMIN}:5
62 + >=kde-frameworks/kcompletion-${KFMIN}:5
63 + >=kde-frameworks/kconfig-${KFMIN}:5
64 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5
65 + >=kde-frameworks/kcoreaddons-${KFMIN}:5
66 + >=kde-frameworks/kcrash-${KFMIN}:5
67 + >=kde-frameworks/kdbusaddons-${KFMIN}:5
68 + >=kde-frameworks/kdeclarative-${KFMIN}:5
69 + >=kde-frameworks/kded-${KFMIN}:5
70 + >=kde-frameworks/kglobalaccel-${KFMIN}:5
71 + >=kde-frameworks/kguiaddons-${KFMIN}:5
72 + >=kde-frameworks/ki18n-${KFMIN}:5
73 + >=kde-frameworks/kiconthemes-${KFMIN}:5
74 + >=kde-frameworks/kidletime-${KFMIN}:5
75 + >=kde-frameworks/kinit-${KFMIN}:5
76 + >=kde-frameworks/kio-${KFMIN}:5
77 + >=kde-frameworks/kitemmodels-${KFMIN}:5
78 + >=kde-frameworks/kitemviews-${KFMIN}:5
79 + >=kde-frameworks/kjobwidgets-${KFMIN}:5
80 + >=kde-frameworks/knewstuff-${KFMIN}:5
81 + >=kde-frameworks/knotifications-${KFMIN}:5
82 + >=kde-frameworks/knotifyconfig-${KFMIN}:5
83 + >=kde-frameworks/kpackage-${KFMIN}:5
84 + >=kde-frameworks/kpeople-${KFMIN}:5
85 + >=kde-frameworks/krunner-${KFMIN}:5
86 + >=kde-frameworks/kservice-${KFMIN}:5
87 + >=kde-frameworks/ktexteditor-${KFMIN}:5
88 + >=kde-frameworks/ktextwidgets-${KFMIN}:5
89 + >=kde-frameworks/kunitconversion-${KFMIN}:5
90 + >=kde-frameworks/kwallet-${KFMIN}:5
91 + >=kde-frameworks/kwayland-${KFMIN}:5
92 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
93 + >=kde-frameworks/kwindowsystem-${KFMIN}:5
94 + >=kde-frameworks/kxmlgui-${KFMIN}:5
95 + >=kde-frameworks/plasma-${KFMIN}:5
96 + >=kde-frameworks/prison-${KFMIN}:5[qml]
97 + >=kde-frameworks/solid-${KFMIN}:5
98 + >=kde-plasma/breeze-${PVCUT}:5
99 + >=kde-plasma/kscreenlocker-${PVCUT}:5
100 + >=kde-plasma/kwin-${PVCUT}:5
101 + >=kde-plasma/layer-shell-qt-${PVCUT}:5
102 + >=kde-plasma/libkscreen-${PVCUT}:5
103 + >=kde-plasma/libksysguard-${PVCUT}:5
104 + >=kde-plasma/libkworkspace-${PVCUT}:5
105 + >=media-libs/phonon-4.11.0
106 + sys-libs/zlib
107 + x11-libs/libICE
108 + x11-libs/libSM
109 + x11-libs/libX11
110 + x11-libs/libXau
111 + x11-libs/libxcb
112 + x11-libs/libXcursor
113 + x11-libs/libXfixes
114 + x11-libs/libXrender
115 + x11-libs/libXtst
116 + x11-libs/xcb-util
117 + x11-libs/xcb-util-image
118 + appstream? ( dev-libs/appstream[qt5] )
119 + calculator? ( sci-libs/libqalculate:= )
120 + calendar? ( >=kde-frameworks/kholidays-${KFMIN}:5 )
121 + fontconfig? (
122 + >=dev-qt/qtprintsupport-${QTMIN}:5
123 + media-libs/fontconfig
124 + x11-libs/libXft
125 + x11-libs/xcb-util-image
126 + )
127 + geolocation? ( >=kde-frameworks/networkmanager-qt-${KFMIN}:5 )
128 + gps? ( sci-geosciences/gpsd )
129 + screencast? (
130 + >=media-video/pipewire-0.3:=
131 + x11-libs/libdrm
132 + )
133 + semantic-desktop? ( >=kde-frameworks/baloo-${KFMIN}:5 )
134 + telemetry? ( dev-libs/kuserfeedback:5 )
135 +"
136 +DEPEND="${COMMON_DEPEND}
137 + >=dev-libs/plasma-wayland-protocols-1.1.1
138 + >=dev-qt/qtconcurrent-${QTMIN}:5
139 + x11-base/xorg-proto
140 + fontconfig? ( x11-libs/libXrender )
141 +"
142 +RDEPEND="${COMMON_DEPEND}
143 + app-text/iso-codes
144 + >=dev-qt/qdbus-${QTMIN}:5
145 + >=dev-qt/qtgraphicaleffects-${QTMIN}:5
146 + >=dev-qt/qtpaths-${QTMIN}:5
147 + >=dev-qt/qtquickcontrols-${QTMIN}:5[widgets]
148 + >=dev-qt/qtquickcontrols2-${QTMIN}:5
149 + >=kde-apps/kio-extras-19.04.3:5
150 + >=kde-frameworks/kdesu-${KFMIN}:5
151 + >=kde-frameworks/kirigami-${KFMIN}:5
152 + >=kde-frameworks/kquickcharts-${KFMIN}:5
153 + >=kde-plasma/milou-${PVCUT}:5
154 + >=kde-plasma/plasma-integration-${PVCUT}:5
155 + x11-apps/xmessage
156 + x11-apps/xprop
157 + x11-apps/xrdb
158 + x11-apps/xsetroot
159 + systemd? ( sys-apps/dbus[user-session] )
160 + !systemd? ( sys-apps/dbus )
161 + !<kde-plasma/plasma-desktop-5.21.90:5
162 +"
163 +BDEPEND="
164 + >=dev-util/cmake-3.14
165 + virtual/pkgconfig
166 +"
167 +PDEPEND="
168 + >=kde-plasma/kde-cli-tools-${PVCUT}:5
169 +"
170 +
171 +PATCHES=( "${FILESDIR}/${PN}-5.14.2-split-libkworkspace.patch" )
172 +
173 +src_prepare() {
174 + ecm_src_prepare
175 +
176 + cmake_comment_add_subdirectory libkworkspace
177 + # delete colliding libkworkspace translations
178 + if [[ ${KDE_BUILD_TYPE} = release ]]; then
179 + find po -type f -name "*po" -and -name "libkworkspace*" -delete || die
180 + fi
181 +
182 + # TODO: try to get a build switch upstreamed
183 + if ! use screencast; then
184 + sed -e "s/^pkg_check_modules.*PipeWire/#&/" -i CMakeLists.txt || die
185 + fi
186 +
187 + # KDE-bug: 433730
188 + use calculator ||
189 + cmake_run_in runners cmake_comment_add_subdirectory calculator
190 +}
191 +
192 +src_configure() {
193 + local mycmakeargs=(
194 + -DBUILD_xembed-sni-proxy=OFF
195 + -DCMAKE_DISABLE_FIND_PACKAGE_PackageKitQt5=ON
196 + $(cmake_use_find_package appstream AppStreamQt)
197 + $(cmake_use_find_package calendar KF5Holidays)
198 + $(cmake_use_find_package fontconfig Fontconfig)
199 + $(cmake_use_find_package geolocation KF5NetworkManagerQt)
200 + $(cmake_use_find_package semantic-desktop KF5Baloo)
201 + $(cmake_use_find_package telemetry KUserFeedback)
202 + )
203 +
204 + use geolocation && mycmakeargs+=( $(cmake_use_find_package gps libgps) )
205 +
206 + ecm_src_configure
207 +}
208 +
209 +src_install() {
210 + ecm_src_install
211 +
212 + # default startup and shutdown scripts
213 + insinto /etc/xdg/plasma-workspace/env
214 + doins "${FILESDIR}"/10-agent-startup.sh
215 +
216 + insinto /etc/xdg/plasma-workspace/shutdown
217 + doins "${FILESDIR}"/10-agent-shutdown.sh
218 + fperms +x /etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh
219 +}
220 +
221 +pkg_postinst () {
222 + ecm_pkg_postinst
223 +
224 + elog "To enable gpg-agent and/or ssh-agent in Plasma sessions,"
225 + elog "edit ${EPREFIX}/etc/xdg/plasma-workspace/env/10-agent-startup.sh"
226 + elog "and ${EPREFIX}/etc/xdg/plasma-workspace/shutdown/10-agent-shutdown.sh"
227 +}