From 1bb35b3d5c8b3b97199f198253f35a8ec6867b65 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sun, 6 Nov 2022 16:00:31 +0000 Subject: [PATCH] Import libportal-0.6. libportal provides GIO-style async APIs for most Flatpak portals. ok robert@ --- sysutils/libportal/Makefile | 60 +++++ sysutils/libportal/distinfo | 2 + .../patches/patch-libportal_portal_c | 13 ++ sysutils/libportal/pkg/DESCR-gtk3 | 1 + sysutils/libportal/pkg/DESCR-gtk4 | 1 + sysutils/libportal/pkg/DESCR-main | 1 + sysutils/libportal/pkg/DESCR-qt5 | 1 + sysutils/libportal/pkg/PLIST-gtk3 | 8 + sysutils/libportal/pkg/PLIST-gtk4 | 8 + sysutils/libportal/pkg/PLIST-main | 214 ++++++++++++++++++ sysutils/libportal/pkg/PLIST-qt5 | 4 + 11 files changed, 313 insertions(+) create mode 100644 sysutils/libportal/Makefile create mode 100644 sysutils/libportal/distinfo create mode 100644 sysutils/libportal/patches/patch-libportal_portal_c create mode 100644 sysutils/libportal/pkg/DESCR-gtk3 create mode 100644 sysutils/libportal/pkg/DESCR-gtk4 create mode 100644 sysutils/libportal/pkg/DESCR-main create mode 100644 sysutils/libportal/pkg/DESCR-qt5 create mode 100644 sysutils/libportal/pkg/PLIST-gtk3 create mode 100644 sysutils/libportal/pkg/PLIST-gtk4 create mode 100644 sysutils/libportal/pkg/PLIST-main create mode 100644 sysutils/libportal/pkg/PLIST-qt5 diff --git a/sysutils/libportal/Makefile b/sysutils/libportal/Makefile new file mode 100644 index 00000000000..7cd3f89e548 --- /dev/null +++ b/sysutils/libportal/Makefile @@ -0,0 +1,60 @@ +COMMENT-main= GIO-style async APIs for most Flatpak portals +COMMENT-gtk3= GTK3 backend for libportal +COMMENT-gtk4= GTK4 backend for libportal +COMMENT-qt5= Qt5 backend for libportal + +V= 0.6 +DISTNAME= libportal-${V} + +PKGNAME-gtk3= libportal-gtk3-${V} +PKGNAME-gtk4= libportal-gtk4-${V} +PKGNAME-qt5= libportal-qt5-${V} + +SHARED_LIBS += portal 0.0 # 1.0.0 +SHARED_LIBS += portal-gtk3 0.0 # 1.0.0 +SHARED_LIBS += portal-gtk4 0.0 # 1.0.0 +SHARED_LIBS += portal-qt5 0.0 # 1.0.0 + +CATEGORIES= sysutils devel + +HOMEPAGE= https://github.com/flatpak/libportal + +MAINTAINER= Antoine Jacoutot + +# LGPLv3 +PERMIT_PACKAGE= Yes + +MASTER_SITES= https://github.com/flatpak/libportal/releases/download/${V}/ +EXTRACT_SUFX= .tar.xz + +MULTI_PACKAGES= -main -gtk3 -gtk4 -qt5 + +WANTLIB-main += gio-2.0 glib-2.0 gobject-2.0 + +WANTLIB-gtk3 += gdk-3 glib-2.0 gobject-2.0 gtk-3 + +WANTLIB-gtk4 += glib-2.0 gobject-2.0 gtk-4 + +WANTLIB-qt5 += Qt5Core Qt5Gui Qt5X11Extras c++abi gio-2.0 glib-2.0 +WANTLIB-qt5 += gobject-2.0 portal + +MODULES= devel/meson \ + x11/gnome + +MODGNOME_CPPFLAGS= -I${X11BASE}/include +MODGNOME_TOOLS= gi-docgen gobject-introspection vala + +LIB_DEPENDS-main= devel/glib2 + +LIB_DEPENDS-gtk3= x11/gtk+3 + +LIB_DEPENDS-gtk4= x11/gtk+4 + +LIB_DEPENDS-qt5= ${BASE_PKGPATH},-main=${V} \ + x11/qt5/qtx11extras + +RUN_DEPENDS-gtk3= ${BASE_PKGPATH},-main=${V} + +RUN_DEPENDS-gtk4= ${BASE_PKGPATH},-main=${V} + +.include diff --git a/sysutils/libportal/distinfo b/sysutils/libportal/distinfo new file mode 100644 index 00000000000..37cdfd62f8a --- /dev/null +++ b/sysutils/libportal/distinfo @@ -0,0 +1,2 @@ +SHA256 (libportal-0.6.tar.xz) = iKEsO6cbwxrP9yOMKA3ml9YJzrxQgww3Znduw1q8ZWY= +SIZE (libportal-0.6.tar.xz) = 63816 diff --git a/sysutils/libportal/patches/patch-libportal_portal_c b/sysutils/libportal/patches/patch-libportal_portal_c new file mode 100644 index 00000000000..791ff71aea5 --- /dev/null +++ b/sysutils/libportal/patches/patch-libportal_portal_c @@ -0,0 +1,13 @@ +Index: libportal/portal.c +--- libportal/portal.c.orig ++++ libportal/portal.c +@@ -27,7 +27,9 @@ + #include + #include + #include ++#ifndef __OpenBSD__ + #include ++#endif + #include + + /** diff --git a/sysutils/libportal/pkg/DESCR-gtk3 b/sysutils/libportal/pkg/DESCR-gtk3 new file mode 100644 index 00000000000..811ec50e791 --- /dev/null +++ b/sysutils/libportal/pkg/DESCR-gtk3 @@ -0,0 +1 @@ +GTK3 backend for libportal. diff --git a/sysutils/libportal/pkg/DESCR-gtk4 b/sysutils/libportal/pkg/DESCR-gtk4 new file mode 100644 index 00000000000..a2ceb9f5fbb --- /dev/null +++ b/sysutils/libportal/pkg/DESCR-gtk4 @@ -0,0 +1 @@ +GTK4 backend for libportal. diff --git a/sysutils/libportal/pkg/DESCR-main b/sysutils/libportal/pkg/DESCR-main new file mode 100644 index 00000000000..b0c094e310a --- /dev/null +++ b/sysutils/libportal/pkg/DESCR-main @@ -0,0 +1 @@ +libportal provides GIO-style async APIs for most Flatpak portals. diff --git a/sysutils/libportal/pkg/DESCR-qt5 b/sysutils/libportal/pkg/DESCR-qt5 new file mode 100644 index 00000000000..a1f5c55d006 --- /dev/null +++ b/sysutils/libportal/pkg/DESCR-qt5 @@ -0,0 +1 @@ +Qt5 backend for libportal. diff --git a/sysutils/libportal/pkg/PLIST-gtk3 b/sysutils/libportal/pkg/PLIST-gtk3 new file mode 100644 index 00000000000..cb3134d54ad --- /dev/null +++ b/sysutils/libportal/pkg/PLIST-gtk3 @@ -0,0 +1,8 @@ +include/libportal-gtk3/ +include/libportal-gtk3/portal-gtk3.h +lib/girepository-1.0/XdpGtk3-1.0.typelib +@lib lib/libportal-gtk3.so.${LIBportal-gtk3_VERSION} +lib/pkgconfig/libportal-gtk3.pc +share/gir-1.0/XdpGtk3-1.0.gir +share/vala/vapi/libportal-gtk3.deps +share/vala/vapi/libportal-gtk3.vapi diff --git a/sysutils/libportal/pkg/PLIST-gtk4 b/sysutils/libportal/pkg/PLIST-gtk4 new file mode 100644 index 00000000000..0b946f97474 --- /dev/null +++ b/sysutils/libportal/pkg/PLIST-gtk4 @@ -0,0 +1,8 @@ +include/libportal-gtk4/ +include/libportal-gtk4/portal-gtk4.h +lib/girepository-1.0/XdpGtk4-1.0.typelib +@lib lib/libportal-gtk4.so.${LIBportal-gtk4_VERSION} +lib/pkgconfig/libportal-gtk4.pc +share/gir-1.0/XdpGtk4-1.0.gir +share/vala/vapi/libportal-gtk4.deps +share/vala/vapi/libportal-gtk4.vapi diff --git a/sysutils/libportal/pkg/PLIST-main b/sysutils/libportal/pkg/PLIST-main new file mode 100644 index 00000000000..7e37f9cca24 --- /dev/null +++ b/sysutils/libportal/pkg/PLIST-main @@ -0,0 +1,214 @@ +include/libportal/ +include/libportal/account.h +include/libportal/background.h +include/libportal/camera.h +include/libportal/dynamic-launcher.h +include/libportal/email.h +include/libportal/filechooser.h +include/libportal/inhibit.h +include/libportal/location.h +include/libportal/notification.h +include/libportal/openuri.h +include/libportal/parent.h +include/libportal/portal-enums.h +include/libportal/portal-helpers.h +include/libportal/portal.h +include/libportal/print.h +include/libportal/remote.h +include/libportal/screenshot.h +include/libportal/spawn.h +include/libportal/trash.h +include/libportal/types.h +include/libportal/updates.h +include/libportal/wallpaper.h +lib/girepository-1.0/ +lib/girepository-1.0/Xdp-1.0.typelib +@lib lib/libportal.so.${LIBportal_VERSION} +lib/pkgconfig/libportal.pc +share/doc/libportal-1/ +share/doc/libportal-1/RedHatDisplay-Black.woff +share/doc/libportal-1/RedHatDisplay-Black.woff2 +share/doc/libportal-1/RedHatDisplay-BlackItalic.woff +share/doc/libportal-1/RedHatDisplay-BlackItalic.woff2 +share/doc/libportal-1/RedHatDisplay-Bold.woff +share/doc/libportal-1/RedHatDisplay-Bold.woff2 +share/doc/libportal-1/RedHatDisplay-BoldItalic.woff +share/doc/libportal-1/RedHatDisplay-BoldItalic.woff2 +share/doc/libportal-1/RedHatDisplay-Italic.woff +share/doc/libportal-1/RedHatDisplay-Italic.woff2 +share/doc/libportal-1/RedHatDisplay-Medium.woff +share/doc/libportal-1/RedHatDisplay-Medium.woff2 +share/doc/libportal-1/RedHatDisplay-MediumItalic.woff +share/doc/libportal-1/RedHatDisplay-MediumItalic.woff2 +share/doc/libportal-1/RedHatDisplay-Regular.woff +share/doc/libportal-1/RedHatDisplay-Regular.woff2 +share/doc/libportal-1/RedHatText-Bold.woff +share/doc/libportal-1/RedHatText-Bold.woff2 +share/doc/libportal-1/RedHatText-BoldItalic.woff +share/doc/libportal-1/RedHatText-BoldItalic.woff2 +share/doc/libportal-1/RedHatText-Italic.woff +share/doc/libportal-1/RedHatText-Italic.woff2 +share/doc/libportal-1/RedHatText-Medium.woff +share/doc/libportal-1/RedHatText-Medium.woff2 +share/doc/libportal-1/RedHatText-MediumItalic.woff +share/doc/libportal-1/RedHatText-MediumItalic.woff2 +share/doc/libportal-1/RedHatText-Regular.woff +share/doc/libportal-1/RedHatText-Regular.woff2 +share/doc/libportal-1/SourceCodePro-It.ttf.woff +share/doc/libportal-1/SourceCodePro-Regular.ttf.woff +share/doc/libportal-1/SourceCodePro-Semibold.ttf.woff +share/doc/libportal-1/class.Portal.html +share/doc/libportal-1/class.Session.html +share/doc/libportal-1/classes_hierarchy.html +share/doc/libportal-1/const.WALLPAPER_TARGET_BOTH.html +share/doc/libportal-1/ctor.Portal.new.html +share/doc/libportal-1/enum.ButtonState.html +share/doc/libportal-1/enum.CameraFlags.html +share/doc/libportal-1/enum.DiscreteAxis.html +share/doc/libportal-1/enum.EmailFlags.html +share/doc/libportal-1/enum.KeyState.html +share/doc/libportal-1/enum.LocationAccuracy.html +share/doc/libportal-1/enum.LocationMonitorFlags.html +share/doc/libportal-1/enum.LoginSessionState.html +share/doc/libportal-1/enum.NotificationFlags.html +share/doc/libportal-1/enum.PersistMode.html +share/doc/libportal-1/enum.PrintFlags.html +share/doc/libportal-1/enum.SaveFileFlags.html +share/doc/libportal-1/enum.SessionMonitorFlags.html +share/doc/libportal-1/enum.SessionState.html +share/doc/libportal-1/enum.SessionType.html +share/doc/libportal-1/enum.UpdateInstallFlags.html +share/doc/libportal-1/enum.UpdateMonitorFlags.html +share/doc/libportal-1/enum.UpdateStatus.html +share/doc/libportal-1/enum.UserInformationFlags.html +share/doc/libportal-1/flags.BackgroundFlags.html +share/doc/libportal-1/flags.CursorMode.html +share/doc/libportal-1/flags.DeviceType.html +share/doc/libportal-1/flags.InhibitFlags.html +share/doc/libportal-1/flags.LauncherType.html +share/doc/libportal-1/flags.OpenFileFlags.html +share/doc/libportal-1/flags.OpenUriFlags.html +share/doc/libportal-1/flags.OutputType.html +share/doc/libportal-1/flags.RemoteDesktopFlags.html +share/doc/libportal-1/flags.ScreencastFlags.html +share/doc/libportal-1/flags.ScreenshotFlags.html +share/doc/libportal-1/flags.SpawnFlags.html +share/doc/libportal-1/flags.WallpaperFlags.html +share/doc/libportal-1/fonts.css +share/doc/libportal-1/fzy.js +share/doc/libportal-1/go-up-symbolic.png +share/doc/libportal-1/index.html +share/doc/libportal-1/index.json +share/doc/libportal-1/libportal-1.devhelp2 +share/doc/libportal-1/libportal.html +share/doc/libportal-1/libportal.svg +share/doc/libportal-1/main.js +share/doc/libportal-1/method.Parent.copy.html +share/doc/libportal-1/method.Parent.free.html +share/doc/libportal-1/method.Portal.access_camera.html +share/doc/libportal-1/method.Portal.access_camera_finish.html +share/doc/libportal-1/method.Portal.add_notification.html +share/doc/libportal-1/method.Portal.add_notification_finish.html +share/doc/libportal-1/method.Portal.compose_email.html +share/doc/libportal-1/method.Portal.compose_email_finish.html +share/doc/libportal-1/method.Portal.create_remote_desktop_session.html +share/doc/libportal-1/method.Portal.create_remote_desktop_session_finish.html +share/doc/libportal-1/method.Portal.create_screencast_session.html +share/doc/libportal-1/method.Portal.create_screencast_session_finish.html +share/doc/libportal-1/method.Portal.dynamic_launcher_get_desktop_entry.html +share/doc/libportal-1/method.Portal.dynamic_launcher_get_icon.html +share/doc/libportal-1/method.Portal.dynamic_launcher_install.html +share/doc/libportal-1/method.Portal.dynamic_launcher_launch.html +share/doc/libportal-1/method.Portal.dynamic_launcher_prepare_install.html +share/doc/libportal-1/method.Portal.dynamic_launcher_prepare_install_finish.html +share/doc/libportal-1/method.Portal.dynamic_launcher_request_install_token.html +share/doc/libportal-1/method.Portal.dynamic_launcher_uninstall.html +share/doc/libportal-1/method.Portal.get_user_information.html +share/doc/libportal-1/method.Portal.get_user_information_finish.html +share/doc/libportal-1/method.Portal.is_camera_present.html +share/doc/libportal-1/method.Portal.location_monitor_start.html +share/doc/libportal-1/method.Portal.location_monitor_start_finish.html +share/doc/libportal-1/method.Portal.location_monitor_stop.html +share/doc/libportal-1/method.Portal.open_directory.html +share/doc/libportal-1/method.Portal.open_directory_finish.html +share/doc/libportal-1/method.Portal.open_file.html +share/doc/libportal-1/method.Portal.open_file_finish.html +share/doc/libportal-1/method.Portal.open_pipewire_remote_for_camera.html +share/doc/libportal-1/method.Portal.open_uri.html +share/doc/libportal-1/method.Portal.open_uri_finish.html +share/doc/libportal-1/method.Portal.pick_color.html +share/doc/libportal-1/method.Portal.pick_color_finish.html +share/doc/libportal-1/method.Portal.prepare_print.html +share/doc/libportal-1/method.Portal.prepare_print_finish.html +share/doc/libportal-1/method.Portal.print_file.html +share/doc/libportal-1/method.Portal.print_file_finish.html +share/doc/libportal-1/method.Portal.remove_notification.html +share/doc/libportal-1/method.Portal.request_background.html +share/doc/libportal-1/method.Portal.request_background_finish.html +share/doc/libportal-1/method.Portal.save_file.html +share/doc/libportal-1/method.Portal.save_file_finish.html +share/doc/libportal-1/method.Portal.save_files.html +share/doc/libportal-1/method.Portal.save_files_finish.html +share/doc/libportal-1/method.Portal.session_inhibit.html +share/doc/libportal-1/method.Portal.session_inhibit_finish.html +share/doc/libportal-1/method.Portal.session_monitor_query_end_response.html +share/doc/libportal-1/method.Portal.session_monitor_start.html +share/doc/libportal-1/method.Portal.session_monitor_start_finish.html +share/doc/libportal-1/method.Portal.session_monitor_stop.html +share/doc/libportal-1/method.Portal.session_uninhibit.html +share/doc/libportal-1/method.Portal.set_wallpaper.html +share/doc/libportal-1/method.Portal.set_wallpaper_finish.html +share/doc/libportal-1/method.Portal.spawn.html +share/doc/libportal-1/method.Portal.spawn_finish.html +share/doc/libportal-1/method.Portal.spawn_signal.html +share/doc/libportal-1/method.Portal.take_screenshot.html +share/doc/libportal-1/method.Portal.take_screenshot_finish.html +share/doc/libportal-1/method.Portal.trash_file.html +share/doc/libportal-1/method.Portal.trash_file_finish.html +share/doc/libportal-1/method.Portal.update_install.html +share/doc/libportal-1/method.Portal.update_install_finish.html +share/doc/libportal-1/method.Portal.update_monitor_start.html +share/doc/libportal-1/method.Portal.update_monitor_start_finish.html +share/doc/libportal-1/method.Portal.update_monitor_stop.html +share/doc/libportal-1/method.Session.close.html +share/doc/libportal-1/method.Session.get_devices.html +share/doc/libportal-1/method.Session.get_persist_mode.html +share/doc/libportal-1/method.Session.get_restore_token.html +share/doc/libportal-1/method.Session.get_session_state.html +share/doc/libportal-1/method.Session.get_session_type.html +share/doc/libportal-1/method.Session.get_streams.html +share/doc/libportal-1/method.Session.keyboard_key.html +share/doc/libportal-1/method.Session.open_pipewire_remote.html +share/doc/libportal-1/method.Session.pointer_axis.html +share/doc/libportal-1/method.Session.pointer_axis_discrete.html +share/doc/libportal-1/method.Session.pointer_button.html +share/doc/libportal-1/method.Session.pointer_motion.html +share/doc/libportal-1/method.Session.pointer_position.html +share/doc/libportal-1/method.Session.start.html +share/doc/libportal-1/method.Session.start_finish.html +share/doc/libportal-1/method.Session.touch_down.html +share/doc/libportal-1/method.Session.touch_position.html +share/doc/libportal-1/method.Session.touch_up.html +share/doc/libportal-1/opensearch.xml +share/doc/libportal-1/search.js +share/doc/libportal-1/signal.Portal.location-updated.html +share/doc/libportal-1/signal.Portal.notification-action-invoked.html +share/doc/libportal-1/signal.Portal.session-state-changed.html +share/doc/libportal-1/signal.Portal.spawn-exited.html +share/doc/libportal-1/signal.Portal.update-available.html +share/doc/libportal-1/signal.Portal.update-progress.html +share/doc/libportal-1/signal.Session.closed.html +share/doc/libportal-1/solarized-dark.css +share/doc/libportal-1/solarized-light.css +share/doc/libportal-1/struct.Parent.html +share/doc/libportal-1/style.css +share/doc/libportal-1/type_func.Portal.running_under_flatpak.html +share/doc/libportal-1/type_func.Portal.running_under_sandbox.html +share/doc/libportal-1/type_func.Portal.running_under_snap.html +share/doc/libportal-1/urlmap.js +share/gir-1.0/ +share/gir-1.0/Xdp-1.0.gir +share/vala/ +share/vala/vapi/ +share/vala/vapi/libportal.deps +share/vala/vapi/libportal.vapi diff --git a/sysutils/libportal/pkg/PLIST-qt5 b/sysutils/libportal/pkg/PLIST-qt5 new file mode 100644 index 00000000000..86509413314 --- /dev/null +++ b/sysutils/libportal/pkg/PLIST-qt5 @@ -0,0 +1,4 @@ +include/libportal-qt5/ +include/libportal-qt5/portal-qt5.h +@lib lib/libportal-qt5.so.${LIBportal-qt5_VERSION} +lib/pkgconfig/libportal-qt5.pc