commit:     0da70c3e9f1a348cc66aa6ab6a58dd265f045fa4
Author:     Niklāvs Koļesņikovs <89q1r14hd <AT> relay <DOT> firefox <DOT> com>
AuthorDate: Fri Oct  8 10:22:21 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct  9 06:22:18 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0da70c3e

media-video/wireplumber: version bump to 0.4.3

Same ebuild as the current live one. As far as I know, the NEWS item
about logind integration should only be fixing a bug with GDM users
logging into GNOME session. But as a precaution the old 0.4.2-r1 ebuild
is kept for now in case I missed some later changes regarding BlueZ
handling and OpenRC users end up needing to downgrade.

Signed-off-by: Niklāvs Koļesņikovs <89q1r14hd <AT> relay.firefox.com>
Closes: https://github.com/gentoo/gentoo/pull/22515
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-video/wireplumber/Manifest                 |  1 +
 media-video/wireplumber/wireplumber-0.4.3.ebuild | 81 ++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/media-video/wireplumber/Manifest b/media-video/wireplumber/Manifest
index 885d24e6eec..2570b45e577 100644
--- a/media-video/wireplumber/Manifest
+++ b/media-video/wireplumber/Manifest
@@ -1 +1,2 @@
 DIST wireplumber-0.4.2.tar.gz 332499 BLAKE2B 
4747ae405a824b019415188ff1a586d32fc2e97aba6777cd1e403aadf0e44458156d1f8b6dbc706b812a7ea8c873d0f506f2b42817d1bc5312874530edaf7234
 SHA512 
8ded43fba5de58068516558918d49c86be7d67330e8a14e735561fefadba5e27952d556987b7304dead52b4e2f72a7d9626da0170e768c4702dd164840b08e3c
+DIST wireplumber-0.4.3.tar.gz 341659 BLAKE2B 
8d2ad4632935473c74ed7bc8370e0ded79063d103e2fa375decd3ba168cf7c271e30e04c53012a2c6b4ba51552f0a6a9fbb7a995d3a809ba6cf409afbaa64e63
 SHA512 
4b0b4426556b06dc133e2ab8398700af9c916824a7bce4eec1ff1a7ca75a3ecf0947e15190a4a133cd89653228e562bf47c65c3523c5235aface2c4c3963174d

diff --git a/media-video/wireplumber/wireplumber-0.4.3.ebuild 
b/media-video/wireplumber/wireplumber-0.4.3.ebuild
new file mode 100644
index 00000000000..88f08ce12c0
--- /dev/null
+++ b/media-video/wireplumber/wireplumber-0.4.3.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{3,4} )
+
+inherit lua-single meson systemd
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://gitlab.freedesktop.org/pipewire/${PN}.git";
+       EGIT_BRANCH="master"
+       inherit git-r3
+else
+       
SRC_URI="https://gitlab.freedesktop.org/pipewire/${PN}/-/archive/${PV}/${P}.tar.gz";
+       KEYWORDS="~amd64 ~riscv"
+fi
+
+DESCRIPTION="Replacement for pipewire-media-session"
+HOMEPAGE="https://gitlab.freedesktop.org/pipewire/wireplumber";
+
+LICENSE="MIT"
+SLOT="0/0.4"
+IUSE="systemd test"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RESTRICT="!test? ( test )"
+
+# introspection? ( dev-libs/gobject-introspection ) is valid but likely only 
used for doc building
+BDEPEND="
+       dev-libs/glib
+       dev-util/gdbus-codegen
+       dev-util/glib-utils
+"
+
+DEPEND="
+       ${LUA_DEPS}
+       >=dev-libs/glib-2.62
+       >=media-video/pipewire-0.3.32
+       virtual/libc
+       systemd? ( sys-apps/systemd )
+"
+
+# Any dev-lua/* deps get declared like this inside RDEPEND:
+#      $(lua_gen_cond_dep '
+#              dev-lua/<NAME>[${LUA_USEDEP}]
+#      ')
+RDEPEND="${DEPEND}"
+
+DOCS=( {NEWS,README}.rst )
+
+src_configure() {
+       local emesonargs=(
+               -Dintrospection=disabled # Only used for Sphinx doc generation
+               -Dsystem-lua=true # We always unbundle everything we can
+               -Dsystem-lua-version=$(ver_cut 1-2 $(lua_get_version))
+               $(meson_feature systemd)
+               -Dsystemd-system-service=false # Matches upstream
+               $(meson_use systemd systemd-user-service)
+               -Dsystemd-system-unit-dir=$(systemd_get_systemunitdir)
+               -Dsystemd-user-unit-dir=$(systemd_get_userunitdir)
+               $(meson_use test tests)
+       )
+
+       meson_src_configure
+}
+
+pkg_postinst() {
+       if systemd_is_booted ; then
+               elog "To replace media-session with WirePlumber immediately:"
+               elog "systemctl --user disable --now 
pipewire-media-session.service"
+               elog "systemctl --user enable --now wireplumber.service"
+       else
+               elog "OpenRC users need to copy 
${EROOT}/usr/share/pipewire/pipewire.conf"
+               elog "to ${EROOT}/etc/pipewire/pipewire.conf and in it replace"
+               elog "${EROOT}/usr/bin/pipewire-media-session with 
${EROOT}/usr/bin/wireplumber"
+               elog "The switch to WirePlumber will happen the next time 
pipewire is started."
+       fi
+       elog
+}

Reply via email to