From nobody Mon Aug 19 12:56:45 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WnXfj620Cz5T0NY; Mon, 19 Aug 2024 12:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WnXfj5Nywz4h4G; Mon, 19 Aug 2024 12:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724072205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xgbbiyB6hy6O07qBO+n0YpXv5muiYrlg0/c0DHR+woo=; b=xv+UejnB3v9XnDW5kYydJexG8Y2yPcEO8orVPbPeJyk0tYcpXxHsjz3uA/zSsc13bmgUPP zUI1jw2lCnxIGLcIrNk0k6e5WLpCnncKztVkrceViNEJ92kU4KbK0VzmiHvuZUH8SYZ7G6 ipfyerUKnHpM43vg8hGNzJ/rLjx87Mj/To1vciQ6DHhS8bzuoJdQ0HqZprwai3bafbbH0a 3373Za9GPqqhFvVrDXrDAuyLPeH9ECKJ1JUsA+KaB4lbncV6e+Cz6ZSpK6bjnVGkx+7rBT hNrBp48LVdlSKDZfqxYz+N3fYPMSrbVhJyYJqWJOQzKuxMaZew0Ek02dTfgITw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724072205; a=rsa-sha256; cv=none; b=wRzSwlHGsE8tN9whuNdStEeDA4Uy02RUvOneCXeZMeBr5UzkQPNcpV2mcnTuUt3A3hgu4A Zav370RFbMVctFg6PGVTn0gEqvEkbwQ3wdy/5u4QHQNMqnluQQfnUSqPRHy9rNmu9RhLQ/ x+fYyaLysoEyEy/lOeqj9E1Yc1TJc6RAh9TsSivjwpHHpnzfP/n5gjbv6VZDq/bTLbq07n ZZHTRzg9nBRA8XSX6iE2m+Z/85K69YYnBdfmCkFGQGjWa9FrVSc9eLLAJ7kyQQAjuq1V+W yobbno9IIPp2q+0SaBmv70l9U7397/sKMbI/NhLs1wfdGAurG1NZ1Fm9mQi6Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724072205; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=xgbbiyB6hy6O07qBO+n0YpXv5muiYrlg0/c0DHR+woo=; b=P5RZX0A32n73tVR+sfplHqG2UU6epUkTlh2FyrzXdM+qPwmuxsdwmgUf0rIDUPCZqnYOKG JTKJWnGw2lRdMH39/3e+FHYWwltwSnRnJ9ggKymUyoiie7BTjY+TQprTgi2y7lJd7XhDFq udlXksi1pKoeXpcMKWZoG8fy7UbVGvf9NJTuoAQGRcryu9PRCcFXmT+p+Hq1b2Zwu4DQa+ F3GWMzEQHDq6mSkEJtlyq4N0ylhK+BiZF5liniHGdaiScoBPQebAT2P6TO4Xre6gUGYMvt H6q9pFjUVzwkVtgZgX2lh38U0Pm6x3H5s/CBgwUu4UWet7OVvUpYBm34jhpvog== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WnXfj4gzRzHN4; Mon, 19 Aug 2024 12:56:45 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47JCujRL023318; Mon, 19 Aug 2024 12:56:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47JCujch023315; Mon, 19 Aug 2024 12:56:45 GMT (envelope-from git) Date: Mon, 19 Aug 2024 12:56:45 GMT Message-Id: <202408191256.47JCujch023315@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 2f16948866d7 - main - deskutils/fyi: new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2f16948866d7c6fa1d789ac3f90c25b4b17bc74d Auto-Submitted: auto-generated The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/ports/commit/?id=2f16948866d7c6fa1d789ac3f90c25b4b17bc74d commit 2f16948866d7c6fa1d789ac3f90c25b4b17bc74d Author: Baptiste Daroussin AuthorDate: 2024-08-19 12:53:04 +0000 Commit: Baptiste Daroussin CommitDate: 2024-08-19 12:54:24 +0000 deskutils/fyi: new port FYI (for your information) is a command line utility to send desktop notifications to the user via a notification daemon implementing XDG desktop notifications. It is a almost a notify-send clone, with the following differences: * notify-send does not implement --close. * notify-send does not expose activation tokens (needed for window focus/activation) in any meaningful way. It prints it as a debug message when G_MESSAGES_DEBUG=all; fyi prints it when you use --print-token. * fyi has consistent syntax in its --action and --hintoptions. * fyi can print the reason a notification was closed, with --print-reason. * fyi can query the notification daemon for its name and version information. * fyi can query the notification daemon for its capabilities. * fyi has shell completions (bash and fish). * fyi has a single run-time dependency: dbus. --- deskutils/Makefile | 1 + deskutils/fyi/Makefile | 23 +++++++++++++++++++++++ deskutils/fyi/distinfo | 3 +++ deskutils/fyi/files/patch-main.c | 20 ++++++++++++++++++++ deskutils/fyi/pkg-descr | 16 ++++++++++++++++ deskutils/fyi/pkg-plist | 7 +++++++ 6 files changed, 70 insertions(+) diff --git a/deskutils/Makefile b/deskutils/Makefile index d65da652af71..5b717ae57834 100644 --- a/deskutils/Makefile +++ b/deskutils/Makefile @@ -61,6 +61,7 @@ SUBDIR += freebsd-update-notify SUBDIR += freemind SUBDIR += freeplane + SUBDIR += fyi SUBDIR += ganttproject SUBDIR += gcal SUBDIR += gcalcli diff --git a/deskutils/fyi/Makefile b/deskutils/fyi/Makefile new file mode 100644 index 000000000000..adc4bd000a06 --- /dev/null +++ b/deskutils/fyi/Makefile @@ -0,0 +1,23 @@ +PORTNAME= fyi +DISTVERSION= 1.0.3 +CATEGORIES= deskutils +MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/ + +MAINTAINER= bapt@FreeBSD.org +COMMENT= Command line utility to send desktop notifications +WWW= https://codeberg.org/dnkl/fyi + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libdbus-1.so:devel/dbus + +USES= meson +WRKSRC= ${WRKDIR}/${PORTNAME} + +OPTIONS_DEFINE= DOCS + +DOCS_BUILD_DEPENDS= scdoc:textproc/scdoc +DOCS_MESON_ENABLED= docs + +.include diff --git a/deskutils/fyi/distinfo b/deskutils/fyi/distinfo new file mode 100644 index 000000000000..da7b073b7ef1 --- /dev/null +++ b/deskutils/fyi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724070508 +SHA256 (fyi-1.0.3.tar.gz) = 39e563fc7db59608ffe8f34c96c04dbdce707ba4a8a97ed3300f03f50581ba66 +SIZE (fyi-1.0.3.tar.gz) = 13558 diff --git a/deskutils/fyi/files/patch-main.c b/deskutils/fyi/files/patch-main.c new file mode 100644 index 000000000000..7c294f853988 --- /dev/null +++ b/deskutils/fyi/files/patch-main.c @@ -0,0 +1,20 @@ +--- main.c.orig 2024-08-09 08:36:50 UTC ++++ main.c +@@ -14,7 +14,7 @@ + + #include + +-#include ++#include + + #include "version.h" + +@@ -365,7 +365,7 @@ main(int argc, char *const *argv) + }; + + const char *progname = argv[0]; +- const char *app_id = program_invocation_name; ++ const char *app_id = progname; + const char *icon = NULL; + const char *image_data_file = NULL; + const char *category = NULL; diff --git a/deskutils/fyi/pkg-descr b/deskutils/fyi/pkg-descr new file mode 100644 index 000000000000..9b081632bbb9 --- /dev/null +++ b/deskutils/fyi/pkg-descr @@ -0,0 +1,16 @@ +FYI (for your information) is a command line utility to send desktop +notifications to the user via a notification daemon implementing XDG desktop +notifications. + +It is a almost a notify-send clone, with the following differences: + + * notify-send does not implement --close. + * notify-send does not expose activation tokens (needed for window + focus/activation) in any meaningful way. It prints it as a debug message when + G_MESSAGES_DEBUG=all; fyi prints it when you use --print-token. + * fyi has consistent syntax in its --action and --hintoptions. + * fyi can print the reason a notification was closed, with --print-reason. + * fyi can query the notification daemon for its name and version information. + * fyi can query the notification daemon for its capabilities. + * fyi has shell completions (bash and fish). + * fyi has a single run-time dependency: dbus. diff --git a/deskutils/fyi/pkg-plist b/deskutils/fyi/pkg-plist new file mode 100644 index 000000000000..542ad1e99053 --- /dev/null +++ b/deskutils/fyi/pkg-plist @@ -0,0 +1,7 @@ +bin/fyi +share/bash-completion/completions/fyi +%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.md +%%PORTDOCS%%%%DOCSDIR%%/LICENSE +%%PORTDOCS%%%%DOCSDIR%%/README.md +share/fish/vendor_completions.d/fyi.fish +share/man/man1/fyi.1.gz