git: 770226e9e110 - main - x11/xdg-desktop-portal-gtk: New port: Gtk implementation of xdg-desktop-portal

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 23:33:07 UTC
The branch main has been updated by yuri:

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

commit 770226e9e110731cd3f005328b1826a9dc87cc6f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-06 15:31:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-06 23:33:04 +0000

    x11/xdg-desktop-portal-gtk: New port: Gtk implementation of xdg-desktop-portal
---
 x11/Makefile                         |  1 +
 x11/xdg-desktop-portal-gtk/Makefile  | 26 ++++++++++++++++++++++++++
 x11/xdg-desktop-portal-gtk/distinfo  |  3 +++
 x11/xdg-desktop-portal-gtk/pkg-descr |  3 +++
 x11/xdg-desktop-portal-gtk/pkg-plist | 33 +++++++++++++++++++++++++++++++++
 5 files changed, 66 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index d7df5e968c61..f8ef299ffea9 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -475,6 +475,7 @@
     SUBDIR += xconsole
     SUBDIR += xcursorgen
     SUBDIR += xcut
+    SUBDIR += xdg-desktop-portal-gtk
     SUBDIR += xdg-desktop-portal-hyprland
     SUBDIR += xdg-desktop-portal-wlr
     SUBDIR += xdialog
diff --git a/x11/xdg-desktop-portal-gtk/Makefile b/x11/xdg-desktop-portal-gtk/Makefile
new file mode 100644
index 000000000000..3e1ef4dd90b5
--- /dev/null
+++ b/x11/xdg-desktop-portal-gtk/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	xdg-desktop-portal-gtk
+DISTVERSION=	1.14.1
+CATEGORIES=	x11
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Gtk implementation of xdg-desktop-portal
+WWW=		https://github.com/flatpak/xdg-desktop-portal-gtk
+
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	xdg-desktop-portal>0:deskutils/xdg-desktop-portal
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
+		libharfbuzz.so:print/harfbuzz
+RUN_DEPENDS=	xdg-desktop-portal>0:deskutils/xdg-desktop-portal
+
+USES=		autoreconf desktop-file-utils gettext gmake gnome libtool pkgconfig
+USE_GNOME=	cairo gdkpixbuf2 gtk30 pango
+
+GNU_CONFIGURE=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	flatpak
+
+.include <bsd.port.mk>
diff --git a/x11/xdg-desktop-portal-gtk/distinfo b/x11/xdg-desktop-portal-gtk/distinfo
new file mode 100644
index 000000000000..1bdcd8e6b8d7
--- /dev/null
+++ b/x11/xdg-desktop-portal-gtk/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1673043432
+SHA256 (flatpak-xdg-desktop-portal-gtk-1.14.1_GH0.tar.gz) = 79992b308246eb9965a1589a321271def3b4bed6a2b84fffd1916f8d6ea3bc9f
+SIZE (flatpak-xdg-desktop-portal-gtk-1.14.1_GH0.tar.gz) = 155850
diff --git a/x11/xdg-desktop-portal-gtk/pkg-descr b/x11/xdg-desktop-portal-gtk/pkg-descr
new file mode 100644
index 000000000000..4f8a5d2dff2b
--- /dev/null
+++ b/x11/xdg-desktop-portal-gtk/pkg-descr
@@ -0,0 +1,3 @@
+xdg-desktop-portal-gtk is a backend implementation for xdg-desktop-portal that
+is using GTK and various pieces of GNOME infrastructure, such as
+the org.gnome.Shell.Screenshot or org.gnome.SessionManager D-Bus interfaces.
diff --git a/x11/xdg-desktop-portal-gtk/pkg-plist b/x11/xdg-desktop-portal-gtk/pkg-plist
new file mode 100644
index 000000000000..d9311452baad
--- /dev/null
+++ b/x11/xdg-desktop-portal-gtk/pkg-plist
@@ -0,0 +1,33 @@
+lib/systemd/user/xdg-desktop-portal-gtk.service
+libexec/xdg-desktop-portal-gtk
+share/applications/xdg-desktop-portal-gtk.desktop
+share/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
+share/locale/cs/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/da/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/de/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/en_GB/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/es/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/fr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/gl/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/he/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/hi/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/hr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/hu/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/id/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/it/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/ka/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/lt/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/nl/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/oc/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/pl/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/pt/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/pt_BR/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/ru/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/sk/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/sr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/sv/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/tr/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/uk/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/zh_CN/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/locale/zh_TW/LC_MESSAGES/xdg-desktop-portal-gtk.mo
+share/xdg-desktop-portal/portals/gtk.portal