diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2018-12-22 08:26:21 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2018-12-22 08:26:21 +0000 |
commit | ae03fd5514662f07cd6494c6916276c709f51f91 (patch) | |
tree | bbe7875e649d97e858486d50e3719717a0f81aa8 /x11/xfce4-taskmanager | |
parent | 902e01f269368abb57e96cf214fea1c735a55411 (diff) | |
download | ports-ae03fd5514662f07cd6494c6916276c709f51f91.tar.gz ports-ae03fd5514662f07cd6494c6916276c709f51f91.zip |
Notes
Diffstat (limited to 'x11/xfce4-taskmanager')
-rw-r--r-- | x11/xfce4-taskmanager/Makefile | 18 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/distinfo | 6 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/patch-af078d4 | 74 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/patch-b896848 | 84 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/files/patch-src_exec-tool-button.c (renamed from x11/xfce4-taskmanager/files/patch-src__exec-tool-button.c) | 2 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/pkg-descr | 2 | ||||
-rw-r--r-- | x11/xfce4-taskmanager/pkg-plist | 2 |
7 files changed, 13 insertions, 175 deletions
diff --git a/x11/xfce4-taskmanager/Makefile b/x11/xfce4-taskmanager/Makefile index 4d2fff228837..cf3d2f7b8957 100644 --- a/x11/xfce4-taskmanager/Makefile +++ b/x11/xfce4-taskmanager/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= xfce4-taskmanager -PORTVERSION= 1.2.1 -PORTREVISION= 1 +PORTVERSION= 1.2.2 CATEGORIES= x11 xfce MASTER_SITES= XFCE/src/apps/${PORTNAME}/${PORTVERSION:R} DIST_SUBDIR= xfce4 @@ -17,22 +16,19 @@ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 -GNU_CONFIGURE= yes -USES= gettext-tools gmake localbase pkgconfig tar:bzip2 -USE_GNOME= glib20 cairo gdkpixbuf2 intltool libwnck +USES= gettext-tools gmake gnome localbase pkgconfig tar:bzip2 +USE_GNOME= gtk30 glib20 cairo gdkpixbuf2 intltool libwnck USE_XORG= ice sm x11 xmu xt + +GNU_CONFIGURE= yes INSTALLS_ICONS= yes CONFIGURE_ARGS+= --disable-silent-rules --disable-gksu \ - --disable-wnck3 --enable-wnck + --disable-wnck3 --enable-wnck --disable-gtk2 -OPTIONS_DEFINE= GTK3 NLS +OPTIONS_DEFINE= NLS OPTIONS_SUB= yes -GTK3_CONFIGURE_ENABLE= gtk3 -GTK3_USE= GNOME=gtk30 -GTK3_USE_OFF= GNOME=gtk20 - NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext-runtime diff --git a/x11/xfce4-taskmanager/distinfo b/x11/xfce4-taskmanager/distinfo index 9f92767ab868..596440487dbb 100644 --- a/x11/xfce4-taskmanager/distinfo +++ b/x11/xfce4-taskmanager/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1528046210 -SHA256 (xfce4/xfce4-taskmanager-1.2.1.tar.bz2) = 22e523e2ee231713f40a48890d8cbae99320ac1173f7c68502f490318e1e0409 -SIZE (xfce4/xfce4-taskmanager-1.2.1.tar.bz2) = 394704 +TIMESTAMP = 1545165085 +SHA256 (xfce4/xfce4-taskmanager-1.2.2.tar.bz2) = e49a61c819a4fd9286a65ae61605984f327c8b26cf939289f644e656bfa20e13 +SIZE (xfce4/xfce4-taskmanager-1.2.2.tar.bz2) = 395320 diff --git a/x11/xfce4-taskmanager/files/patch-af078d4 b/x11/xfce4-taskmanager/files/patch-af078d4 deleted file mode 100644 index 3fd2e3ebb348..000000000000 --- a/x11/xfce4-taskmanager/files/patch-af078d4 +++ /dev/null @@ -1,74 +0,0 @@ -From af078d406a43243388e0a61d647c3a6b7ada60ed Mon Sep 17 00:00:00 2001 -From: rim <rozhuk.im@gmail.com> -Date: Thu, 21 Jun 2018 12:10:15 +0300 -Subject: Improve app search on close (bug 14466) - ---- - src/app-manager.c | 25 ++++++++++++++++++++++++- - 1 file changed, 24 insertions(+), 1 deletion(-) - -diff --git a/src/app-manager.c b/src/app-manager.c -index 5092e00..b2bdb0c 100644 ---- src/app-manager.c -+++ src/app-manager.c -@@ -44,6 +44,7 @@ static gint app_pid_compare_fn (gconstpointer a, gconstpointer b); - static void apps_add_application (GArray *apps, WnckApplication *application, GPid pid); - static void apps_remove_application (GArray *apps, WnckApplication *application); - static App * apps_lookup_pid (GArray *apps, GPid pid); -+static App * apps_lookup_app (GArray *apps, WnckApplication *application); - static void application_opened (WnckScreen *screen, WnckApplication *application, XtmAppManager *manager); - static void application_closed (WnckScreen *screen, WnckApplication *application, XtmAppManager *manager); - -@@ -97,12 +98,17 @@ static GPid - app_get_pid(WnckApplication *application) - { - GPid pid; -+ GList *windows; -+ - if (NULL == application) - return (0); - pid = wnck_application_get_pid (application); - if (pid != 0) - return (pid); -- return (wnck_window_get_pid (WNCK_WINDOW (wnck_application_get_windows (application)->data))); -+ windows = wnck_application_get_windows (application); -+ if (NULL != windows && NULL != windows->data) -+ return (wnck_window_get_pid (WNCK_WINDOW (windows->data))); -+ return (0); - } - - static gint -@@ -134,6 +140,8 @@ apps_remove_application (GArray *apps, WnckApplication *application) - { - App *app = apps_lookup_pid(apps, app_get_pid (application)); - -+ if (app == NULL) -+ app = apps_lookup_app(apps, application); - if (app == NULL) - return; - g_object_unref (app->icon); -@@ -150,6 +158,21 @@ apps_lookup_pid (GArray *apps, GPid pid) - return (bsearch(&tapp, apps->data, apps->len, sizeof(App), app_pid_compare_fn)); - } - -+static App * -+apps_lookup_app (GArray *apps, WnckApplication *application) -+{ -+ App *tapp; -+ guint i; -+ -+ for (i = 0; i < apps->len; i++) { -+ tapp = &g_array_index (apps, App, i); -+ if (tapp->application == application) -+ return (tapp); -+ } -+ -+ return (NULL); -+} -+ - static void - application_opened (WnckScreen *screen __unused, WnckApplication *application, XtmAppManager *manager) - { --- -cgit v1.2.1 - diff --git a/x11/xfce4-taskmanager/files/patch-b896848 b/x11/xfce4-taskmanager/files/patch-b896848 deleted file mode 100644 index 91b37302a75a..000000000000 --- a/x11/xfce4-taskmanager/files/patch-b896848 +++ /dev/null @@ -1,84 +0,0 @@ -From b89684865d88bbb8399f70387cae9e8ae17d64d9 Mon Sep 17 00:00:00 2001 -From: rim <rozhuk.im@gmail.com> -Date: Sun, 29 Jul 2018 09:22:48 +0300 -Subject: Better utf-8 normalization (bug 14172) - ---- - src/task-manager.c | 47 ++++++++++++++++++++++++++++++++++++++++------- - 1 file changed, 40 insertions(+), 7 deletions(-) - -diff --git a/src/task-manager.c b/src/task-manager.c -index 93f9122..8188de6 100644 ---- src/task-manager.c -+++ src/task-manager.c -@@ -22,6 +22,7 @@ - #include <glib-object.h> - #include <glib/gi18n.h> - #include <gtk/gtk.h> -+#include <gmodule.h> - - #include "task-manager.h" - #ifdef HAVE_WNCK -@@ -125,12 +126,44 @@ setting_changed (GObject *object, GParamSpec *pspec __unused, XtmTaskManager *ma - static gchar * - pretty_cmdline (gchar *cmdline, gchar *comm) - { -- /* Use the printable range of 0x20-0x7E */ -- const gchar *valid_chars = " !\"#$%&'()*+,-./0123456789:;<=>?@" -- "ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`" -- "abcdefghijklmnopqrstuvwxyz{|}~"; -- gchar *text = g_strstrip (g_strcanon (g_strdup (cmdline), valid_chars, ' ')); -- gsize text_size = (gsize)strlen (text); -+ gunichar c; -+ gchar *ch, *text_max, *text = g_strstrip (g_strdup (cmdline)); -+ gsize csize, text_size = (gsize)strlen (text); -+ -+ /* UTF-8 normalize. */ -+ do { -+ for (ch = text, text_max = (text + text_size); -+ text_max > ch; -+ text_max = (text + text_size), ch = g_utf8_next_char(ch)) { -+ c = g_utf8_get_char_validated(ch, -1); /* If use (text_max - ch) - result is worse. */ -+ if ((gunichar)-2 == c) { -+ text_size = (gsize)(ch - text); -+ (*ch) = 0; -+ break; -+ } -+ if ((gunichar)-1 == c) { -+ (*ch) = ' '; -+ continue; -+ } -+ csize = (gsize)g_unichar_to_utf8(c, NULL); -+ -+ if (!g_unichar_isdefined(c) || -+ !g_unichar_isprint(c) || -+ (g_unichar_isspace(c) && (1 != csize || (' ' != (*ch) && ' ' != (*ch)))) || -+ g_unichar_ismark(c) || -+ g_unichar_istitle(c) || -+ g_unichar_iswide(c) || -+ g_unichar_iszerowidth(c) || -+ g_unichar_iscntrl(c)) { -+ if (text_max < (ch + csize)) -+ break; -+ memmove(ch, (ch + csize), (gsize)(text_max - (ch + csize))); -+ text_size -= csize; -+ } -+ } -+ text[text_size] = 0; -+ } while (!g_utf8_validate(text, (gssize)text_size, NULL)); -+ - if (!full_cmdline && text_size > 3) - { - /* Shorten full path to commands and wine applications */ -@@ -139,7 +172,7 @@ pretty_cmdline (gchar *cmdline, gchar *comm) - gchar *p = g_strstr_len (text, (gssize)text_size, comm); - if (p != NULL) - { -- g_strlcpy (text, p, text_size); -+ memmove (text, p, text_size); - } - } - } --- -cgit v1.2.1 - diff --git a/x11/xfce4-taskmanager/files/patch-src__exec-tool-button.c b/x11/xfce4-taskmanager/files/patch-src_exec-tool-button.c index e532876d6940..12bb840cbf74 100644 --- a/x11/xfce4-taskmanager/files/patch-src__exec-tool-button.c +++ b/x11/xfce4-taskmanager/files/patch-src_exec-tool-button.c @@ -1,6 +1,6 @@ --- src/exec-tool-button.c.orig 2014-12-23 21:35:43 UTC +++ src/exec-tool-button.c -@@ -51,7 +51,7 @@ xtm_exec_tool_button_init (XtmExecToolBu +@@ -51,7 +51,7 @@ xtm_exec_tool_button_init (XtmExecToolButton *button) { GtkWidget *menu; diff --git a/x11/xfce4-taskmanager/pkg-descr b/x11/xfce4-taskmanager/pkg-descr index 7b116d2e4aae..e6415bf7d6b9 100644 --- a/x11/xfce4-taskmanager/pkg-descr +++ b/x11/xfce4-taskmanager/pkg-descr @@ -1,4 +1,4 @@ This is a port of the xfce-goodies plugin that adds a task manager to Xfce. -WWW: http://goodies.xfce.org/projects/applications/xfce4-taskmanager +WWW: https://goodies.xfce.org/projects/applications/xfce4-taskmanager diff --git a/x11/xfce4-taskmanager/pkg-plist b/x11/xfce4-taskmanager/pkg-plist index 1263e41f927d..fb76f6554f33 100644 --- a/x11/xfce4-taskmanager/pkg-plist +++ b/x11/xfce4-taskmanager/pkg-plist @@ -28,8 +28,8 @@ share/icons/hicolor/scalable/actions/xc_crosshair.svg %%NLS%%share/locale/ja/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/kk/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/ko/LC_MESSAGES/xfce4-taskmanager.mo -%%NLS%%share/locale/lv/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/lt/LC_MESSAGES/xfce4-taskmanager.mo +%%NLS%%share/locale/lv/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/ms/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/nb/LC_MESSAGES/xfce4-taskmanager.mo %%NLS%%share/locale/nl/LC_MESSAGES/xfce4-taskmanager.mo |