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-meta/
Date: Sat, 01 Dec 2018 19:50:21
Message-Id: 1543673126.3b0b4a44951ad9f9d089d74209e680511187260d.asturm@gentoo
1 commit: 3b0b4a44951ad9f9d089d74209e680511187260d
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 14:05:26 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 14:05:26 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=3b0b4a44
7
8 kde-plasma/plasma-meta: Sync with Gentoo ebuild repo
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 kde-plasma/plasma-meta/metadata.xml | 1 +
14 .../plasma-meta/plasma-meta-5.14.49.9999.ebuild | 42 +++++++++++++++-------
15 kde-plasma/plasma-meta/plasma-meta-9999.ebuild | 42 +++++++++++++++-------
16 3 files changed, 61 insertions(+), 24 deletions(-)
17
18 diff --git a/kde-plasma/plasma-meta/metadata.xml b/kde-plasma/plasma-meta/metadata.xml
19 index 34afc891f1..ee7a302e7d 100644
20 --- a/kde-plasma/plasma-meta/metadata.xml
21 +++ b/kde-plasma/plasma-meta/metadata.xml
22 @@ -7,6 +7,7 @@
23 </maintainer>
24 <use>
25 <flag name="browser-integration">Enable integration with Chrome/Firefox with browser extensions</flag>
26 + <flag name="consolekit">Enable <pkg>sys-auth/consolekit</pkg> support instead of logind session tracking</flag>
27 <flag name="crypt">Pull in <pkg>kde-plasma/plasma-vault</pkg> for encrypted vaults integration</flag>
28 <flag name="display-manager">Pull in a graphical display manager</flag>
29 <flag name="elogind">Use <pkg>sys-auth/elogind</pkg> for session tracking</flag>
30
31 diff --git a/kde-plasma/plasma-meta/plasma-meta-5.14.49.9999.ebuild b/kde-plasma/plasma-meta/plasma-meta-5.14.49.9999.ebuild
32 index 151d6cd918..798e68b5f7 100644
33 --- a/kde-plasma/plasma-meta/plasma-meta-5.14.49.9999.ebuild
34 +++ b/kde-plasma/plasma-meta/plasma-meta-5.14.49.9999.ebuild
35 @@ -11,10 +11,10 @@ HOMEPAGE="https://www.kde.org/plasma-desktop"
36 LICENSE="metapackage"
37 SLOT="5"
38 KEYWORDS=""
39 -IUSE="bluetooth +browser-integration crypt +display-manager elogind grub gtk +handbook
40 +IUSE="bluetooth +browser-integration consolekit crypt +display-manager elogind grub gtk +handbook
41 +legacy-systray networkmanager pam plymouth +pm-utils pulseaudio +sddm sdk systemd +wallpapers"
42
43 -REQUIRED_USE="?? ( elogind systemd )"
44 +REQUIRED_USE="?? ( consolekit elogind systemd )"
45
46 RDEPEND="
47 $(add_plasma_dep breeze)
48 @@ -50,11 +50,15 @@ RDEPEND="
49 sys-fs/udisks:2[elogind?,systemd?]
50 bluetooth? ( $(add_plasma_dep bluedevil) )
51 browser-integration? ( $(add_plasma_dep plasma-browser-integration) )
52 + consolekit? (
53 + >=sys-auth/consolekit-1.0.1
54 + pm-utils? ( sys-power/pm-utils )
55 + )
56 crypt? ( $(add_plasma_dep plasma-vault) )
57 display-manager? (
58 sddm? (
59 $(add_plasma_dep sddm-kcm)
60 - x11-misc/sddm[elogind?,systemd?]
61 + x11-misc/sddm[consolekit?,elogind?,systemd?]
62 )
63 !sddm? ( x11-misc/lightdm )
64 )
65 @@ -67,11 +71,11 @@ RDEPEND="
66 legacy-systray? ( $(add_plasma_dep xembed-sni-proxy) )
67 networkmanager? (
68 $(add_plasma_dep plasma-nm)
69 - net-misc/networkmanager[elogind?,systemd?]
70 + net-misc/networkmanager[consolekit?,elogind?,systemd?]
71 )
72 pam? (
73 $(add_plasma_dep kwallet-pam)
74 - sys-auth/pambase[elogind?,systemd?]
75 + sys-auth/pambase[consolekit?,elogind?,systemd?]
76 )
77 plymouth? (
78 $(add_plasma_dep breeze-plymouth)
79 @@ -80,11 +84,25 @@ RDEPEND="
80 pulseaudio? ( $(add_plasma_dep plasma-pa) )
81 sdk? ( $(add_plasma_dep plasma-sdk) )
82 wallpapers? ( $(add_plasma_dep plasma-workspace-wallpapers) )
83 - !elogind? ( !systemd? (
84 - >=sys-auth/consolekit-1.0.1
85 - display-manager? ( sddm? ( x11-misc/sddm[consolekit] ) )
86 - networkmanager? ( net-misc/networkmanager[consolekit] )
87 - pam? ( sys-auth/pambase[consolekit] )
88 - pm-utils? ( sys-power/pm-utils )
89 - ) )
90 "
91 +
92 +pkg_postinst() {
93 + local i selected use_pkg_map=(
94 + consolekit:sys-auth/consolekit
95 + elogind:sys-auth/elogind
96 + systemd:sys-apps/systemd
97 + )
98 + for i in ${use_pkg_map[@]}; do
99 + use ${i%:*} && selected="${i%:*}"
100 + done
101 + for i in ${use_pkg_map[@]}; do
102 + if ! use ${i%:*} && has_version ${i#*:}; then
103 + ewarn "An existing installation of ${i#*:} was detected even though"
104 + ewarn "${PN} was configured with USE ${selected} instead of ${i%:*}."
105 + ewarn "There can only be one session manager at runtime, otherwise random issues"
106 + ewarn "may occur. Please make sure USE ${i%:*} is nowhere enabled in make.conf"
107 + ewarn "or package.use and remove ${i#*:} before raising bugs."
108 + ewarn "For more information, visit https://wiki.gentoo.org/wiki/KDE"
109 + fi
110 + done
111 +}
112
113 diff --git a/kde-plasma/plasma-meta/plasma-meta-9999.ebuild b/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
114 index 151d6cd918..798e68b5f7 100644
115 --- a/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
116 +++ b/kde-plasma/plasma-meta/plasma-meta-9999.ebuild
117 @@ -11,10 +11,10 @@ HOMEPAGE="https://www.kde.org/plasma-desktop"
118 LICENSE="metapackage"
119 SLOT="5"
120 KEYWORDS=""
121 -IUSE="bluetooth +browser-integration crypt +display-manager elogind grub gtk +handbook
122 +IUSE="bluetooth +browser-integration consolekit crypt +display-manager elogind grub gtk +handbook
123 +legacy-systray networkmanager pam plymouth +pm-utils pulseaudio +sddm sdk systemd +wallpapers"
124
125 -REQUIRED_USE="?? ( elogind systemd )"
126 +REQUIRED_USE="?? ( consolekit elogind systemd )"
127
128 RDEPEND="
129 $(add_plasma_dep breeze)
130 @@ -50,11 +50,15 @@ RDEPEND="
131 sys-fs/udisks:2[elogind?,systemd?]
132 bluetooth? ( $(add_plasma_dep bluedevil) )
133 browser-integration? ( $(add_plasma_dep plasma-browser-integration) )
134 + consolekit? (
135 + >=sys-auth/consolekit-1.0.1
136 + pm-utils? ( sys-power/pm-utils )
137 + )
138 crypt? ( $(add_plasma_dep plasma-vault) )
139 display-manager? (
140 sddm? (
141 $(add_plasma_dep sddm-kcm)
142 - x11-misc/sddm[elogind?,systemd?]
143 + x11-misc/sddm[consolekit?,elogind?,systemd?]
144 )
145 !sddm? ( x11-misc/lightdm )
146 )
147 @@ -67,11 +71,11 @@ RDEPEND="
148 legacy-systray? ( $(add_plasma_dep xembed-sni-proxy) )
149 networkmanager? (
150 $(add_plasma_dep plasma-nm)
151 - net-misc/networkmanager[elogind?,systemd?]
152 + net-misc/networkmanager[consolekit?,elogind?,systemd?]
153 )
154 pam? (
155 $(add_plasma_dep kwallet-pam)
156 - sys-auth/pambase[elogind?,systemd?]
157 + sys-auth/pambase[consolekit?,elogind?,systemd?]
158 )
159 plymouth? (
160 $(add_plasma_dep breeze-plymouth)
161 @@ -80,11 +84,25 @@ RDEPEND="
162 pulseaudio? ( $(add_plasma_dep plasma-pa) )
163 sdk? ( $(add_plasma_dep plasma-sdk) )
164 wallpapers? ( $(add_plasma_dep plasma-workspace-wallpapers) )
165 - !elogind? ( !systemd? (
166 - >=sys-auth/consolekit-1.0.1
167 - display-manager? ( sddm? ( x11-misc/sddm[consolekit] ) )
168 - networkmanager? ( net-misc/networkmanager[consolekit] )
169 - pam? ( sys-auth/pambase[consolekit] )
170 - pm-utils? ( sys-power/pm-utils )
171 - ) )
172 "
173 +
174 +pkg_postinst() {
175 + local i selected use_pkg_map=(
176 + consolekit:sys-auth/consolekit
177 + elogind:sys-auth/elogind
178 + systemd:sys-apps/systemd
179 + )
180 + for i in ${use_pkg_map[@]}; do
181 + use ${i%:*} && selected="${i%:*}"
182 + done
183 + for i in ${use_pkg_map[@]}; do
184 + if ! use ${i%:*} && has_version ${i#*:}; then
185 + ewarn "An existing installation of ${i#*:} was detected even though"
186 + ewarn "${PN} was configured with USE ${selected} instead of ${i%:*}."
187 + ewarn "There can only be one session manager at runtime, otherwise random issues"
188 + ewarn "may occur. Please make sure USE ${i%:*} is nowhere enabled in make.conf"
189 + ewarn "or package.use and remove ${i#*:} before raising bugs."
190 + ewarn "For more information, visit https://wiki.gentoo.org/wiki/KDE"
191 + fi
192 + done
193 +}