gui-apps/swayidle: sync live

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin
2026-02-09 19:13:08 +02:00
parent a9001c525b
commit b4a3a2ab27

View File

@@ -1,7 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit meson
@@ -12,13 +12,15 @@ if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
else
SRC_URI="https://github.com/swaywm/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
inherit verify-sig
SRC_URI="https://github.com/swaywm/${PN}/releases/download/v${PV}/${P}.tar.gz
https://github.com/swaywm/${PN}/releases/download/v${PV}/${P}.tar.gz.sig"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
fi
LICENSE="MIT"
SLOT="0"
IUSE="elogind +man systemd"
IUSE="elogind systemd"
REQUIRED_USE="?? ( elogind systemd )"
DEPEND="
@@ -28,17 +30,23 @@ DEPEND="
"
RDEPEND="${DEPEND}"
BDEPEND="
app-text/scdoc
>=dev-util/wayland-scanner-1.14.91
>=dev-libs/wayland-protocols-1.27
virtual/pkgconfig
man? ( app-text/scdoc )
"
if [[ ${PV} != 9999 ]]; then
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-emersion )"
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/emersion.asc"
fi
src_configure() {
local emesonargs=(
-Dman-pages=$(usex man enabled disabled)
"-Dfish-completions=true"
"-Dzsh-completions=true"
"-Dbash-completions=true"
-Dman-pages=enabled
-Dfish-completions=true
-Dzsh-completions=true
-Dbash-completions=true
)
if use systemd; then
emesonargs+=("-Dlogind=enabled" "-Dlogind-provider=systemd")