git: 400a3191e3a4 - main - deskutils/libportal: Update 0.10.0

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 13:41:13 UTC
The branch main has been updated by arrowd:

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

commit 400a3191e3a46b0d1e3393aaa7a81d139fd05eec
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-09-10 19:26:23 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-09-11 13:40:04 +0000

    deskutils/libportal: Update 0.10.0
---
 deskutils/libportal-gtk3/Makefile  |  3 +++
 deskutils/libportal-gtk4/Makefile  |  2 ++
 deskutils/libportal/Makefile       | 16 ++++++++++------
 deskutils/libportal/distinfo       |  8 +++-----
 deskutils/libportal/pkg-plist      |  2 +-
 deskutils/libportal/pkg-plist.gtk3 |  4 ++++
 deskutils/libportal/pkg-plist.gtk4 |  6 ++++++
 deskutils/libportal/pkg-plist.qt5  |  1 +
 deskutils/libportal/pkg-plist.qt6  |  1 +
 9 files changed, 31 insertions(+), 12 deletions(-)

diff --git a/deskutils/libportal-gtk3/Makefile b/deskutils/libportal-gtk3/Makefile
index 2030f829505b..fd6466b2b371 100644
--- a/deskutils/libportal-gtk3/Makefile
+++ b/deskutils/libportal-gtk3/Makefile
@@ -4,6 +4,9 @@ COMMENT=	GIO-styled async APIs for Flatpak (${BACKEND} backend)
 BACKEND=	gtk3
 
 USE_GNOME=	gtk30
+USE_GSTREAMER=	plugins
+
+TEST_USES=	gstreamer
 
 MASTERDIR=	${.CURDIR}/../libportal
 
diff --git a/deskutils/libportal-gtk4/Makefile b/deskutils/libportal-gtk4/Makefile
index 0658235fba86..41838d29a024 100644
--- a/deskutils/libportal-gtk4/Makefile
+++ b/deskutils/libportal-gtk4/Makefile
@@ -5,6 +5,8 @@ BACKEND=	gtk4
 
 USE_GNOME=	gtk40
 
+TEST_BUILD_DEPENDS=	gjs:lang/gjs
+
 MASTERDIR=	${.CURDIR}/../libportal
 
 .include "${MASTERDIR}/Makefile"
diff --git a/deskutils/libportal/Makefile b/deskutils/libportal/Makefile
index 94dd9db1c516..8241e8e54666 100644
--- a/deskutils/libportal/Makefile
+++ b/deskutils/libportal/Makefile
@@ -1,10 +1,7 @@
 PORTNAME=	libportal
-PORTVERSION=	0.9.1
+PORTVERSION=	0.10.0
 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
@@ -14,7 +11,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	gtkdoc-scan:textproc/gtk-doc
 
-USES+=		gnome meson pkgconfig
+USES+=		gnome meson pkgconfig python:env
 
 USE_GNOME+=	glib20 introspection:build
 USE_LDCONFIG=	yes
@@ -22,9 +19,16 @@ USE_LDCONFIG=	yes
 USE_GITHUB=	yes
 GH_ACCOUNT=	flatpak
 
-OPTIONS_DEFINE=		VAPI
+BINARY_ALIAS=	python3=${PYTHON_CMD}
+
+OPTIONS_DEFINE=		TEST VAPI
 OPTIONS_DEFAULT=	VAPI
 
+TEST_BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}python-dbusmock>0:devel/py-python-dbusmock@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
+TEST_USES+=		python:build,test
+TEST_MESON_TRUE=	portal-tests tests
+
 VAPI_MESON_TRUE=	vapi
 VAPI_USES=		vala:build
 
diff --git a/deskutils/libportal/distinfo b/deskutils/libportal/distinfo
index dabdf7b8f578..2872f65710fb 100644
--- a/deskutils/libportal/distinfo
+++ b/deskutils/libportal/distinfo
@@ -1,5 +1,3 @@
-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
+TIMESTAMP = 1789047149
+SHA256 (flatpak-libportal-0.10.0_GH0.tar.gz) = e1b6913c6d9015bfa918ace86f82c30940982add97aed9c18cc929c5327054fd
+SIZE (flatpak-libportal-0.10.0_GH0.tar.gz) = 152017
diff --git a/deskutils/libportal/pkg-plist b/deskutils/libportal/pkg-plist
index fbced7293441..ef17661aa961 100644
--- a/deskutils/libportal/pkg-plist
+++ b/deskutils/libportal/pkg-plist
@@ -1,10 +1,10 @@
 include/libportal/account.h
 include/libportal/background.h
 include/libportal/camera.h
