Diff swaylock-1.7.2 with a swaylock-9999

/usr/portage/gui-apps/swaylock/swaylock-9999.ebuild 2024-12-25 14:59:49.659270104 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit fcaps meson
7 7

  
......
13 13
	EGIT_REPO_URI="https://github.com/swaywm/${PN}.git"
14 14
else
15 15
	SRC_URI="https://github.com/swaywm/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16
	KEYWORDS="amd64 arm64 ~loong ~ppc64 ~riscv x86"
16
	KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
17 17
fi
18 18

  
19 19
LICENSE="MIT"
......
38 38

  
39 39
src_configure() {
40 40
	local emesonargs=(
41
		-Dman-pages=$(usex man enabled disabled)
42
		-Dpam=$(usex pam enabled disabled)
43
		-Dgdk-pixbuf=$(usex gdk-pixbuf enabled disabled)
44
		"-Dfish-completions=true"
45
		"-Dzsh-completions=true"
46
		"-Dbash-completions=true"
41
		$(meson_feature man man-pages)
42
		$(meson_feature pam)
43
		$(meson_feature gdk-pixbuf)
44
		-Dfish-completions=true
45
		-Dzsh-completions=true
46
		-Dbash-completions=true
47 47
	)
48 48

  
49 49
	meson_src_configure
50 50
}
51 51

  
52 52
pkg_postinst() {
53
	if ! use pam; then
54
		fcaps cap_sys_admin usr/bin/swaylock
55
	fi
53
	use !pam && fcaps cap_sys_admin usr/bin/swaylock
56 54
}
Thank you!