Date: Fri, 31 Dec 2021 17:17:25 GMT From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 56f00b8b6781 - main - x11/sway-audio-idle-inhibit: add new port Message-ID: <202112311717.1BVHHPuq066673@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=56f00b8b67811ce01787241c74834c5b332c11ad commit 56f00b8b67811ce01787241c74834c5b332c11ad Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2021-12-24 12:44:40 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2021-12-31 17:16:30 +0000 x11/sway-audio-idle-inhibit: add new port Prevents swayidle from sleeping while any application is outputting or receiving audio. Should work with all Wayland desktops that support the zwp_idle_inhibit_manager_v1 protocol but only tested in Sway. This only works for PulseAudio / PipeWire Pulse. https://github.com/ErikReider/SwayAudioIdleInhibit --- x11/Makefile | 1 + x11/sway-audio-idle-inhibit/Makefile | 22 ++++++++++++++++++++++ x11/sway-audio-idle-inhibit/distinfo | 3 +++ .../files/patch-meson.build | 15 +++++++++++++++ x11/sway-audio-idle-inhibit/pkg-descr | 7 +++++++ 5 files changed, 48 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index eeafdd0b8252..015bcb24c763 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -346,6 +346,7 @@ SUBDIR += sterm SUBDIR += stjerm SUBDIR += swarp + SUBDIR += sway-audio-idle-inhibit SUBDIR += swaybg SUBDIR += swayidle SUBDIR += swaylock diff --git a/x11/sway-audio-idle-inhibit/Makefile b/x11/sway-audio-idle-inhibit/Makefile new file mode 100644 index 000000000000..0fc232874c75 --- /dev/null +++ b/x11/sway-audio-idle-inhibit/Makefile @@ -0,0 +1,22 @@ +PORTNAME= sway-audio-idle-inhibit +PORTVERSION= s20211224 +CATEGORIES= x11 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Disable swayidle during audio playback/recording + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libpulse.so:audio/pulseaudio \ + libwayland-client.so:graphics/wayland + +USES= compiler:c++11-lang meson pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= ErikReider +GH_PROJECT= SwayAudioIdleInhibit +GH_TAGNAME= 4a68078 +PLIST_FILES= bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/x11/sway-audio-idle-inhibit/distinfo b/x11/sway-audio-idle-inhibit/distinfo new file mode 100644 index 000000000000..64ba6751ab8c --- /dev/null +++ b/x11/sway-audio-idle-inhibit/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1640349880 +SHA256 (ErikReider-SwayAudioIdleInhibit-s20211224-4a68078_GH0.tar.gz) = a02a2ea3db42ea67fb4318a7837f937c221ff32b6d2634b4cc2bcd674e727962 +SIZE (ErikReider-SwayAudioIdleInhibit-s20211224-4a68078_GH0.tar.gz) = 17421 diff --git a/x11/sway-audio-idle-inhibit/files/patch-meson.build b/x11/sway-audio-idle-inhibit/files/patch-meson.build new file mode 100644 index 000000000000..45decc46c52f --- /dev/null +++ b/x11/sway-audio-idle-inhibit/files/patch-meson.build @@ -0,0 +1,15 @@ +Drop after audio/pulseaudio is updated to 15.0 or later. + +meson.build:40:0: ERROR: Invalid version of dependency, need 'libpulse' ['>= 15.0'] found '14.2'. + +--- meson.build.orig 2021-12-24 12:44:40 UTC ++++ meson.build +@@ -49,7 +49,7 @@ executable( + include_directories('include') + ], + dependencies: [ +- dependency('libpulse', version: '>= 15.0'), ++ dependency('libpulse', version: '>= 14.0'), + wayland_protos, + wayland_client, + client_protos, diff --git a/x11/sway-audio-idle-inhibit/pkg-descr b/x11/sway-audio-idle-inhibit/pkg-descr new file mode 100644 index 000000000000..a9c537c17554 --- /dev/null +++ b/x11/sway-audio-idle-inhibit/pkg-descr @@ -0,0 +1,7 @@ +Prevents swayidle from sleeping while any application is outputting or +receiving audio. Should work with all Wayland desktops that support +the zwp_idle_inhibit_manager_v1 protocol but only tested in Sway. + +This only works for PulseAudio / PipeWire Pulse. + +WWW: https://github.com/ErikReider/SwayAudioIdleInhibit
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112311717.1BVHHPuq066673>