+include/libportal/clipboard.h
 include/libportal/dynamic-launcher.h
 include/libportal/email.h
 include/libportal/filechooser.h
-include/libportal/glib-backports.h
 include/libportal/inhibit.h
 include/libportal/inputcapture-pointerbarrier.h
 include/libportal/inputcapture-zone.h
diff --git a/deskutils/libportal/pkg-plist.gtk3 b/deskutils/libportal/pkg-plist.gtk3
index 1d0f1900be1a..9023ca219dbd 100644
--- a/deskutils/libportal/pkg-plist.gtk3
+++ b/deskutils/libportal/pkg-plist.gtk3
@@ -1,9 +1,13 @@
+@comment bin/portal-test-gtk3
 include/libportal-gtk3/portal-gtk3.h
 lib/girepository-1.0/XdpGtk3-1.0.typelib
 lib/libportal-gtk3.so
 lib/libportal-gtk3.so.1
 lib/libportal-gtk3.so.1.0.0
 libdata/pkgconfig/libportal-gtk3.pc
+@comment share/applications/org.gnome.PortalTest.Gtk3.desktop
+@comment share/dbus-1/services/org.gnome.PortalTest.Gtk3.service
 share/gir-1.0/XdpGtk3-1.0.gir
+@comment share/org.gnome.PortalTest.Gtk3/test.txt
 %%VAPI%%share/vala/vapi/libportal-gtk3.deps
 %%VAPI%%share/vala/vapi/libportal-gtk3.vapi
diff --git a/deskutils/libportal/pkg-plist.gtk4 b/deskutils/libportal/pkg-plist.gtk4
index 18865313953d..2116f1fb7ffc 100644
--- a/deskutils/libportal/pkg-plist.gtk4
+++ b/deskutils/libportal/pkg-plist.gtk4
@@ -1,9 +1,15 @@
+@comment bin/org.gnome.PortalTest.Gtk4
 include/libportal-gtk4/portal-gtk4.h
 lib/girepository-1.0/XdpGtk4-1.0.typelib
 lib/libportal-gtk4.so
 lib/libportal-gtk4.so.1
 lib/libportal-gtk4.so.1.0.0
 libdata/pkgconfig/libportal-gtk4.pc
+@comment share/applications/org.gnome.PortalTest.Gtk4.desktop
+@comment share/dbus-1/services/org.gnome.PortalTest.Gtk4.service
 share/gir-1.0/XdpGtk4-1.0.gir
+@comment share/org.gnome.PortalTest.Gtk4/test.txt
+@comment share/portal-test-gtk4/org.gnome.PortalTest.Gtk4.data.gresource
+@comment share/portal-test-gtk4/org.gnome.PortalTest.Gtk4.src.gresource
 %%VAPI%%share/vala/vapi/libportal-gtk4.deps
 %%VAPI%%share/vala/vapi/libportal-gtk4.vapi
diff --git a/deskutils/libportal/pkg-plist.qt5 b/deskutils/libportal/pkg-plist.qt5
index 642ce22e9f43..a9991a7f8bc2 100644
--- a/deskutils/libportal/pkg-plist.qt5
+++ b/deskutils/libportal/pkg-plist.qt5
@@ -1,3 +1,4 @@
+@comment bin/portal-test-qt5
 include/libportal-qt5/portal-qt5.h
 lib/libportal-qt5.so
 lib/libportal-qt5.so.1
diff --git a/deskutils/libportal/pkg-plist.qt6 b/deskutils/libportal/pkg-plist.qt6
index 949ad347fe1e..80b9509b7c5e 100644
--- a/deskutils/libportal/pkg-plist.qt6
+++ b/deskutils/libportal/pkg-plist.qt6
@@ -1,3 +1,4 @@
+@comment bin/portal-test-qt6
 include/libportal-qt6/portal-qt6.h
 lib/libportal-qt6.so
 lib/libportal-qt6.so.1