summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklāvs Koļesņikovs <89q1r14hd@relay.firefox.com>2021-10-08 13:22:21 +0300
committerSam James <sam@gentoo.org>2021-10-09 07:22:18 +0100
commit0da70c3e9f1a348cc66aa6ab6a58dd265f045fa4 (patch)
treede3e0a042c63288744c1686ea500d8bc7bdf0be4 /media-video/wireplumber
parentdev-lang/ocaml: drop 4.12.0-r2, 4.13.0 (diff)
downloadgentoo-0da70c3e9f1a348cc66aa6ab6a58dd265f045fa4.tar.gz
gentoo-0da70c3e9f1a348cc66aa6ab6a58dd265f045fa4.tar.bz2
gentoo-0da70c3e9f1a348cc66aa6ab6a58dd265f045fa4.zip
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@relay.firefox.com> Closes: https://github.com/gentoo/gentoo/pull/22515 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video/wireplumber')
-rw-r--r--media-video/wireplumber/Manifest1
-rw-r--r--media-video/wireplumber/wireplumber-0.4.3.ebuild81
2 files changed, 82 insertions, 0 deletions
diff --git a/media-video/wireplumber/Manifest b/media-video/wireplumber/Manifest
index 885d24e6eece..2570b45e5773 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 000000000000..88f08ce12c07
--- /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
+}