From 6bd3a1dea984b41f727ffb9f800559da5c44aaa1 Mon Sep 17 00:00:00 2001
From: "Jason E. Hale" <jhale@FreeBSD.org>
Date: Sat, 26 Apr 2025 22:55:35 -0400
Subject: [PATCH] deskutils/libportal: Fix build with Qt 6.9

With hat:	kde@
PR:		286051
---
 deskutils/libportal/Makefile | 3 +++
 deskutils/libportal/distinfo | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/deskutils/libportal/Makefile b/deskutils/libportal/Makefile
index 726347e17304..94dd9db1c516 100644
--- a/deskutils/libportal/Makefile
+++ b/deskutils/libportal/Makefile
@@ -2,6 +2,9 @@ PORTNAME=	libportal
 PORTVERSION=	0.9.1
 CATEGORIES=	deskutils
 
+PATCH_SITES=	https://github.com/flatpak/libportal/commit/
+PATCHFILES+=	796053d2eebe4532aad6bd3fd80cdf3b197806ec.patch:-p1 # Fix build with Qt >= 6.9.0
+
 MAINTAINER=	arrowd@FreeBSD.org
 COMMENT?=	GIO-styled async APIs for Flatpak
 WWW=		https://github.com/flatpak/libportal
diff --git a/deskutils/libportal/distinfo b/deskutils/libportal/distinfo
index 1cf2b076b414..dabdf7b8f578 100644
--- a/deskutils/libportal/distinfo
+++ b/deskutils/libportal/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1739623404
+TIMESTAMP = 1744955150
 SHA256 (flatpak-libportal-0.9.1_GH0.tar.gz) = ea422b789ae487e04194d387bea031fd7485bf88a18aef8c767f7d1c29496a4e
 SIZE (flatpak-libportal-0.9.1_GH0.tar.gz) = 142301
+SHA256 (796053d2eebe4532aad6bd3fd80cdf3b197806ec.patch) = 8fa13c34e4bcf4bc1d439baac82707a6d9ed6d69db9f04f563d5cd961bf10f49
+SIZE (796053d2eebe4532aad6bd3fd80cdf3b197806ec.patch) = 1471