summaryrefslogtreecommitdiff
path: root/media-gfx/gnome-font-viewer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-19 05:07:58 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-19 05:07:58 +0100
commitca517256fa4afe5b579e64e267ebbc7beb8a888f (patch)
treeb2e8529e997fc6e3e936f205f8b6b5ad4873b594 /media-gfx/gnome-font-viewer
parent4eeee822487f780361d7d47b4c1b999f93e15b27 (diff)
gentoo auto-resync : 19:09:2023 - 05:07:58
Diffstat (limited to 'media-gfx/gnome-font-viewer')
-rw-r--r--media-gfx/gnome-font-viewer/Manifest3
-rw-r--r--media-gfx/gnome-font-viewer/files/45.0-window-Fix-function-callback-definition.patch42
-rw-r--r--media-gfx/gnome-font-viewer/gnome-font-viewer-45.0.ebuild34
3 files changed, 79 insertions, 0 deletions
diff --git a/media-gfx/gnome-font-viewer/Manifest b/media-gfx/gnome-font-viewer/Manifest
index acd33fa25f8d..36ac16655ac7 100644
--- a/media-gfx/gnome-font-viewer/Manifest
+++ b/media-gfx/gnome-font-viewer/Manifest
@@ -1,5 +1,8 @@
+AUX 45.0-window-Fix-function-callback-definition.patch 1912 BLAKE2B 634b4d0c2653dcaa1d02a44844de949337021076499a4e8d73977d4c9bbf2a537ce48fe6318b25de08cba1930ea0e06481b20c4719c0d4a3addb8537999e4237 SHA512 cca22823a35aae3f1553dfd48d22949ce7973be881a9e99a5367fe03e9163f31b4972b4dccd3c7a5776579c4888a2b0f8542049a6780b1d35d769836b7de1770
DIST gnome-font-viewer-44.0.tar.xz 299644 BLAKE2B 9eceda601332601a3918331c0b4dae1f588ec88d9c28323694291f22e9add115ccfd70ef8c2d3b1a410bcf7c7443810abdb58a156927c235fb895412dea54213 SHA512 f2da77fadbd76eaaf661cb518043ebad6f964a90f1cede5b58160a3aa08a0fe42a9972bc4871725dc7ae16eb4199329ef2ea08734b8017306e61341e51c37bea
+DIST gnome-font-viewer-45.0.tar.xz 300420 BLAKE2B 3cc71c056a1254447a9b0c5e838a8950e0414293b9788373b1de90657e364b55784fcef7749abd4e75e29cc6246b081baab66135276744020695ef1e8952a03f SHA512 94289be78831dbc9be8d73348fd423379ebe691b08cf2547acd2648e0e7b1dafcd6c63ffa2c9ec033786b7b65912187c782bb279cc0fb6227d6ee74c1541701e
DIST gnome-font-viewer-45.alpha.tar.xz 300188 BLAKE2B dde514abf5fdca8e95bf41ec6dbf2d13e038dbcd242de87a04afc85f43a36713566c60623c345765e62f31b2e911fe9631390c5ffc9457ccd4e333ccd837b149 SHA512 f906086f52989fc26775fa025618f01f3653d4360f3c59f270cd40747bef1164f31688772712e49fcbf280cc3776cdbac6e5833bb080a6c855286caf812e6e78
EBUILD gnome-font-viewer-44.0.ebuild 729 BLAKE2B b9a94c67d42af53e74383f9f3f91dc32103db033b2e49ecbe4932bee63259c4dcd46f04dba85fa56f9b387e381960e0ba3921641f6a7c03f5d2645eae99e7862 SHA512 54aa64008e8013fbe221bb1782c5650fd9478005c5951b4a867c881d514ea08e8273befe619ee4b383e5239bc457d77b9dbcdcd5936a73b9a9f4a4640e328bb8
+EBUILD gnome-font-viewer-45.0.ebuild 809 BLAKE2B 081af7fed6740a1b9f7d21773db637b4fc108a774be4a836ad86f5482ca2fdb86d33db8e69724c3f15a9a90983b2baf4aa35a6795331be07224680ba622ee8d6 SHA512 514e270011a697c83abb5aa1ff35fe824c54ad1fa865975bf4de392a79a3ef40ff8754be199c27e9ae8a60fe77c0f2966492030e9f1ccd156266b66457404ac3
EBUILD gnome-font-viewer-45_alpha.ebuild 729 BLAKE2B 57b9ad374dcaefc3ec700126171ee63d3f61460737bc5f7f67bf8bb21dfade1b1050427efb5bdef76d2c97d941e3e5661b765d2cd2700133ba530ed12f8362de SHA512 af8d1aa2f934bee5d3eedcfc3e99016f3c78a86b1217abd079b80f8515702be639d72c44027f40a345257048e79aab29a3764ec54a6a5214e7b34b3530eda2c5
MISC metadata.xml 358 BLAKE2B 68c01b7096e0cddca8924d5f631ff0f3b94871244392aece19d0ca59f9bfda7c66199325fd31646c425af984118f728e54fa1ad3fcdc05149e146a5bb7de0667 SHA512 8870277e5cfae6a6c10e66359d45ef4ebde8027cf90f356096e7f78452a525fcb1e3d06f76769a1b8c875498faa79c75432e766edd495398f08d858c4d18bccf
diff --git a/media-gfx/gnome-font-viewer/files/45.0-window-Fix-function-callback-definition.patch b/media-gfx/gnome-font-viewer/files/45.0-window-Fix-function-callback-definition.patch
new file mode 100644
index 000000000000..a7a27dbb361c
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/files/45.0-window-Fix-function-callback-definition.patch
@@ -0,0 +1,42 @@
+https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/merge_requests/54
+
+From 359a3c2ea1614195c647c2c57e940805986e7ab3 Mon Sep 17 00:00:00 2001
+From: Matt Turner <mattst88@gmail.com>
+Date: Sat, 8 Jul 2023 00:01:07 -0400
+Subject: [PATCH] window: Fix function callback definition
+
+Without this, the build fails with clang with
+CFLAGS=-Werror=incompatible-function-pointer-types
+
+```
+../src/font-view-window.c:864:77: error: incompatible function pointer types passing 'void (FontViewWindow *)' (aka 'void (struct _FontViewWindow *)') to parameter of type 'GtkWidgetActionActivateFunc' (aka 'void (*)(struct _GtkWidget *, const char *, struct _GVariant *)') [-Wincompatible-function-pointer-types]
+ gtk_widget_class_install_action (widget_class, "win.toggle-search", NULL, action_toggle_search_cb);
+ ^~~~~~~~~~~~~~~~~~~~~~~
+/usr/include/gtk-4.0/gtk/gtkwidget.h:956:87: note: passing argument to parameter 'activate' here
+ GtkWidgetActionActivateFunc activate);
+ ^
+```
+---
+ src/font-view-window.c | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/font-view-window.c b/src/font-view-window.c
+index 639ac33..24461f7 100644
+--- a/src/font-view-window.c
++++ b/src/font-view-window.c
+@@ -758,8 +758,11 @@ font_view_window_show_overview (FontViewWindow *self)
+ }
+
+ static void
+-action_toggle_search_cb (FontViewWindow *self)
++action_toggle_search_cb (GtkWidget *widget,
++ const char *action_name,
++ GVariant *parameter)
+ {
++ FontViewWindow *self = FONT_VIEW_WINDOW (widget);
+
+ gtk_toggle_button_set_active (self->search_button,
+ !gtk_toggle_button_get_active (self->search_button));
+--
+2.41.0
+
diff --git a/media-gfx/gnome-font-viewer/gnome-font-viewer-45.0.ebuild b/media-gfx/gnome-font-viewer/gnome-font-viewer-45.0.ebuild
new file mode 100644
index 000000000000..a47295aa9d10
--- /dev/null
+++ b/media-gfx/gnome-font-viewer/gnome-font-viewer-45.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit gnome.org meson xdg
+
+DESCRIPTION="Font viewer utility for GNOME"
+HOMEPAGE="https://gitlab.gnome.org/GNOME/gnome-font-viewer"
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+
+DEPEND="
+ >=dev-libs/glib-2.56.0:2
+ >=gui-libs/gtk-4.5.0:4
+ >=gui-libs/libadwaita-1.4_alpha:1
+ >=media-libs/harfbuzz-0.9.9:=
+ media-libs/fontconfig:1.0
+ media-libs/freetype:2
+ gnome-base/gnome-desktop:4=
+ dev-libs/fribidi
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+ dev-libs/appstream-glib
+ dev-libs/libxml2:2
+ >=sys-devel/gettext-0.19.8
+ virtual/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PV}-window-Fix-function-callback-definition.patch
+)