commit: 1fd5bfcd866570dbb3b7268f9a5fa79f33f79ea5 Author: Thomas Matthijs <gentoo <AT> selckin <DOT> be> AuthorDate: Tue Aug 12 21:31:35 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Oct 3 04:56:38 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fd5bfcd
gui-apps/swaylock: add 1.8.3 Signed-off-by: Thomas Matthijs <gentoo <AT> selckin.be> Part-of: https://github.com/gentoo/gentoo/pull/43424 Closes: https://github.com/gentoo/gentoo/pull/43424 Signed-off-by: Sam James <sam <AT> gentoo.org> gui-apps/swaylock/Manifest | 1 + gui-apps/swaylock/swaylock-1.8.3.ebuild | 54 +++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/gui-apps/swaylock/Manifest b/gui-apps/swaylock/Manifest index ee772394e091..64a29b059eca 100644 --- a/gui-apps/swaylock/Manifest +++ b/gui-apps/swaylock/Manifest @@ -1 +1,2 @@ DIST swaylock-1.8.0.tar.gz 33073 BLAKE2B ab93ec0f5274de623f8c75ad174d7799d36471761234afc7697194483253d201978d8d977a5a80f8f8c926382b2eab5ab36c7be9c30e5dc26a3d0e1c747f7be6 SHA512 950b608d3af010d4c68efb3468859e6b45632220cfb1597084eed457c1afc31afb7f75d49d316aae2b20c9849e8c7f1d37a288b6ca0c27f53994c2e43f97789f +DIST swaylock-1.8.3.tar.gz 33540 BLAKE2B 4e0440625f3908ca5018266d9979b218200fbabf754c0b6dbef80c54c14fc80ddb14bb480ed0f2eb4fe9a7b07f137399a5a75f7186f8da376fa3778716fc3f54 SHA512 3ae69de30faf3056ad0d814d57445b1797d006c8494e4b3a0fd5ad06778b89c1ec86407ab18d30bdef0b277a23c5f5ff4597d3c0703e04a217d9aa5c966f8d89 diff --git a/gui-apps/swaylock/swaylock-1.8.3.ebuild b/gui-apps/swaylock/swaylock-1.8.3.ebuild new file mode 100644 index 000000000000..3effa2c9ab4a --- /dev/null +++ b/gui-apps/swaylock/swaylock-1.8.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fcaps meson + +DESCRIPTION="Screen locker for Wayland" +HOMEPAGE="https://github.com/swaywm/swaylock" + +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/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="+gdk-pixbuf +man +pam" + +DEPEND=" + dev-libs/wayland + x11-libs/cairo + x11-libs/libxkbcommon + virtual/libcrypt:= + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 ) + pam? ( sys-libs/pam ) +" +RDEPEND="${DEPEND}" +BDEPEND=" + >=dev-libs/wayland-protocols-1.25 + >=dev-util/wayland-scanner-1.15 + virtual/pkgconfig + man? ( app-text/scdoc ) +" + +src_configure() { + local emesonargs=( + $(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() { + use !pam && fcaps cap_sys_admin usr/bin/swaylock +}
