public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Niklaus 'vimja' Hofer" <gentoo-bugzilla@vimja.email>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-apps/waylock/
Date: Wed, 05 Mar 2025 19:46:59 +0000 (UTC)	[thread overview]
Message-ID: <1741204004.614a8483a9519881a7efc8bf6f0edf614d59ff18.gentoo-bugzilla@gentoo> (raw)

commit:     614a8483a9519881a7efc8bf6f0edf614d59ff18
Author:     Niklaus 'vimja' Hofer <gentoo-bugzilla <AT> vimja <DOT> email>
AuthorDate: Wed Mar  5 19:42:05 2025 +0000
Commit:     Niklaus 'vimja' Hofer <gentoo-bugzilla <AT> vimja <DOT> email>
CommitDate: Wed Mar  5 19:46:44 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=614a8483

gui-apps/waylock: new package, add 1.3.0

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

 gui-apps/waylock/Manifest             |  3 ++
 gui-apps/waylock/metadata.xml         | 11 +++++
 gui-apps/waylock/waylock-1.3.0.ebuild | 81 +++++++++++++++++++++++++++++++++++
 3 files changed, 95 insertions(+)

diff --git a/gui-apps/waylock/Manifest b/gui-apps/waylock/Manifest
new file mode 100644
index 000000000..01ca83c95
--- /dev/null
+++ b/gui-apps/waylock/Manifest
@@ -0,0 +1,3 @@
+DIST waylock-1.3.0.tar.gz 21281 BLAKE2B 18c9d2e22ead5d03abf1f53b7c148f58ddcbad2857bdc95f4c1f2a5e6946f87fc6a580b728fa9fb17adb76a4957eeb0e428eacd5ab522ded925e7efb2d416671 SHA512 6f018b06a448c533cd64b8a62b1d2bc3ba92f52db1b0c7bf01b73d8e6d865222b2c25c5a7e5206d22dc1f607e47ce65d3dcbaa912efbf92d6c90d48be3a6c26b
+DIST zig-wayland-0.2.0.tar.gz 56543 BLAKE2B aaf82efe78d25c59a87de050147857fcf9a19764141cb40d92b0dd48b96ea0ec52d00a1ab0df1afe4c45cda6d64dda97f296f0aa29d8b9ea3da49e1d5cd69e50 SHA512 dfb140c06d9e3c566034f9102426e7bd47dcde87a2ae16d43ce3ea72cf44bea872bab1d9a23a24ae9d57d2d4ae6c56060a6b10f869de3990046426b0462db85e
+DIST zig-xkbcommon-0.2.0.tar.gz 22700 BLAKE2B 85045d002b4ec1ac8dadda67d3ce6f588e53938ac0a67c06d6cebc85a944d7a23fd1cc295410ce1a91cce9ffb587834f7eca2400e1468fec0193583ac71d6f86 SHA512 a99b6a2fefe34507fd687b58a9618a27ca617966798b410a72c9e53462c3f9c6dd0476a22bb9686cbf49994ca502743b4d25fdc55125359d4fe2860094bf0e82

diff --git a/gui-apps/waylock/metadata.xml b/gui-apps/waylock/metadata.xml
new file mode 100644
index 000000000..da8473691
--- /dev/null
+++ b/gui-apps/waylock/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+    <maintainer type="person">
+        <email>gentoo-bugzilla@vimja.email</email>
+        <name>Niklaus 'vimja' Hofer</name>
+    </maintainer>
+    <upstream>
+        <remote-id type="codeberg">ifreund/waylock</remote-id>
+    </upstream>
+</pkgmetadata>

diff --git a/gui-apps/waylock/waylock-1.3.0.ebuild b/gui-apps/waylock/waylock-1.3.0.ebuild
new file mode 100644
index 000000000..987840956
--- /dev/null
+++ b/gui-apps/waylock/waylock-1.3.0.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit edo
+
+DESCRIPTION="Small screenlocker for Wayland compositors"
+HOMEPAGE="https://codeberg.org/ifreund/waylock"
+LICENSE="ISC"
+
+SRC_URI="
+	https://codeberg.org/ifreund/waylock/releases/download/v${PV}/${P}.tar.gz
+	https://codeberg.org/ifreund/zig-wayland/archive/v0.2.0.tar.gz -> zig-wayland-0.2.0.tar.gz
+	https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.2.0.tar.gz -> zig-xkbcommon-0.2.0.tar.gz
+"
+KEYWORDS="~amd64"
+
+SLOT="0"
+IUSE="+man pie test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-libs/wayland
+	sys-libs/pam
+	x11-libs/libxkbcommon:=
+"
+DEPEND="${RDEPEND}"
+EZIG_VISION="0.13*"
+BDEPEND="
+	|| ( =dev-lang/zig-${EZIG_VISION} =dev-lang/zig-bin-${EZIG_VISION} )
+	dev-libs/wayland-protocols
+	virtual/pkgconfig
+	man? ( app-text/scdoc )
+"
+
+QA_FLAGS_IGNORED="usr/bin/waylock"
+
+# : refer to sys-fs/ncdu :
+zig-set_EZIG() {
+	[[ -n ${EZIG} ]] && return
+
+	grep_version=$(echo ${EZIG_VISION} | sed -E 's/\./\\./g; s/\*/.*/g')
+	EZIG=$(compgen -c | grep 'zig.*-'$grep_version | head -n 1) || die
+}
+
+ezig() {
+	zig-set_EZIG
+	edo "${EZIG}" "${@}"
+}
+
+src_prepare() {
+	edo mkdir "${WORKDIR}"/deps/
+
+	ezig fetch --global-cache-dir "${WORKDIR}"/deps/  "${DISTDIR}"/zig-wayland-0.2.0.tar.gz
+	ezig fetch --global-cache-dir "${WORKDIR}"/deps/  "${DISTDIR}"/zig-xkbcommon-0.2.0.tar.gz
+	default
+}
+
+src_compile() {
+	local zigoptions=(
+		--verbose
+		--system "${WORKDIR}"/deps/p/
+		-Doptimize=ReleaseSafe
+		-Dman-pages=$(usex man true false)
+		-Dpie=$(usex pie true false)
+		${ZIG_FLAGS[@]}
+	)
+
+	DESTDIR="${T}" ezig build "${zigoptions[@]}" --prefix /usr || die
+}
+
+src_test() {
+	ezig build test || die
+}
+
+src_install() {
+	cp -r "${T}"/{etc,usr} "${ED}"/ || die
+
+	dodoc README.md || die
+}


             reply	other threads:[~2025-03-05 19:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-05 19:46 Niklaus 'vimja' Hofer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-05 19:48 [gentoo-commits] repo/proj/guru:dev commit in: gui-apps/waylock/ Niklaus 'vimja' Hofer
2025-03-07 15:38 Eric Joldasov
2025-09-13 22:28 Niklaus 'vimja' Hofer
2025-09-20 10:46 Niklaus 'vimja' Hofer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741204004.614a8483a9519881a7efc8bf6f0edf614d59ff18.gentoo-bugzilla@gentoo \
    --to=gentoo-bugzilla@vimja.email \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox