git: c5533629d712 - main - x11/wayidle: add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 30 May 2023 02:23:37 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c5533629d7125ec3def23383d869812120e5e7c9

commit c5533629d7125ec3def23383d869812120e5e7c9
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-29 14:22:29 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-30 02:22:01 +0000

    x11/wayidle: add new port
    
    Wayidle waits until the Wayland compositor reports being N seconds
    idle. If a command was specified, it will "exec" into that command,
    otherwise, it will exit zero.
    
    Wayidle is designed for usage is shell scripts or execline scripts.
    
    https://sr.ht/~whynothugo/wayidle
---
 x11/Makefile                |  1 +
 x11/wayidle/Makefile        | 19 ++++++++++++++++++
 x11/wayidle/Makefile.crates | 23 +++++++++++++++++++++
 x11/wayidle/distinfo        | 49 +++++++++++++++++++++++++++++++++++++++++++++
 x11/wayidle/pkg-descr       |  5 +++++
 5 files changed, 97 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 586222390f75..315d179fadd2 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -416,6 +416,7 @@
     SUBDIR += wapanel
     SUBDIR += way-displays
     SUBDIR += waybar
+    SUBDIR += wayidle
     SUBDIR += wayland-logout
     SUBDIR += waylock
     SUBDIR += wayout
