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

gui-apps/swaylock: add 1.8.0

Closes: https://bugs.gentoo.org/912874
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 gui-apps/swaylock/Manifest              |  1 +
 gui-apps/swaylock/swaylock-1.8.0.ebuild | 54 +++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/gui-apps/swaylock/Manifest b/gui-apps/swaylock/Manifest
index caeab97ab79c..32a2c22c924e 100644
--- a/gui-apps/swaylock/Manifest
+++ b/gui-apps/swaylock/Manifest
@@ -1,2 +1,3 @@
 DIST swaylock-1.7.2.tar.gz 37368 BLAKE2B 
146d73255a0d1439cf75ccb2fff528e47929718eaa75dc5a1567feeac59e65ebf674679e559dd634f375b5ca1bd44f6fe195f7362441b1979eaa222ba35812b8
 SHA512 
0593f7dfb258bd77796cb757e2e52d01829e0746306ce7991313a2982feead698c22753db53b00719ac1c82f6573563bcf5815f68c06680aa8ee6d419cac7549
 DIST swaylock-1.7.tar.gz 37149 BLAKE2B 
7675b56a28ce932bd163cd41ce498295b61aff51d204c5323b187ddde9ea17f6ef1ac2777272fd92703e49f44b3f749645b4715a75ed54845590513e7dddd524
 SHA512 
44c5a4e482674caeb86da78e49d4593128a14adad2d6e46994f984b2b2b893416d6ceeb6b0b5746ad5594892e65c9dab9764bbe4bf617a90d92622a41b791ed0
+DIST swaylock-1.8.0.tar.gz 33073 BLAKE2B 
ab93ec0f5274de623f8c75ad174d7799d36471761234afc7697194483253d201978d8d977a5a80f8f8c926382b2eab5ab36c7be9c30e5dc26a3d0e1c747f7be6
 SHA512 
950b608d3af010d4c68efb3468859e6b45632220cfb1597084eed457c1afc31afb7f75d49d316aae2b20c9849e8c7f1d37a288b6ca0c27f53994c2e43f97789f

diff --git a/gui-apps/swaylock/swaylock-1.8.0.ebuild 
b/gui-apps/swaylock/swaylock-1.8.0.ebuild
new file mode 100644
index 000000000000..bb547be7e617
--- /dev/null
+++ b/gui-apps/swaylock/swaylock-1.8.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2024 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
+}

Reply via email to