diff --git a/gui-apps/swayidle/swayidle-9999.ebuild b/gui-apps/swayidle/swayidle-9999.ebuild index 401c403c41b64..869092b8e58dc 100644 --- a/gui-apps/swayidle/swayidle-9999.ebuild +++ b/gui-apps/swayidle/swayidle-9999.ebuild @@ -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")