commit:     9a9f6d7e82fb6ba95a8d38cd8589cf9784a13fca
Author:     Niklaus 'vimja' Hofer <gentoo-bugzilla <AT> vimja <DOT> email>
AuthorDate: Sat Sep 20 10:45:00 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Sep 20 10:45:00 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9a9f6d7e

gui-apps/waylock: Remove dependency app-text/scdoc

This also fixes an issue where the 1.5 version could not be built with
USE=man.

Signed-off-by: Niklaus 'vimja' Hofer <gentoo-bugzilla <AT> vimja.email>

 gui-apps/waylock/waylock-1.5.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gui-apps/waylock/waylock-1.5.0-r1.ebuild 
b/gui-apps/waylock/waylock-1.5.0-r1.ebuild
new file mode 100644
index 0000000000..013e9a12c4
--- /dev/null
+++ b/gui-apps/waylock/waylock-1.5.0-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Small screenlocker for Wayland compositors"
+HOMEPAGE="https://isaacfreund.com/software/waylock/ 
https://codeberg.org/ifreund/waylock";
+
+declare -g -r -A ZBS_DEPENDENCIES=(
+       
[wayland-0.4.0-lQa1khbMAQAsLS2eBR7M5lofyEGPIbu2iFDmoz8lPC27.tar.gz]='https://codeberg.org/ifreund/zig-wayland/archive/v0.4.0.tar.gz'
+       
[xkbcommon-0.3.0-VDqIe3K9AQB2fG5ZeRcMC9i7kfrp5m2rWgLrmdNn9azr.tar.gz]='https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.3.0.tar.gz'
+)
+
+ZIG_SLOT="0.15"
+inherit zig
+
+SRC_URI="
+       
https://codeberg.org/ifreund/waylock/releases/download/v${PV}/${P}.tar.gz
+       ${ZBS_DEPENDENCIES_SRC_URI}
+"
+
+# waylock: ISC
+# zig-wayland, zig-xkbcommon: MIT
+LICENSE="ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="man"
+
+BDEPEND="
+       dev-libs/wayland-protocols
+       dev-util/wayland-scanner
+"
+DEPEND="
+       dev-libs/wayland
+       sys-libs/pam
+       x11-libs/libxkbcommon[wayland]
+"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+       local my_zbs_args=(
+               -Dpie=true
+               -Dman-pages=false
+       )
+
+       if use man; then
+               mkdir --parents ${WORKDIR}/${P}-build/share/man/man1
+               cp ${FILESDIR}/manpage-${PV} 
${WORKDIR}/${P}-build/share/man/man1/waylock.1
+       fi
+
+       zig_src_configure
+}
+
+src_install() {
+       if use man; then
+               doman ${WORKDIR}/${P}-build/share/man/man1/waylock.1
+       fi
+
+       zig_src_install
+}

Reply via email to