Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Oct 2021 15:14:31 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: bd5b78f82346 - main - x11/gxkb: update the port to version 0.9.3
Message-ID:  <202110241514.19OFEVVY087639@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

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

commit bd5b78f82346867fae34286947df2d37aa0493a7
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-10-24 15:13:28 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-10-24 15:13:28 +0000

    x11/gxkb: update the port to version 0.9.3
    
    Now comes with Esperanto flag!
    
    Source code had been reformatted, adjust GTK2 patch accordingly and
    regenerate with ``make makepatch'' to make future diffs less noisy.
    
    Reported by:    portscout
---
 x11/gxkb/Makefile               |   2 +-
 x11/gxkb/distinfo               |   6 +-
 x11/gxkb/files/extra-patch-gtk2 | 158 +++++++++++++++++++---------------------
 x11/gxkb/pkg-plist              |   1 +
 4 files changed, 81 insertions(+), 86 deletions(-)

diff --git a/x11/gxkb/Makefile b/x11/gxkb/Makefile
index 1d3e4a12fc3c..ff7cdf7fb70e 100644
--- a/x11/gxkb/Makefile
+++ b/x11/gxkb/Makefile
@@ -1,7 +1,7 @@
 # Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
 
 PORTNAME=	gxkb
-PORTVERSION=	0.9.2
+PORTVERSION=	0.9.3
 CATEGORIES=	x11
 MASTER_SITES=	SF/${PORTNAME}
 
diff --git a/x11/gxkb/distinfo b/x11/gxkb/distinfo
index 1138345ccf2b..37feb89b8569 100644
--- a/x11/gxkb/distinfo
+++ b/x11/gxkb/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1620127745
-SHA256 (gxkb-0.9.2.tar.gz) = 58b02052ba92dc3b5527108d641c1019464e58471f5cf6d2bc9d4dd4fb140eaf
-SIZE (gxkb-0.9.2.tar.gz) = 176074
+TIMESTAMP = 1635019903
+SHA256 (gxkb-0.9.3.tar.gz) = ef0bbea5f40051e57ca35f304a91ff296044029913cd4d07470fd26b5204d831
+SIZE (gxkb-0.9.3.tar.gz) = 174152
diff --git a/x11/gxkb/files/extra-patch-gtk2 b/x11/gxkb/files/extra-patch-gtk2
index 1b60e2ae15d5..590c5fd667d3 100644
--- a/x11/gxkb/files/extra-patch-gtk2
+++ b/x11/gxkb/files/extra-patch-gtk2
@@ -1,4 +1,4 @@
---- configure.ac.orig	2021-05-04 11:24:32 UTC
+--- configure.ac.orig	2021-10-23 20:04:23 UTC
 +++ configure.ac
 @@ -7,9 +7,9 @@ AC_PROG_RANLIB
  AM_PROG_CC_C_O
@@ -9,97 +9,91 @@
  PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.16.0])
 -PKG_CHECK_MODULES(LIBWNCK, [libwnck-3.0])
 +PKG_CHECK_MODULES(LIBWNCK, [libwnck-1.0 >= 2.22.0])
- PKG_CHECK_MODULES(LIBXKLAVIER, [libxklavier >= 3.0])
+ PKG_CHECK_MODULES(LIBXKLAVIER, [libxklavier >= 5.0])
  AC_SUBST(GTK_CFLAGS)
  AC_SUBST(GTK_LIBS)
---- src/statusicon.c.orig	2021-04-18 16:21:09 UTC
+--- src/statusicon.c.orig	2021-10-19 19:39:16 UTC
 +++ src/statusicon.c