diff --git a/x11/wayidle/Makefile b/x11/wayidle/Makefile
new file mode 100644
index 000000000000..62fa00ab6f49
--- /dev/null
+++ b/x11/wayidle/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	wayidle
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.1.1
+CATEGORIES=	x11 wayland
+MASTER_SITES=	https://git.sr.ht/~whynothugo/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
+# XXX Teach USES=cargo to not override default DISTFILES
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	Wait for wayland compositor idle timeouts
+WWW=		https://sr.ht/~whynothugo/wayidle
+
+LICENSE=	ISCL
+LICENSE_FILE=	${WRKSRC}/LICENCE.md
+
+USES=		cargo
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/x11/wayidle/Makefile.crates b/x11/wayidle/Makefile.crates
new file mode 100644
index 000000000000..62c4087609d4
--- /dev/null
+++ b/x11/wayidle/Makefile.crates
@@ -0,0 +1,23 @@
+CARGO_CRATES=	anyhow-1.0.71 \
+		autocfg-1.1.0 \
+		bitflags-1.3.2 \
+		cfg-if-1.0.0 \
+		convert_case-0.6.0 \
+		lexopt-0.3.0 \
+		libc-0.2.144 \
+		memchr-2.5.0 \
+		memoffset-0.7.1 \
+		nix-0.26.2 \
+		proc-macro2-1.0.59 \
+		quick-xml-0.28.2 \
+		quote-1.0.28 \
+		static_assertions-1.1.0 \
+		syn-2.0.18 \
+		thiserror-1.0.40 \
+		thiserror-impl-1.0.40 \
+		unicode-ident-1.0.9 \
+		unicode-segmentation-1.10.1 \
+		wayrs-client-0.10.4 \
+		wayrs-protocols-0.10.5 \
+		wayrs-scanner-0.10.3 \
+		wayrs-utils-0.6.0
diff --git a/x11/wayidle/distinfo b/x11/wayidle/distinfo
new file mode 100644
index 000000000000..7ba5f694ab1e
--- /dev/null
+++ b/x11/wayidle/distinfo
@@ -0,0 +1,49 @@
+TIMESTAMP = 1685370149
+SHA256 (wayidle-v0.1.1.tar.gz) = f71d7c9f62d39b254b11a716e7ba7da9ae81224bacb8b273ab5d9595b9fa6b7d
+SIZE (wayidle-v0.1.1.tar.gz) = 4511
+SHA256 (rust/crates/anyhow-1.0.71.crate) = 9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8
+SIZE (rust/crates/anyhow-1.0.71.crate) = 43808
+SHA256 (rust/crates/autocfg-1.1.0.crate) = d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa
+SIZE (rust/crates/autocfg-1.1.0.crate) = 13272
+SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a
+SIZE (rust/crates/bitflags-1.3.2.crate) = 23021
+SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
+SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934
+SHA256 (rust/crates/convert_case-0.6.0.crate) = ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca
+SIZE (rust/crates/convert_case-0.6.0.crate) = 18675
+SHA256 (rust/crates/lexopt-0.3.0.crate) = baff4b617f7df3d896f97fe922b64817f6cd9a756bb81d40f8883f2f66dcb401
+SIZE (rust/crates/lexopt-0.3.0.crate) = 24767
+SHA256 (rust/crates/libc-0.2.144.crate) = 2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1
+SIZE (rust/crates/libc-0.2.144.crate) = 682092
+SHA256 (rust/crates/memchr-2.5.0.crate) = 2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d
+SIZE (rust/crates/memchr-2.5.0.crate) = 65812
+SHA256 (rust/crates/memoffset-0.7.1.crate) = 5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4
+SIZE (rust/crates/memoffset-0.7.1.crate) = 8556
+SHA256 (rust/crates/nix-0.26.2.crate) = bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a
+SIZE (rust/crates/nix-0.26.2.crate) = 277973
+SHA256 (rust/crates/proc-macro2-1.0.59.crate) = 6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b
+SIZE (rust/crates/proc-macro2-1.0.59.crate) = 44360
+SHA256 (rust/crates/quick-xml-0.28.2.crate) = 0ce5e73202a820a31f8a0ee32ada5e21029c81fd9e3ebf668a40832e4219d9d1
+SIZE (rust/crates/quick-xml-0.28.2.crate) = 156462
+SHA256 (rust/crates/quote-1.0.28.crate) = 1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488
+SIZE (rust/crates/quote-1.0.28.crate) = 28382
+SHA256 (rust/crates/static_assertions-1.1.0.crate) = a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f
+SIZE (rust/crates/static_assertions-1.1.0.crate) = 18480
+SHA256 (rust/crates/syn-2.0.18.crate) = 32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e
+SIZE (rust/crates/syn-2.0.18.crate) = 240648
+SHA256 (rust/crates/thiserror-1.0.40.crate) = 978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac
+SIZE (rust/crates/thiserror-1.0.40.crate) = 18709
+SHA256 (rust/crates/thiserror-impl-1.0.40.crate) = f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f
+SIZE (rust/crates/thiserror-impl-1.0.40.crate) = 15138
+SHA256 (rust/crates/unicode-ident-1.0.9.crate) = b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0
+SIZE (rust/crates/unicode-ident-1.0.9.crate) = 41978
+SHA256 (rust/crates/unicode-segmentation-1.10.1.crate) = 1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36
+SIZE (rust/crates/unicode-segmentation-1.10.1.crate) = 98416
+SHA256 (rust/crates/wayrs-client-0.10.4.crate) = 8efff4d6e2a63569d0c26cc6213523d5cf633abc5f43298265efddc4f084692b
+SIZE (rust/crates/wayrs-client-0.10.4.crate) = 49942
+SHA256 (rust/crates/wayrs-protocols-0.10.5.crate) = b9a43b66e8242067ed8b3f5aa8d546d1098697d16f578878b9e90c2022ddbba2
+SIZE (rust/crates/wayrs-protocols-0.10.5.crate) = 146538
+SHA256 (rust/crates/wayrs-scanner-0.10.3.crate) = 4a9a9c400010b242c478a119bffb9cacc02ddffac2e48e1232c2e16afab71691
+SIZE (rust/crates/wayrs-scanner-0.10.3.crate) = 7818
+SHA256 (rust/crates/wayrs-utils-0.6.0.crate) = 50eff17f453e530f0fefd22355c6b3e97dc85b80425f556c63c541ac31928041
+SIZE (rust/crates/wayrs-utils-0.6.0.crate) = 9012
diff --git a/x11/wayidle/pkg-descr b/x11/wayidle/pkg-descr
new file mode 100644
index 000000000000..cde70095babe
--- /dev/null
+++ b/x11/wayidle/pkg-descr
@@ -0,0 +1,5 @@
+Wayidle waits until the Wayland compositor reports being N seconds
+idle. If a command was specified, it will "exec" into that command,
+otherwise, it will exit zero.
+
+Wayidle is designed for usage is shell scripts or execline scripts.