git: b96b4dc1ea8e - main - deskutils/budgie-desktop-view: add 2 new patches

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Wed, 24 Sep 2025 22:47:54 UTC
The branch main has been updated by tagattie:

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

commit b96b4dc1ea8e65c4bdd156262448f68b4f79c544
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2025-09-09 15:24:51 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-09-24 22:46:22 +0000

    deskutils/budgie-desktop-view: add 2 new patches
    
    PR:             289416
    Reported by:    Olivier Duchateau <duchateau.olivier@gmail.com> (maintainer)
---
 deskutils/budgie-desktop-view/Makefile             | 12 ++++---
 deskutils/budgie-desktop-view/distinfo             |  4 ++-
 .../files/patch-src_file__item.vala                | 38 ++++++++++++++++++++++
 3 files changed, 49 insertions(+), 5 deletions(-)

diff --git a/deskutils/budgie-desktop-view/Makefile b/deskutils/budgie-desktop-view/Makefile
index 45bd4131aa75..f136fa65faf7 100644
--- a/deskutils/budgie-desktop-view/Makefile
+++ b/deskutils/budgie-desktop-view/Makefile
@@ -1,19 +1,23 @@
 PORTNAME=	budgie-desktop-view
-DISTVERSION=	1.3
 DISTVERSIONPREFIX=	v
-PORTREVISION=	1
+DISTVERSION=	1.3
+PORTREVISION=	2
 CATEGORIES=	deskutils budgie
 MASTER_SITES=	BUDGIE
 
+PATCH_SITES=	https://github.com/BuddiesOfBudgie/${PORTNAME}/commit/
+PATCHFILES+=	05a9822.patch:-p1
+
 MAINTAINER=	duchateau.olivier@gmail.com
 COMMENT=	Budgie desktop icons application / implementation
 WWW=		https://github.com/BuddiesOfBudgie/budgie-desktop-view
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
 
-USES=		budgie gettext gnome meson pkgconfig tar:xz vala:build
+USES=		budgie gettext-tools gnome meson pkgconfig tar:xz vala:build
 USE_BUDGIE=	raven:run
-USE_GNOME=	glib20 gtk30 gdkpixbuf intltool
+USE_GNOME=	glib20 gtk30 gdkpixbuf intltool:build
 MESON_ARGS=	-Dwerror=false
 
 GLIB_SCHEMAS=	org.buddiesofbudgie.budgie-desktop-view.gschema.xml
diff --git a/deskutils/budgie-desktop-view/distinfo b/deskutils/budgie-desktop-view/distinfo
index 3366d9362dbd..0a119de27e40 100644
--- a/deskutils/budgie-desktop-view/distinfo
+++ b/deskutils/budgie-desktop-view/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1697560495
+TIMESTAMP = 1732980852
 SHA256 (budgie/budgie-desktop-view-v1.3.tar.xz) = acf47e478fa6df75308c1a553668d236a484bd5fb1b60deba4b7744de0445411
 SIZE (budgie/budgie-desktop-view-v1.3.tar.xz) = 274056
+SHA256 (budgie/05a9822.patch) = ae509a072e8a7ce2ec6d3590eec2ca5da04032ddaa00d653d6863047c34d22e4
+SIZE (budgie/05a9822.patch) = 1317
diff --git a/deskutils/budgie-desktop-view/files/patch-src_file__item.vala b/deskutils/budgie-desktop-view/files/patch-src_file__item.vala
new file mode 100644
index 000000000000..f594bf32f17c
--- /dev/null
+++ b/deskutils/budgie-desktop-view/files/patch-src_file__item.vala
@@ -0,0 +1,38 @@
+Support for x11/ptyxis and x11/gnome-console (kgx)
+
+--- src/file_item.vala.orig	2023-10-16 12:20:36 UTC
++++ src/file_item.vala
+@@ -227,6 +227,8 @@ public class FileItem : DesktopItem {
+ 			// alacritty supports -e, --working-directory WITHOUT equal
+ 			// gnome-terminal supports --tab and --working-directory (no -w) WITH equal, but not -e
+ 			// mate-terminal supports --tab and -e, --working-directory (no -w) WITH equal
++			// kgx (gnome-console) supports --tab and -e, --working-directory (no -w) WITH equal
++			// ptyxis supports --tab and -x, --working-directory (no -w) WITH equal
+ 			// konsole supports --new-tab and -e, --workdir WITHOUT equal
+ 			// kitty supports --directory WITH equal
+ 			// terminator supports --new-tab and -e,  --working-directory (no -w) WITH equal
+@@ -235,10 +237,11 @@ public class FileItem : DesktopItem {
+ 				(preferred_terminal != "alacritty") && // Not Alacritty, no tab CLI flag
+ 				(preferred_terminal != "gnome-terminal") && // Not GNOME Terminal which uses --tab instead of --new-tab
+ 				(preferred_terminal != "tilix") && // No new tab CLI flag (that I saw anyways)
+-				(preferred_terminal != "kitty") // No new tab CLI flag for Kitty, either
++				(preferred_terminal != "kitty") && // No new tab CLI flag for Kitty, either
++				(preferred_terminal != "kgx") && (preferred_terminal != "ptyxis")
+ 			) {
+ 				args += "--new-tab"; // Add --new-tab
+-			} else if ((preferred_terminal == "gnome-terminal") && (_type == "file")) { // GNOME Terminal, self explanatory really
++			} else if ((preferred_terminal == "gnome-terminal" || preferred_terminal == "kgx" || preferred_terminal == "ptyxis") && (_type == "file")) { // GNOME Terminal, self explanatory really
+ 				args += "--tab"; // Create a new tab in an existing window or creates a new window
+ 			}
+ 
+@@ -269,6 +272,10 @@ public class FileItem : DesktopItem {
+ 
+ 				if (preferred_terminal == "gnome-terminal") { // gnome-terminal will not work with -e
+ 					args += "--";
++					args += editor;
++					args += path;
++				} else if (preferred_terminal == "ptyxis") {
++					args += "-x";
+ 					args += editor;
+ 					args += path;
+ 				} else {