summaryrefslogtreecommitdiff
path: root/gui-apps/sway-audio-idle-inhibit/sway-audio-idle-inhibit-0.2.0.ebuild
blob: 0f2ca850467b7f30c0b21a5bf7fceb0dfb3cb5ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

MY_PN="SwayAudioIdleInhibit"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="Prevents swayidle from idle when an application is outputting or receiving audio"
HOMEPAGE="https://github.com/ErikReider/SwayAudioIdleInhibit"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/ErikReider/SwayAudioIdleInhibit.git"
else
	SRC_URI="https://github.com/ErikReider/SwayAudioIdleInhibit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
	S="${WORKDIR}/${MY_P}"
fi

LICENSE="GPL-3"
SLOT="0"

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
}