commit:     50cabd9cd78e72864843a549111ff705682ce712
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 16:18:31 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 16:18:31 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50cabd9c

gui-apps/swaylock: sync live ebuild

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-apps/swaylock/swaylock-9999.ebuild | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/gui-apps/swaylock/swaylock-9999.ebuild 
b/gui-apps/swaylock/swaylock-9999.ebuild
index 6351d0bbc4a6..bb547be7e617 100644
--- a/gui-apps/swaylock/swaylock-9999.ebuild
+++ b/gui-apps/swaylock/swaylock-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit fcaps meson
 
@@ -38,19 +38,17 @@ BDEPEND="
 
 src_configure() {
        local emesonargs=(
-               -Dman-pages=$(usex man enabled disabled)
-               -Dpam=$(usex pam enabled disabled)
-               -Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
-               "-Dfish-completions=true"
-               "-Dzsh-completions=true"
-               "-Dbash-completions=true"
+               $(meson_feature man man-pages)
+               $(meson_feature pam)
+               $(meson_feature gdk-pixbuf)
+               -Dfish-completions=true
+               -Dzsh-completions=true
+               -Dbash-completions=true
        )
 
        meson_src_configure
 }
 
 pkg_postinst() {
-       if ! use pam; then
-               fcaps cap_sys_admin usr/bin/swaylock
-       fi
+       use !pam && fcaps cap_sys_admin usr/bin/swaylock
 }

Reply via email to