gui-apps/sway-audio-idle-inhibit: add 0.2.0, add IUSE systemd

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2025-09-16 21:30:44 -03:00
parent 9349811442
commit 88bf9109ee
3 changed files with 66 additions and 1 deletions

View File

@@ -0,0 +1 @@
DIST sway-audio-idle-inhibit-0.2.0.tar.gz 19335 BLAKE2B 9fbc6448ec7353aecba48b5a0f1e0db0ed1498135aed1723d7f734c9a76a089b8a81b86ee4dbc5e45c63970f1e42c669f3f4f680f21c1df0038ebaf12bb811f2 SHA512 8f1dd8e517a49f944a6a462d4fe88b19893d24dd35f6d9d5ec494ec32e796db11db4e8ba704d85ce6bf1c5c575929689e149e8a30eea291498a5c04d5da63db6

View File

@@ -0,0 +1,44 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson
DESCRIPTION="Prevents swayidle from idle when an application is outputting or receiving audio"
HOMEPAGE="https://github.com/ErikReider/SwayAudioIdleInhibit"
SRC_URI="https://github.com/ErikReider/SwayAudioIdleInhibit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/SwayAudioIdleInhibit-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
DEPEND="
dev-libs/wayland
dev-libs/wayland-protocols
media-libs/libpulse
systemd? (
sys-apps/systemd
)
!systemd? (
sys-auth/elogind
)
"
RDEPEND="${DEPEND}"
src_configure() {
local emesonargs=(
-Dlogind-provider="$(usex systemd systemd elogind)"
)
meson_src_configure
}
src_install() {
meson_src_install
dodoc README.md
}

View File

@@ -1,4 +1,4 @@
# Copyright 2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -11,10 +11,30 @@ EGIT_REPO_URI="https://github.com/ErikReider/SwayAudioIdleInhibit.git"
LICENSE="GPL-3"
SLOT="0/9999"
IUSE="systemd"
DEPEND="
dev-libs/wayland
dev-libs/wayland-protocols
media-libs/libpulse
systemd? (
sys-apps/systemd
)
!systemd? (
sys-auth/elogind
)
"
RDEPEND="${DEPEND}"
src_configure() {
local emesonargs=(
-Dlogind-provider="$(usex systemd systemd elogind)"
)
meson_src_configure
}
src_install() {
meson_src_install
dodoc README.md
}