git: a256ca3ea1aa - main - x11/hyprlauncher: Update to 0.1.4

From: Hiroki Tagato <tagattie_at_FreeBSD.org>
Date: Sun, 28 Dec 2025 07:50:00 UTC
The branch main has been updated by tagattie:

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

commit a256ca3ea1aa16c9ad1de3158d3c493a5981f77b
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2025-12-28 07:48:17 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2025-12-28 07:49:53 +0000

    x11/hyprlauncher: Update to 0.1.4
    
    While here, adjust dependency so that libinotify is required only when
    system does not yet implement native inotify functions.
    
    Changelog: https://github.com/hyprwm/hyprlauncher/releases/tag/v0.1.4
    
    Reported by:    GitHub (watch releases)
---
 x11/hyprlauncher/Makefile                                 | 15 ++++++++++-----
 x11/hyprlauncher/distinfo                                 |  6 +++---
 .../files/patch-src_finders_desktop_DesktopFinder.cpp     |  4 ++--
 3 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/x11/hyprlauncher/Makefile b/x11/hyprlauncher/Makefile
index 07033dafb550..063cbc1b9633 100644
--- a/x11/hyprlauncher/Makefile
+++ b/x11/hyprlauncher/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	hyprlauncher
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.1.3
-PORTREVISION=	3
+DISTVERSION=	0.1.4
 CATEGORIES=	x11 wayland
 
 MAINTAINER=	tagattie@FreeBSD.org
@@ -15,21 +14,27 @@ LIB_DEPENDS=	libhyprlang.so:devel/hyprlang \
 		libhyprutils.so:devel/hyprutils \
 		libhyprwire.so:devel/hyprwire \
 		libicuuc.so:devel/icu \
-		libinotify.so:devel/libinotify \
 		libdrm.so:graphics/libdrm \
 		libqalculate.so:math/libqalculate \
+		libfontconfig.so:x11-fonts/fontconfig \
 		libhyprtoolkit.so:x11-toolkits/hyprtoolkit
 RUN_DEPENDS=	wl-copy:x11/wl-clipboard
 
-USES=		cmake localbase:ldflags pkgconfig xorg
+USES=		cmake pkgconfig xorg
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	hyprwm
 
 USE_XORG=	pixman
 
-LDFLAGS+=	-pthread -linotify
+LDFLAGS+=	-pthread
 
 PLIST_FILES=	bin/hyprlauncher
 
+.if !exists(/usr/include/sys/inotify.h)
+LIB_DEPENDS+=	libinotify.so:devel/libinotify
+USES+=		localbase:ldflags
+LDFLAGS+=	-linotify
+.endif
+
 .include <bsd.port.mk>
diff --git a/x11/hyprlauncher/distinfo b/x11/hyprlauncher/distinfo
index 41deaed638b6..7556f37fe33e 100644
--- a/x11/hyprlauncher/distinfo
+++ b/x11/hyprlauncher/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1763884060
-SHA256 (hyprwm-hyprlauncher-v0.1.3_GH0.tar.gz) = 366f36f47d9929705944b235e7e2ff6fb4fa5cfbc0b16d3dca0cd9bd157a327c
-SIZE (hyprwm-hyprlauncher-v0.1.3_GH0.tar.gz) = 41123
+TIMESTAMP = 1766885766
+SHA256 (hyprwm-hyprlauncher-v0.1.4_GH0.tar.gz) = f3ae0d0b34451db90fce9631f6040097d5207e0fffb72bb77a5a61f514379f91
+SIZE (hyprwm-hyprlauncher-v0.1.4_GH0.tar.gz) = 44861
diff --git a/x11/hyprlauncher/files/patch-src_finders_desktop_DesktopFinder.cpp b/x11/hyprlauncher/files/patch-src_finders_desktop_DesktopFinder.cpp
index e5ef33e3fb72..4e7102c32bc0 100644
--- a/x11/hyprlauncher/files/patch-src_finders_desktop_DesktopFinder.cpp
+++ b/x11/hyprlauncher/files/patch-src_finders_desktop_DesktopFinder.cpp
@@ -1,10 +1,10 @@
---- src/finders/desktop/DesktopFinder.cpp.orig	2025-11-23 08:44:11 UTC
+--- src/finders/desktop/DesktopFinder.cpp.orig	2025-12-27 13:54:55 UTC
 +++ src/finders/desktop/DesktopFinder.cpp
 @@ -9,6 +9,7 @@
  #include <fstream>
  #include <sys/inotify.h>
  #include <sys/poll.h>
 +#include <unistd.h>
+ #include <unordered_set>
  
  #include <hyprutils/string/String.hpp>
- #include <hyprutils/os/Process.hpp>