git: 5c9c539181c0 - main - multimedia/elementary-videos: update to 2.8.3

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Wed, 01 Jun 2022 16:06:18 UTC
The branch main has been updated by fernape:

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

commit 5c9c539181c011a49b2737bca085355d80e30f63
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2022-05-31 05:21:36 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2022-06-01 16:03:53 +0000

    multimedia/elementary-videos: update to 2.8.3
    
    ChangeLog: https://github.com/elementary/videos/releases/tag/2.8.3
    
     * Fix a crash with certain video codecs
     * Update to 6.1 Flatpak runtime
     * Translation updates
    
    PR:     264279
    Reported by:    duchateau.olivier@gmail.com
    Approved by:    miguel@gocobachi.dev (maintainer)
---
 multimedia/elementary-videos/Makefile                    | 12 +++++-------
 multimedia/elementary-videos/distinfo                    |  8 +++-----
 multimedia/elementary-videos/files/patch-meson.build     |  9 ---------
 multimedia/elementary-videos/files/patch-src_Window.vala | 16 ++++++++++++++++
 4 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/multimedia/elementary-videos/Makefile b/multimedia/elementary-videos/Makefile
index f11508e7977f..910a8e1df859 100644
--- a/multimedia/elementary-videos/Makefile
+++ b/multimedia/elementary-videos/Makefile
@@ -1,11 +1,7 @@
 PORTNAME=	elementary-videos
-DISTVERSION=	2.7.3
-PORTREVISION=	1
+DISTVERSION=	2.8.3
 CATEGORIES=	multimedia
 
-PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
-PATCHFILES+=	f6b94db27035.patch:-p1 # https://github.com/elementary/videos/pull/288
-
 MAINTAINER=	miguel@gocobachi.dev
 COMMENT=	Elementary OS video player
 
@@ -17,7 +13,8 @@ LIB_DEPENDS=	libclutter-1.0.so:graphics/clutter \
 		libclutter-gst-3.0.so:multimedia/clutter-gst3 \
 		libclutter-gtk-1.0.so:graphics/clutter-gtk3 \
 		libgee-0.8.so:devel/libgee \
-		libgranite.so:x11-toolkits/granite
+		libgranite.so:x11-toolkits/granite \
+		libhandy-1.so:x11-toolkits/libhandy
 
 USES=		desktop-file-utils gettext gnome gstreamer meson pkgconfig xorg
 USE_GITHUB=	yes
@@ -25,7 +22,8 @@ GH_ACCOUNT=	elementary
 GH_PROJECT=	videos
 USE_GNOME=	cairo gdkpixbuf2 gtk30
 GLIB_SCHEMAS=	io.elementary.videos.gschema.xml
-USE_GSTREAMER=	core
+USE_GSTREAMER=	core faad libav ogg opus plugins theora vorbis x264 x \
+		ximagesrc
 USE_XORG=	x11
 
 .include <bsd.port.mk>
diff --git a/multimedia/elementary-videos/distinfo b/multimedia/elementary-videos/distinfo
index 81364f07f136..402bfb524c4e 100644
--- a/multimedia/elementary-videos/distinfo
+++ b/multimedia/elementary-videos/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1628899382
-SHA256 (elementary-videos-2.7.3_GH0.tar.gz) = dc1877489c43a3aa9ba927d409afbc0ae62246c01019a6cfe07572b7c44c8f80
-SIZE (elementary-videos-2.7.3_GH0.tar.gz) = 2842420
-SHA256 (f6b94db27035.patch) = 7f647ec405c83e3cc69ae7caa1af162d73c024f25636b74b82f3685d13c2b4c4
-SIZE (f6b94db27035.patch) = 772
+TIMESTAMP = 1653641942
+SHA256 (elementary-videos-2.8.3_GH0.tar.gz) = 09c5db6433e4f6d570950609ff1d95a86df2179e7a65677a1e14c0549bbceba6
+SIZE (elementary-videos-2.8.3_GH0.tar.gz) = 2851654
diff --git a/multimedia/elementary-videos/files/patch-meson.build b/multimedia/elementary-videos/files/patch-meson.build
deleted file mode 100644
index f4d80f68a4c5..000000000000
--- a/multimedia/elementary-videos/files/patch-meson.build
+++ /dev/null
@@ -1,9 +0,0 @@
---- meson.build.orig	2020-06-27 11:47:08 UTC
-+++ meson.build
-@@ -10,6 +10,5 @@ add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(
- 
- 
- subdir('src')
--meson.add_install_script('meson/post_install.py')
- subdir('data')
- subdir('po')
diff --git a/multimedia/elementary-videos/files/patch-src_Window.vala b/multimedia/elementary-videos/files/patch-src_Window.vala
new file mode 100644
index 000000000000..a555dd5e50e4
--- /dev/null
+++ b/multimedia/elementary-videos/files/patch-src_Window.vala
@@ -0,0 +1,16 @@
+--- src/Window.vala.orig	2022-01-10 17:54:11 UTC
++++ src/Window.vala
+@@ -67,9 +67,11 @@ public class Audience.Window : Gtk.ApplicationWindow {
+         add_action_entries (ACTION_ENTRIES, this);
+ 
+         var application_instance = (Gtk.Application) GLib.Application.get_default ();
+-        foreach (var action in action_accelerators.get_keys ()) {
++        var iter = action_accelerators.map_iterator ();
++        while (iter.next ()) {
+             application_instance.set_accels_for_action (
+-                ACTION_PREFIX + action, action_accelerators[action].to_array ()
++                ACTION_PREFIX + iter.get_key (),
++                { iter.get_value () }
+             );
+         }
+