1 |
commit: 0e2ff88702f11a324a4978df9d7d960b1b2992c9 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jul 4 23:37:35 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jul 4 23:37:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e2ff887 |
7 |
|
8 |
media-video/wireplumber: drop 0.4.9, 0.4.9-r1, 0.4.10-r1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
media-video/wireplumber/Manifest | 1 - |
13 |
...ment-which-options-need-to-be-turned-off-.patch | 87 --------------- |
14 |
...icy-device-profile-clear-tables-when-devi.patch | 33 ------ |
15 |
.../wireplumber/wireplumber-0.4.10-r1.ebuild | 122 --------------------- |
16 |
.../wireplumber/wireplumber-0.4.9-r1.ebuild | 121 -------------------- |
17 |
media-video/wireplumber/wireplumber-0.4.9.ebuild | 116 -------------------- |
18 |
6 files changed, 480 deletions(-) |
19 |
|
20 |
diff --git a/media-video/wireplumber/Manifest b/media-video/wireplumber/Manifest |
21 |
index cf271da67018..ece045dc24b3 100644 |
22 |
--- a/media-video/wireplumber/Manifest |
23 |
+++ b/media-video/wireplumber/Manifest |
24 |
@@ -1,2 +1 @@ |
25 |
DIST wireplumber-0.4.10.tar.gz 395588 BLAKE2B 6df1af17d1e53ab1449a2f6f9af5a0c4f7b1cd981e07556e5ea3c6b4d5d624e66b97ce4f945f7ccccebbf72b75d35d10990fac11b5228275f27e5320885ff1ec SHA512 342e8bba2cf00faab71ef39bb361b5ada66ff3a68ccf7a756ea1ca402da6e94784eece277ca02992bc7573c51cb8b1bad33aa9c593b3d1bfe0bb0286e2f4506f |
26 |
-DIST wireplumber-0.4.9.tar.gz 376170 BLAKE2B 50f552c730ac543fc2e8b0e054c861bcd22ed281a62f2921fb956f39b917cce6eb53287dfcfc81db240476f82f5cf1d7556fa34be8bf507ff847089536b81f44 SHA512 39b9e9be014489042fe480219b99d7591e0b68dd44b889bd5c6aeee73e771adb807bc21f48d031217f097182827bd2f48b68d52291036d52e95d4fa75e7f9929 |
27 |
|
28 |
diff --git a/media-video/wireplumber/files/wireplumber-0.4.9-config-document-which-options-need-to-be-turned-off-.patch b/media-video/wireplumber/files/wireplumber-0.4.9-config-document-which-options-need-to-be-turned-off-.patch |
29 |
deleted file mode 100644 |
30 |
index 9e664ec56564..000000000000 |
31 |
--- a/media-video/wireplumber/files/wireplumber-0.4.9-config-document-which-options-need-to-be-turned-off-.patch |
32 |
+++ /dev/null |
33 |
@@ -1,87 +0,0 @@ |
34 |
-https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/0da29f38181e391160fa8702623050b8544ec775 |
35 |
- |
36 |
-From 0da29f38181e391160fa8702623050b8544ec775 Mon Sep 17 00:00:00 2001 |
37 |
-From: George Kiagiadakis <george.kiagiadakis@×××××××××.com> |
38 |
-Date: Mon, 4 Apr 2022 14:38:28 +0300 |
39 |
-Subject: [PATCH] config: document which options need to be turned off to use |
40 |
- wp without D-Bus |
41 |
- |
42 |
-and actually implement an option for the logind module |
43 |
- |
44 |
-Related to: #237 |
45 |
---- |
46 |
- src/config/bluetooth.lua.d/30-bluez-monitor.lua | 4 +++- |
47 |
- src/config/bluetooth.lua.d/50-bluez-config.lua | 8 ++++++++ |
48 |
- src/config/main.lua.d/50-alsa-config.lua | 4 +++- |
49 |
- src/config/main.lua.d/50-default-access-config.lua | 3 +++ |
50 |
- 4 files changed, 17 insertions(+), 2 deletions(-) |
51 |
- |
52 |
-diff --git a/src/config/bluetooth.lua.d/30-bluez-monitor.lua b/src/config/bluetooth.lua.d/30-bluez-monitor.lua |
53 |
-index 266d3e2f..ba86657f 100644 |
54 |
---- a/src/config/bluetooth.lua.d/30-bluez-monitor.lua |
55 |
-+++ b/src/config/bluetooth.lua.d/30-bluez-monitor.lua |
56 |
-@@ -8,5 +8,7 @@ function bluez_monitor.enable() |
57 |
- rules = bluez_monitor.rules, |
58 |
- }) |
59 |
- |
60 |
-- load_optional_module("logind") |
61 |
-+ if bluez_monitor.properties["with-logind"] then |
62 |
-+ load_optional_module("logind") |
63 |
-+ end |
64 |
- end |
65 |
-diff --git a/src/config/bluetooth.lua.d/50-bluez-config.lua b/src/config/bluetooth.lua.d/50-bluez-config.lua |
66 |
-index 072504ec..dd8033ff 100644 |
67 |
---- a/src/config/bluetooth.lua.d/50-bluez-config.lua |
68 |
-+++ b/src/config/bluetooth.lua.d/50-bluez-config.lua |
69 |
-@@ -34,6 +34,14 @@ bluez_monitor.properties = { |
70 |
- -- Register dummy AVRCP player, required for AVRCP volume function. |
71 |
- -- Disable if you are running mpris-proxy or equivalent. |
72 |
- --["bluez5.dummy-avrcp-player"] = true, |
73 |
-+ |
74 |
-+ -- Enable the logind module, which arbitrates which user will be allowed |
75 |
-+ -- to have bluetooth audio enabled at any given time (particularly useful |
76 |
-+ -- if you are using GDM as a display manager, as the gdm user also launches |
77 |
-+ -- pipewire and wireplumber). |
78 |
-+ -- This requires access to the D-Bus user session; disable if you are running |
79 |
-+ -- a system-wide instance of wireplumber. |
80 |
-+ ["with-logind"] = true, |
81 |
- } |
82 |
- |
83 |
- bluez_monitor.rules = { |
84 |
-diff --git a/src/config/main.lua.d/50-alsa-config.lua b/src/config/main.lua.d/50-alsa-config.lua |
85 |
-index 6c97e8ad..d29b0b6f 100644 |
86 |
---- a/src/config/main.lua.d/50-alsa-config.lua |
87 |
-+++ b/src/config/main.lua.d/50-alsa-config.lua |
88 |
-@@ -7,6 +7,8 @@ alsa_monitor.properties = { |
89 |
- --["alsa.jack-device"] = false, |
90 |
- |
91 |
- -- Reserve devices via org.freedesktop.ReserveDevice1 on D-Bus |
92 |
-+ -- Disable if you are running a system-wide instance, which |
93 |
-+ -- doesn't have access to the D-Bus user session |
94 |
- ["alsa.reserve"] = true, |
95 |
- --["alsa.reserve.priority"] = -20, |
96 |
- --["alsa.reserve.application-name"] = "WirePlumber", |
97 |
-@@ -20,7 +22,7 @@ alsa_monitor.properties = { |
98 |
- |
99 |
- alsa_monitor.rules = { |
100 |
- -- An array of matches/actions to evaluate. |
101 |
-- -- |
102 |
-+ -- |
103 |
- -- If you want to disable some devices or nodes, you can apply properties per device as the following example. |
104 |
- -- The name can be found by running pw-cli ls Device, or pw-cli dump Device |
105 |
- --{ |
106 |
-diff --git a/src/config/main.lua.d/50-default-access-config.lua b/src/config/main.lua.d/50-default-access-config.lua |
107 |
-index 6cf18bed..45cc5b73 100644 |
108 |
---- a/src/config/main.lua.d/50-default-access-config.lua |
109 |
-+++ b/src/config/main.lua.d/50-default-access-config.lua |
110 |
-@@ -1,4 +1,7 @@ |
111 |
- default_access.properties = { |
112 |
-+ -- Enable the use of the flatpak portal integration. |
113 |
-+ -- Disable if you are running a system-wide instance, which |
114 |
-+ -- doesn't have access to the D-Bus user session |
115 |
- ["enable-flatpak-portal"] = true, |
116 |
- } |
117 |
- |
118 |
--- |
119 |
-GitLab |
120 |
- |
121 |
|
122 |
diff --git a/media-video/wireplumber/files/wireplumber-0.4.9-scripts-policy-device-profile-clear-tables-when-devi.patch b/media-video/wireplumber/files/wireplumber-0.4.9-scripts-policy-device-profile-clear-tables-when-devi.patch |
123 |
deleted file mode 100644 |
124 |
index 4dc8e276fbfa..000000000000 |
125 |
--- a/media-video/wireplumber/files/wireplumber-0.4.9-scripts-policy-device-profile-clear-tables-when-devi.patch |
126 |
+++ /dev/null |
127 |
@@ -1,33 +0,0 @@ |
128 |
-https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/da5d25acbea5ae03336bd2b4ef2b0687b380978e |
129 |
- |
130 |
-From da5d25acbea5ae03336bd2b4ef2b0687b380978e Mon Sep 17 00:00:00 2001 |
131 |
-From: Pauli Virtanen <pav@×××.fi> |
132 |
-Date: Mon, 28 Mar 2022 20:16:52 +0300 |
133 |
-Subject: [PATCH] scripts: policy-device-profile: clear tables when devices |
134 |
- removed |
135 |
- |
136 |
-When device ids are invalidated, clear all local tables about them, |
137 |
-because the id may be reused by different object, or the same object |
138 |
-reappearing. |
139 |
---- |
140 |
- src/scripts/policy-device-profile.lua | 6 ++++++ |
141 |
- 1 file changed, 6 insertions(+) |
142 |
- |
143 |
-diff --git a/src/scripts/policy-device-profile.lua b/src/scripts/policy-device-profile.lua |
144 |
-index d0aa2696..9daeafaa 100644 |
145 |
---- a/src/scripts/policy-device-profile.lua |
146 |
-+++ b/src/scripts/policy-device-profile.lua |
147 |
-@@ -229,4 +229,10 @@ self.om:connect("object-added", function (_, device) |
148 |
- handleProfiles (device, true) |
149 |
- end) |
150 |
- |
151 |
-+self.om:connect("object-removed", function (_, device) |
152 |
-+ local dev_id = device["bound-id"] |
153 |
-+ self.active_profiles[dev_id] = nil |
154 |
-+ self.best_profiles[dev_id] = nil |
155 |
-+end) |
156 |
-+ |
157 |
- self.om:activate() |
158 |
--- |
159 |
-GitLab |
160 |
- |
161 |
|
162 |
diff --git a/media-video/wireplumber/wireplumber-0.4.10-r1.ebuild b/media-video/wireplumber/wireplumber-0.4.10-r1.ebuild |
163 |
deleted file mode 100644 |
164 |
index 4c9a4ce04761..000000000000 |
165 |
--- a/media-video/wireplumber/wireplumber-0.4.10-r1.ebuild |
166 |
+++ /dev/null |
167 |
@@ -1,122 +0,0 @@ |
168 |
-# Copyright 1999-2022 Gentoo Authors |
169 |
-# Distributed under the terms of the GNU General Public License v2 |
170 |
- |
171 |
-EAPI=8 |
172 |
- |
173 |
-LUA_COMPAT=( lua5-{3,4} ) |
174 |
- |
175 |
-inherit lua-single meson systemd |
176 |
- |
177 |
-if [[ ${PV} == 9999 ]]; then |
178 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/pipewire/${PN}.git" |
179 |
- EGIT_BRANCH="master" |
180 |
- inherit git-r3 |
181 |
-else |
182 |
- SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz" |
183 |
- KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" |
184 |
-fi |
185 |
- |
186 |
-DESCRIPTION="Replacement for pipewire-media-session" |
187 |
-HOMEPAGE="https://gitlab.freedesktop.org/pipewire/wireplumber" |
188 |
- |
189 |
-LICENSE="MIT" |
190 |
-SLOT="0/0.4" |
191 |
-IUSE="elogind system-service systemd test" |
192 |
- |
193 |
-REQUIRED_USE=" |
194 |
- ${LUA_REQUIRED_USE} |
195 |
- ?? ( elogind systemd ) |
196 |
- system-service? ( systemd ) |
197 |
-" |
198 |
- |
199 |
-RESTRICT="!test? ( test )" |
200 |
- |
201 |
-# introspection? ( dev-libs/gobject-introspection ) is valid but likely only used for doc building |
202 |
-BDEPEND=" |
203 |
- dev-libs/glib |
204 |
- dev-util/gdbus-codegen |
205 |
- dev-util/glib-utils |
206 |
- sys-devel/gettext |
207 |
-" |
208 |
- |
209 |
-DEPEND=" |
210 |
- ${LUA_DEPS} |
211 |
- >=dev-libs/glib-2.62 |
212 |
- >=media-video/pipewire-0.3.48:= |
213 |
- virtual/libc |
214 |
- virtual/libintl |
215 |
- elogind? ( sys-auth/elogind ) |
216 |
- systemd? ( sys-apps/systemd ) |
217 |
-" |
218 |
- |
219 |
-# Any dev-lua/* deps get declared like this inside RDEPEND: |
220 |
-# $(lua_gen_cond_dep ' |
221 |
-# dev-lua/<NAME>[${LUA_USEDEP}] |
222 |
-# ') |
223 |
-RDEPEND="${DEPEND} |
224 |
- system-service? ( |
225 |
- acct-user/pipewire |
226 |
- acct-group/pipewire |
227 |
- ) |
228 |
-" |
229 |
- |
230 |
-DOCS=( {NEWS,README}.rst ) |
231 |
- |
232 |
-PATCHES=( |
233 |
- "${FILESDIR}"/${P}-config-fix-enabled-property-to-default-to-true-when.patch |
234 |
-) |
235 |
- |
236 |
-src_configure() { |
237 |
- local emesonargs=( |
238 |
- -Ddoc=disabled # Ebuild not wired up yet (Sphinx, Doxygen?) |
239 |
- -Dintrospection=disabled # Only used for Sphinx doc generation |
240 |
- -Dsystem-lua=true # We always unbundle everything we can |
241 |
- -Dsystem-lua-version=$(ver_cut 1-2 $(lua_get_version)) |
242 |
- $(meson_feature elogind) |
243 |
- $(meson_feature systemd) |
244 |
- $(meson_use system-service systemd-system-service) |
245 |
- $(meson_use systemd systemd-user-service) |
246 |
- -Dsystemd-system-unit-dir=$(systemd_get_systemunitdir) |
247 |
- -Dsystemd-user-unit-dir=$(systemd_get_userunitdir) |
248 |
- $(meson_use test tests) |
249 |
- ) |
250 |
- |
251 |
- meson_src_configure |
252 |
-} |
253 |
- |
254 |
-src_install() { |
255 |
- meson_src_install |
256 |
- |
257 |
- # We copy the default config, so that Gentoo tools can pick up on any |
258 |
- # updates and /etc does not end up with stale overrides. |
259 |
- # If a reflinking CoW filesystem is used (e.g. Btrfs), then the files |
260 |
- # will not actually get stored twice until modified. |
261 |
- insinto /etc |
262 |
- doins -r "${ED}"/usr/share/wireplumber |
263 |
-} |
264 |
- |
265 |
-pkg_postinst() { |
266 |
- if systemd_is_booted ; then |
267 |
- ewarn "pipewire-media-session.service is no longer installed. You must switch" |
268 |
- ewarn "to wireplumber.service user unit before your next logout/reboot:" |
269 |
- ewarn "systemctl --user disable pipewire-media-session.service" |
270 |
- ewarn "systemctl --user --force enable wireplumber.service" |
271 |
- else |
272 |
- ewarn "Switch to WirePlumber will happen the next time gentoo-pipewire-launcher" |
273 |
- ewarn "is started (a replacement for directly calling pipewire binary)." |
274 |
- ewarn |
275 |
- ewarn "Please ensure that ${EROOT}/etc/pipewire/pipewire.conf either does not exist" |
276 |
- ewarn "or, if it does exist, that any reference to" |
277 |
- ewarn "${EROOT}/usr/bin/pipewire-media-session is commented out (begins with a #)." |
278 |
- fi |
279 |
- if use system-service; then |
280 |
- ewarn |
281 |
- ewarn "WARNING: you have enabled the system-service USE flag, which installs" |
282 |
- ewarn "the system-wide systemd units that enable WirePlumber to run as a system" |
283 |
- ewarn "service. This is more than likely NOT what you want. You are strongly" |
284 |
- ewarn "advised not to enable this mode and instead stick with systemd user" |
285 |
- ewarn "units. The default configuration files will likely not work out of" |
286 |
- ewarn "box, and you are on your own with configuration." |
287 |
- ewarn |
288 |
- fi |
289 |
-} |
290 |
|
291 |
diff --git a/media-video/wireplumber/wireplumber-0.4.9-r1.ebuild b/media-video/wireplumber/wireplumber-0.4.9-r1.ebuild |
292 |
deleted file mode 100644 |
293 |
index b2cb2a7e4d87..000000000000 |
294 |
--- a/media-video/wireplumber/wireplumber-0.4.9-r1.ebuild |
295 |
+++ /dev/null |
296 |
@@ -1,121 +0,0 @@ |
297 |
-# Copyright 1999-2022 Gentoo Authors |
298 |
-# Distributed under the terms of the GNU General Public License v2 |
299 |
- |
300 |
-EAPI=8 |
301 |
- |
302 |
-LUA_COMPAT=( lua5-{3,4} ) |
303 |
- |
304 |
-inherit lua-single meson systemd |
305 |
- |
306 |
-if [[ ${PV} == 9999 ]]; then |
307 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/pipewire/${PN}.git" |
308 |
- EGIT_BRANCH="master" |
309 |
- inherit git-r3 |
310 |
-else |
311 |
- SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz" |
312 |
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
313 |
-fi |
314 |
- |
315 |
-DESCRIPTION="Replacement for pipewire-media-session" |
316 |
-HOMEPAGE="https://gitlab.freedesktop.org/pipewire/wireplumber" |
317 |
- |
318 |
-LICENSE="MIT" |
319 |
-SLOT="0/0.4" |
320 |
-IUSE="elogind system-service systemd test" |
321 |
- |
322 |
-REQUIRED_USE=" |
323 |
- ${LUA_REQUIRED_USE} |
324 |
- ?? ( elogind systemd ) |
325 |
- system-service? ( systemd ) |
326 |
-" |
327 |
- |
328 |
-RESTRICT="!test? ( test )" |
329 |
- |
330 |
-# introspection? ( dev-libs/gobject-introspection ) is valid but likely only used for doc building |
331 |
-BDEPEND=" |
332 |
- dev-libs/glib |
333 |
- dev-util/gdbus-codegen |
334 |
- dev-util/glib-utils |
335 |
-" |
336 |
- |
337 |
-DEPEND=" |
338 |
- ${LUA_DEPS} |
339 |
- >=dev-libs/glib-2.62 |
340 |
- >=media-video/pipewire-0.3.48:= |
341 |
- virtual/libc |
342 |
- elogind? ( sys-auth/elogind ) |
343 |
- systemd? ( sys-apps/systemd ) |
344 |
-" |
345 |
- |
346 |
-# Any dev-lua/* deps get declared like this inside RDEPEND: |
347 |
-# $(lua_gen_cond_dep ' |
348 |
-# dev-lua/<NAME>[${LUA_USEDEP}] |
349 |
-# ') |
350 |
-RDEPEND="${DEPEND} |
351 |
- system-service? ( |
352 |
- acct-user/pipewire |
353 |
- acct-group/pipewire |
354 |
- ) |
355 |
-" |
356 |
- |
357 |
-DOCS=( {NEWS,README}.rst ) |
358 |
- |
359 |
-PATCHES=( |
360 |
- "${FILESDIR}"/${P}-scripts-policy-device-profile-clear-tables-when-devi.patch |
361 |
- "${FILESDIR}"/${P}-config-document-which-options-need-to-be-turned-off-.patch |
362 |
-) |
363 |
- |
364 |
-src_configure() { |
365 |
- local emesonargs=( |
366 |
- -Ddoc=disabled # Ebuild not wired up yet (Sphinx, Doxygen?) |
367 |
- -Dintrospection=disabled # Only used for Sphinx doc generation |
368 |
- -Dsystem-lua=true # We always unbundle everything we can |
369 |
- -Dsystem-lua-version=$(ver_cut 1-2 $(lua_get_version)) |
370 |
- $(meson_feature elogind) |
371 |
- $(meson_feature systemd) |
372 |
- $(meson_use system-service systemd-system-service) |
373 |
- $(meson_use systemd systemd-user-service) |
374 |
- -Dsystemd-system-unit-dir=$(systemd_get_systemunitdir) |
375 |
- -Dsystemd-user-unit-dir=$(systemd_get_userunitdir) |
376 |
- $(meson_use test tests) |
377 |
- ) |
378 |
- |
379 |
- meson_src_configure |
380 |
-} |
381 |
- |
382 |
-src_install() { |
383 |
- meson_src_install |
384 |
- |
385 |
- # We copy the default config, so that Gentoo tools can pick up on any |
386 |
- # updates and /etc does not end up with stale overrides. |
387 |
- # If a reflinking CoW filesystem is used (e.g. Btrfs), then the files |
388 |
- # will not actually get stored twice until modified. |
389 |
- insinto /etc |
390 |
- doins -r "${ED}"/usr/share/wireplumber |
391 |
-} |
392 |
- |
393 |
-pkg_postinst() { |
394 |
- if systemd_is_booted ; then |
395 |
- ewarn "pipewire-media-session.service is no longer installed. You must switch" |
396 |
- ewarn "to wireplumber.service user unit before your next logout/reboot:" |
397 |
- ewarn "systemctl --user disable pipewire-media-session.service" |
398 |
- ewarn "systemctl --user --force enable wireplumber.service" |
399 |
- else |
400 |
- ewarn "Switch to WirePlumber will happen the next time gentoo-pipewire-launcher" |
401 |
- ewarn "is started (a replacement for directly calling pipewire binary)." |
402 |
- ewarn |
403 |
- ewarn "Please ensure that ${EROOT}/etc/pipewire/pipewire.conf either does not exist" |
404 |
- ewarn "or, if it does exist, that any reference to" |
405 |
- ewarn "${EROOT}/usr/bin/pipewire-media-session is commented out (begins with a #)." |
406 |
- fi |
407 |
- if use system-service; then |
408 |
- ewarn |
409 |
- ewarn "WARNING: you have enabled the system-service USE flag, which installs" |
410 |
- ewarn "the system-wide systemd units that enable WirePlumber to run as a system" |
411 |
- ewarn "service. This is more than likely NOT what you want. You are strongly" |
412 |
- ewarn "advised not to enable this mode and instead stick with systemd user" |
413 |
- ewarn "units. The default configuration files will likely not work out of" |
414 |
- ewarn "box, and you are on your own with configuration." |
415 |
- ewarn |
416 |
- fi |
417 |
-} |
418 |
|
419 |
diff --git a/media-video/wireplumber/wireplumber-0.4.9.ebuild b/media-video/wireplumber/wireplumber-0.4.9.ebuild |
420 |
deleted file mode 100644 |
421 |
index 0c71a9ba7f9b..000000000000 |
422 |
--- a/media-video/wireplumber/wireplumber-0.4.9.ebuild |
423 |
+++ /dev/null |
424 |
@@ -1,116 +0,0 @@ |
425 |
-# Copyright 1999-2022 Gentoo Authors |
426 |
-# Distributed under the terms of the GNU General Public License v2 |
427 |
- |
428 |
-EAPI=8 |
429 |
- |
430 |
-LUA_COMPAT=( lua5-{3,4} ) |
431 |
- |
432 |
-inherit lua-single meson systemd |
433 |
- |
434 |
-if [[ ${PV} == 9999 ]]; then |
435 |
- EGIT_REPO_URI="https://gitlab.freedesktop.org/pipewire/${PN}.git" |
436 |
- EGIT_BRANCH="master" |
437 |
- inherit git-r3 |
438 |
-else |
439 |
- SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz" |
440 |
- KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~sparc x86" |
441 |
-fi |
442 |
- |
443 |
-DESCRIPTION="Replacement for pipewire-media-session" |
444 |
-HOMEPAGE="https://gitlab.freedesktop.org/pipewire/wireplumber" |
445 |
- |
446 |
-LICENSE="MIT" |
447 |
-SLOT="0/0.4" |
448 |
-IUSE="elogind system-service systemd test" |
449 |
- |
450 |
-REQUIRED_USE=" |
451 |
- ${LUA_REQUIRED_USE} |
452 |
- ?? ( elogind systemd ) |
453 |
- system-service? ( systemd ) |
454 |
-" |
455 |
- |
456 |
-RESTRICT="!test? ( test )" |
457 |
- |
458 |
-# introspection? ( dev-libs/gobject-introspection ) is valid but likely only used for doc building |
459 |
-BDEPEND=" |
460 |
- dev-libs/glib |
461 |
- dev-util/gdbus-codegen |
462 |
- dev-util/glib-utils |
463 |
-" |
464 |
- |
465 |
-DEPEND=" |
466 |
- ${LUA_DEPS} |
467 |
- >=dev-libs/glib-2.62 |
468 |
- >=media-video/pipewire-0.3.48:= |
469 |
- virtual/libc |
470 |
- elogind? ( sys-auth/elogind ) |
471 |
- systemd? ( sys-apps/systemd ) |
472 |
-" |
473 |
- |
474 |
-# Any dev-lua/* deps get declared like this inside RDEPEND: |
475 |
-# $(lua_gen_cond_dep ' |
476 |
-# dev-lua/<NAME>[${LUA_USEDEP}] |
477 |
-# ') |
478 |
-RDEPEND="${DEPEND} |
479 |
- system-service? ( |
480 |
- acct-user/pipewire |
481 |
- acct-group/pipewire |
482 |
- ) |
483 |
-" |
484 |
- |
485 |
-DOCS=( {NEWS,README}.rst ) |
486 |
- |
487 |
-src_configure() { |
488 |
- local emesonargs=( |
489 |
- -Ddoc=disabled # Ebuild not wired up yet (Sphinx, Doxygen?) |
490 |
- -Dintrospection=disabled # Only used for Sphinx doc generation |
491 |
- -Dsystem-lua=true # We always unbundle everything we can |
492 |
- -Dsystem-lua-version=$(ver_cut 1-2 $(lua_get_version)) |
493 |
- $(meson_feature elogind) |
494 |
- $(meson_feature systemd) |
495 |
- $(meson_use system-service systemd-system-service) |
496 |
- $(meson_use systemd systemd-user-service) |
497 |
- -Dsystemd-system-unit-dir=$(systemd_get_systemunitdir) |
498 |
- -Dsystemd-user-unit-dir=$(systemd_get_userunitdir) |
499 |
- $(meson_use test tests) |
500 |
- ) |
501 |
- |
502 |
- meson_src_configure |
503 |
-} |
504 |
- |
505 |
-src_install() { |
506 |
- meson_src_install |
507 |
- |
508 |
- # We copy the default config, so that Gentoo tools can pick up on any |
509 |
- # updates and /etc does not end up with stale overrides. |
510 |
- # If a reflinking CoW filesystem is used (e.g. Btrfs), then the files |
511 |
- # will not actually get stored twice until modified. |
512 |
- insinto /etc |
513 |
- doins -r "${ED}"/usr/share/wireplumber |
514 |
-} |
515 |
- |
516 |
-pkg_postinst() { |
517 |
- if systemd_is_booted ; then |
518 |
- ewarn "pipewire-media-session.service is no longer installed. You must switch" |
519 |
- ewarn "to wireplumber.service user unit before your next logout/reboot:" |
520 |
- ewarn "systemctl --user disable pipewire-media-session.service" |
521 |
- ewarn "systemctl --user --force enable wireplumber.service" |
522 |
- else |
523 |
- ewarn "Switch to WirePlumber will happen the next time gentoo-pipewire-launcher" |
524 |
- ewarn "is started (a replacement for directly calling pipewire binary)." |
525 |
- ewarn |
526 |
- ewarn "Please ensure that ${EROOT}/etc/pipewire/pipewire.conf either does not exist" |
527 |
- ewarn "or, if it does exist, that any reference to" |
528 |
- ewarn "${EROOT}/usr/bin/pipewire-media-session is commented out (begins with a #)." |
529 |
- fi |
530 |
- if use system-service; then |
531 |
- ewarn |
532 |
- ewarn "WARNING: you have enabled the system-service USE flag, which installs" |
533 |
- ewarn "the system-wide systemd units that enable WirePlumber to run as a system" |
534 |
- ewarn "service. This is more than likely NOT what you want. You are strongly" |
535 |
- ewarn "advised not to enable this mode and instead stick with systemd user" |
536 |
- ewarn "units. The default configuration files will likely not work out of" |
537 |
- ewarn "box, and you are on your own with configuration." |
538 |
- ewarn |
539 |
- fi |
540 |
-} |