git: 2f16948866d7 - main - deskutils/fyi: new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 19 Aug 2024 12:56:45 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2f16948866d7c6fa1d789ac3f90c25b4b17bc74d
commit 2f16948866d7c6fa1d789ac3f90c25b4b17bc74d
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-08-19 12:53:04 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
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 <bsd.port.mk>
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 <sys/stat.h>
+
+-#include <dbus-1.0/dbus/dbus.h>
++#include <dbus/dbus.h>
+
+ #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