-@@ -74,7 +74,9 @@ gtk_status_icon_clicked( GtkStatusIcon *status_icon, g
+@@ -65,7 +65,9 @@ void gtk_status_icon_clicked(GtkStatusIcon *status_ico
+     return;
  
-     if( xkb_config_get_group_count() > 2 )
-     {
--        gtk_menu_popup_at_pointer( GTK_MENU( lb_mouse_popup ), NULL );
-+        gtk_menu_popup( GTK_MENU( lb_mouse_popup ), NULL, NULL,
-+                        gtk_status_icon_position_menu, status_icon,
-+                        0, gtk_get_current_event_time() );
-     }
-     else
-     {
-@@ -114,7 +116,9 @@ gtk_status_icon_popup_menu( GtkStatusIcon *status_icon
-     if( status_icon == NULL )
-         return;
+   if (xkb_config_get_group_count() > 2) {
+-    gtk_menu_popup_at_pointer(GTK_MENU(lb_mouse_popup), NULL);
++    gtk_menu_popup(GTK_MENU(lb_mouse_popup), NULL, NULL,
++      gtk_status_icon_position_menu, status_icon,
++      0, gtk_get_current_event_time());
+   } else {
+     xkb_config_next_group();
+   }
+@@ -97,7 +99,9 @@ void gtk_status_icon_popup_menu(GtkStatusIcon *status_
+   if (status_icon == NULL)
+     return;
  
--    gtk_menu_popup_at_pointer( GTK_MENU( rb_mouse_popup ), NULL );
-+    gtk_menu_popup( GTK_MENU( rb_mouse_popup ),
-+                    NULL, NULL, gtk_status_icon_position_menu, status_icon, button,
-+                    activate_time );
+-  gtk_menu_popup_at_pointer(GTK_MENU(rb_mouse_popup), NULL);
++  gtk_menu_popup(GTK_MENU(rb_mouse_popup),
++    NULL, NULL, gtk_status_icon_position_menu, status_icon, button,
++    activate_time);
  }
  
- void
-@@ -150,7 +154,7 @@ statusicon_update_current_image( void )
-         }
- 
-         gtk_status_icon_set_from_pixbuf( trayicon, pixmap );
--        gtk_status_icon_set_tooltip_text( trayicon, g_ascii_strup( group_name, -1 ) );
-+        gtk_status_icon_set_tooltip( trayicon, g_ascii_strup( group_name, -1 ) );
-     }
-     else if( icon_type == APPINDICATOR )
-     {
-@@ -218,7 +222,7 @@ statusicon_update_menu( void )
-     if( icon_type == APPINDICATOR )
-     {
-         // Separator
--        mi = gtk_separator_menu_item_new();
-+        mi = gtk_menu_item_new();
-         gtk_widget_show( mi );
-         gtk_menu_shell_append( GTK_MENU_SHELL( lb_mouse_popup ), mi );
-         gtk_widget_set_sensitive( mi, FALSE );
-@@ -229,21 +233,20 @@ statusicon_update_menu( void )
-         rb_mouse_popup = gtk_menu_new();
+ void statusicon_set_group(GtkWidget *item, gpointer data) {
+@@ -127,7 +131,7 @@ void statusicon_update_current_image(void) {
      }
  
--    mi = gtk_image_menu_item_new_from_stock( "gtk-about", NULL );
-+    mi = gtk_image_menu_item_new_from_stock( GTK_STOCK_ABOUT, NULL );
-     g_signal_connect( G_OBJECT( mi ), "activate", (GCallback)xkb_about, NULL );
-     gtk_menu_shell_append( GTK_MENU_SHELL( rb_mouse_popup ), mi );
-     gtk_widget_show( mi );
+     gtk_status_icon_set_from_pixbuf(trayicon, pixmap);
+-    gtk_status_icon_set_tooltip_text(
++    gtk_status_icon_set_tooltip(
+         trayicon, g_strdup(gettext(xkb_config_get_pretty_layout_name(-1))));
+   } else if (icon_type == APPINDICATOR) {
+ #ifdef HAVE_APPINDICATOR
+@@ -184,7 +188,7 @@ void statusicon_update_menu(void) {
  
-     if( icon_type == SYSTRAY )
-     {
--        // Separator
--        mi = gtk_separator_menu_item_new();
-+        mi = gtk_menu_item_new();
-         gtk_widget_show( mi );
-         gtk_menu_shell_append( GTK_MENU_SHELL( rb_mouse_popup ), mi );
-         gtk_widget_set_sensitive( mi, FALSE );
-     }
+   if (icon_type == APPINDICATOR) {
+     // Separator
+-    mi = gtk_separator_menu_item_new();
++    mi = gtk_menu_item_new();
+     gtk_widget_show(mi);
+     gtk_menu_shell_append(GTK_MENU_SHELL(lb_mouse_popup), mi);
+     gtk_widget_set_sensitive(mi, FALSE);
+@@ -193,20 +197,20 @@ void statusicon_update_menu(void) {
+     rb_mouse_popup = gtk_menu_new();
+   }
+ 
+-  mi = gtk_image_menu_item_new_from_stock("gtk-about", NULL);
++  mi = gtk_image_menu_item_new_from_stock(GTK_STOCK_ABOUT, NULL);
+   g_signal_connect(G_OBJECT(mi), "activate", (GCallback)xkb_about, NULL);
+   gtk_menu_shell_append(GTK_MENU_SHELL(rb_mouse_popup), mi);
+   gtk_widget_show(mi);
+ 
+   if (icon_type == SYSTRAY) {
+     // Separator
+-    mi = gtk_separator_menu_item_new();
++    mi = gtk_menu_item_new();
+     gtk_widget_show(mi);
+     gtk_menu_shell_append(GTK_MENU_SHELL(rb_mouse_popup), mi);
+     gtk_widget_set_sensitive(mi, FALSE);
+   }
  
--    mi = gtk_image_menu_item_new_from_stock( "gtk-quit", NULL );
-+    mi = gtk_image_menu_item_new_from_stock( GTK_STOCK_QUIT, NULL );
-     g_signal_connect( G_OBJECT( mi ), "activate", (GCallback)xkb_main_quit, NULL );
-     gtk_menu_shell_append( GTK_MENU_SHELL( rb_mouse_popup ), mi );
-     gtk_widget_show( mi );
---- src/xkb-callbacks.c.orig	2020-11-05 20:09:34 UTC
+-  mi = gtk_image_menu_item_new_from_stock("gtk-quit", NULL);
++  mi = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
+   g_signal_connect(G_OBJECT(mi), "activate", (GCallback)xkb_main_quit, NULL);
+   gtk_menu_shell_append(GTK_MENU_SHELL(rb_mouse_popup), mi);
+   gtk_widget_show(mi);
+--- src/xkb-callbacks.c.orig	2021-10-19 18:47:24 UTC
 +++ src/xkb-callbacks.c
-@@ -74,18 +74,12 @@ xkb_about( void )
-         GtkWidget* about_dialog = gtk_about_dialog_new();
-         gtk_window_set_icon(
-             (GtkWindow*)about_dialog,
--            gtk_icon_theme_load_icon(
--                gtk_icon_theme_get_default(),
--                "gtk-about",
--                GTK_ICON_SIZE_DIALOG,
--                0,
--                NULL
--            )
-+            gtk_widget_render_icon(about_dialog, GTK_STOCK_ABOUT, GTK_ICON_SIZE_DIALOG, NULL)
-         );
+@@ -64,12 +64,12 @@ void xkb_about(void) {
+     GtkWidget *about_dialog = gtk_about_dialog_new();
+     gtk_window_set_icon(
+         (GtkWindow *)about_dialog,
+-        gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), "gtk-about",
+-                                 GTK_ICON_SIZE_DIALOG, 0, NULL));
++        gtk_widget_render_icon(about_dialog, GTK_STOCK_ABOUT,
++                               GTK_ICON_SIZE_DIALOG, NULL));
  
--        const gchar** authors = (const gchar**) g_strsplit( AUTHORS, "\n", -1 );
-+        const gchar* authors[] = { AUTHORS, NULL };
-         gtk_about_dialog_set_authors( (GtkAboutDialog*)about_dialog, authors );
--        gtk_about_dialog_set_program_name( (GtkAboutDialog*)about_dialog, PACKAGE );
-+        gtk_about_dialog_set_name( (GtkAboutDialog*)about_dialog, PACKAGE );
-         gtk_about_dialog_set_version( (GtkAboutDialog*)about_dialog, VERSION );
-         gtk_about_dialog_set_comments( (GtkAboutDialog*)about_dialog, DESCRIPTION );
-         gtk_about_dialog_set_website( (GtkAboutDialog*)about_dialog, PACKAGE_URL );
+-    const gchar **authors = (const gchar **)g_strsplit(AUTHORS, "\n", -1);
++    const gchar *authors[] = { AUTHORS, NULL };
+     gtk_about_dialog_set_authors((GtkAboutDialog *)about_dialog, authors);
+-    gtk_about_dialog_set_program_name((GtkAboutDialog *)about_dialog, PACKAGE);
++    gtk_about_dialog_set_name((GtkAboutDialog *)about_dialog, PACKAGE);
+     gtk_about_dialog_set_version((GtkAboutDialog *)about_dialog, VERSION);
+     gtk_about_dialog_set_comments((GtkAboutDialog *)about_dialog, DESCRIPTION);
+     gtk_about_dialog_set_website((GtkAboutDialog *)about_dialog, PACKAGE_URL);
diff --git a/x11/gxkb/pkg-plist b/x11/gxkb/pkg-plist
index 985ee92251a0..d5bd853c43e2 100644
--- a/x11/gxkb/pkg-plist
+++ b/x11/gxkb/pkg-plist
@@ -8,6 +8,7 @@ share/applications/gxkb.desktop
 %%DATADIR%%/flags/cz_qwerty.png
 %%DATADIR%%/flags/de.png
 %%DATADIR%%/flags/ee.png
+%%DATADIR%%/flags/epo.png
 %%DATADIR%%/flags/es.png
 %%DATADIR%%/flags/fi.png
 %%DATADIR%%/flags/fr.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110241514.19OFEVVY087639>