git: 108398604e16 - main - sysutils/gnome-system-monitor: update to 47.1

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Wed, 11 Jun 2025 11:54:54 UTC
The branch main has been updated by bapt:

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

commit 108398604e16277d5bf76f157dd5b39644e73501
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2025-06-11 11:39:31 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-06-11 11:54:43 +0000

    sysutils/gnome-system-monitor: update to 47.1
    
    PR:     286697
---
 sysutils/gnome-system-monitor/Makefile             | 16 ++--
 sysutils/gnome-system-monitor/distinfo             |  6 +-
 .../files/patch-data_meson.build                   | 12 +++
 .../files/patch-src_load-graph.cpp                 | 20 ++---
 .../files/patch-src_openfiles.cpp                  | 20 ++---
 sysutils/gnome-system-monitor/pkg-plist            | 95 +++++++++++++++++++++-
 6 files changed, 133 insertions(+), 36 deletions(-)

diff --git a/sysutils/gnome-system-monitor/Makefile b/sysutils/gnome-system-monitor/Makefile
index e0b9524f128b..8e8ec87d9c5b 100644
--- a/sysutils/gnome-system-monitor/Makefile
+++ b/sysutils/gnome-system-monitor/Makefile
@@ -1,27 +1,25 @@
 PORTNAME=	gnome-system-monitor
-PORTVERSION=	42.0
-PORTREVISION=	1
+PORTVERSION=	47.1
 CATEGORIES=	sysutils gnome
 MASTER_SITES=	GNOME
 DIST_SUBDIR=	gnome
 
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	GNOME system monitor program
+WWW=		https://apps.gnome.org/GnomeSystemMonitor/
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	itstool:textproc/itstool
 LIB_DEPENDS=	libgtop-2.0.so:devel/libgtop \
-		libhandy-1.so:x11-toolkits/libhandy
+		libgraphene-1.0.so:graphics/graphene
+RUN_DEPENDS=	polkit>0:sysutils/polkit
 
-PORTSCOUT=	limitw:1,even
-
-USES=		alias compiler:c++11-lang gettext gnome localbase meson \
+USES=		alias compiler:c++20-lang gettext gnome localbase meson \
 		pkgconfig tar:xz
-USE_CXXSTD=	c++11
-USE_GNOME=	gtkmm30 librsvg2 libxml2
-USE_GNOME+=	glib20
+USE_CXXSTD=	c++20
+USE_GNOME=	glib20 glibmm26 gtkmm40 libadwaita librsvg2 libxml2
 MESON_ARGS=	-Dsystemd=false
 
 GLIB_SCHEMAS=	org.gnome.gnome-system-monitor.enums.xml \
diff --git a/sysutils/gnome-system-monitor/distinfo b/sysutils/gnome-system-monitor/distinfo
index c2aff4c8419a..3cfea162ee4c 100644
--- a/sysutils/gnome-system-monitor/distinfo
+++ b/sysutils/gnome-system-monitor/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1653083609
-SHA256 (gnome/gnome-system-monitor-42.0.tar.xz) = 13239d22032201a22bd29833c575b684816700d2de168a1530223577c5c075dc
-SIZE (gnome/gnome-system-monitor-42.0.tar.xz) = 978208
+TIMESTAMP = 1745069388
+SHA256 (gnome/gnome-system-monitor-47.1.tar.xz) = d3c5714fd91fa7f05d6775e6797ccdab3149f131d1aa776a3352e2addb110f01
+SIZE (gnome/gnome-system-monitor-47.1.tar.xz) = 1093736
diff --git a/sysutils/gnome-system-monitor/files/patch-data_meson.build b/sysutils/gnome-system-monitor/files/patch-data_meson.build
new file mode 100644
index 000000000000..655eddc055a0
--- /dev/null
+++ b/sysutils/gnome-system-monitor/files/patch-data_meson.build
@@ -0,0 +1,12 @@
+--- data/meson.build.orig	2024-03-16 19:12:56 UTC
++++ data/meson.build
+@@ -25,8 +25,7 @@ desktop_files += i18n.merge_file(
+        output: 'gnome-system-monitor-kde.desktop',
+          type: 'desktop',
+        po_dir: '../po',
+-      install: true,
+-  install_dir: join_paths(get_option('datadir'), 'applications')
++      install: false
+ )
+ 
+ appdata_file = i18n.merge_file(
diff --git a/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp b/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp
index 125b6f474be5..5c43b45a445c 100644
--- a/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp
+++ b/sysutils/gnome-system-monitor/files/patch-src_load-graph.cpp
@@ -1,11 +1,11 @@
---- src/load-graph.cpp.orig	2011-08-30 02:46:08.000000000 +0200
-+++ src/load-graph.cpp	2011-10-08 00:21:58.000000000 +0200
-@@ -415,7 +415,7 @@ net_scale (LoadGraph *graph, guint64 din
-         // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10)
-         //      where base10 = 1, coef10 = 101, pow2 = 16
+--- src/load-graph.cpp.orig	2023-09-02 21:02:13 UTC
++++ src/load-graph.cpp
+@@ -700,7 +700,7 @@ net_scale (LoadGraph *graph,
+       // e.g: ceil(100.5 KiB) = 101 KiB = 101 * 2**(1 * 10)
+       //      where base10 = 1, coef10 = 101, pow2 = 16
  
--        guint64 pow2 = std::floor(log2(new_max));
-+        guint64 pow2 = std::floor(log(new_max) / log (2));
-         guint64 base10 = pow2 / 10.0;
-         guint64 coef10 = std::ceil(new_max / double(G_GUINT64_CONSTANT(1) << (base10 * 10)));
-         g_assert(new_max <= (coef10 * (G_GUINT64_CONSTANT(1) << (base10 * 10))));
+-      guint64 pow2 = std::floor (log2 (new_max));
++      guint64 pow2 = std::floor (log (new_max) / log (2));
+       guint64 base10 = pow2 / 10.0;
+       guint64 coef10 = std::ceil (new_max / double(G_GUINT64_CONSTANT (1) << (base10 * 10)));
+       g_assert (new_max <= (coef10 * (G_GUINT64_CONSTANT (1) << (base10 * 10))));
diff --git a/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
index 7e97b8a494aa..6a1798386840 100644
--- a/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
+++ b/sysutils/gnome-system-monitor/files/patch-src_openfiles.cpp
@@ -1,14 +1,14 @@
---- src/openfiles.cpp.orig	2011-08-30 02:46:08.000000000 +0200
-+++ src/openfiles.cpp	2011-10-08 00:23:38.000000000 +0200
-@@ -71,7 +71,11 @@
-         goto failsafe;
+--- src/openfiles.cpp.orig	2023-09-02 21:02:13 UTC
++++ src/openfiles.cpp
+@@ -79,7 +79,11 @@ friendlier_hostname (const char *addr_str,
+     goto failsafe;
  
-     if (getnameinfo(res->ai_addr, res->ai_addrlen, hostname,
-+#ifdef NI_IDN
-                     sizeof hostname, service, sizeof service, NI_IDN))
+   if (getnameinfo (res->ai_addr, res->ai_addrlen, hostname,
++#ifdef NI_IDM
+                    sizeof hostname, service, sizeof service, NI_IDN))
 +#else
-+                    sizeof hostname, service, sizeof service, 0))
++                   sizeof hostname, service, sizeof service, 0))
 +#endif
-         goto failsafe;
+     goto failsafe;
  
-     if (res) freeaddrinfo(res);
+   if (res)
diff --git a/sysutils/gnome-system-monitor/pkg-plist b/sysutils/gnome-system-monitor/pkg-plist
index 972677416427..ecf4948092f1 100644
--- a/sysutils/gnome-system-monitor/pkg-plist
+++ b/sysutils/gnome-system-monitor/pkg-plist
@@ -2,8 +2,7 @@ bin/gnome-system-monitor
 libexec/gnome-system-monitor/gsm-kill
 libexec/gnome-system-monitor/gsm-renice
 libexec/gnome-system-monitor/gsm-taskset
-share/applications/gnome-system-monitor-kde.desktop
-share/applications/gnome-system-monitor.desktop
+share/applications/org.gnome.SystemMonitor.desktop
 %%DATADIR%%/gsm.gresource
 share/help/C/gnome-system-monitor/commandline.page
 share/help/C/gnome-system-monitor/cpu-check.page
@@ -341,6 +340,34 @@ share/help/id/gnome-system-monitor/process-status.page
 share/help/id/gnome-system-monitor/process-update-speed.page
 share/help/id/gnome-system-monitor/solaris-mode.page
 share/help/id/gnome-system-monitor/units.page
+share/help/it/gnome-system-monitor/commandline.page
+share/help/it/gnome-system-monitor/cpu-check.page
+share/help/it/gnome-system-monitor/cpu-mem-normal.page
+share/help/it/gnome-system-monitor/cpu-multicore.page
+share/help/it/gnome-system-monitor/figures/org.gnome.SystemMonitor.svg
+share/help/it/gnome-system-monitor/fs-device.page
+share/help/it/gnome-system-monitor/fs-diskusage.page
+share/help/it/gnome-system-monitor/fs-info.page
+share/help/it/gnome-system-monitor/fs-showall.page
+share/help/it/gnome-system-monitor/index.page
+share/help/it/gnome-system-monitor/legal.xml
+share/help/it/gnome-system-monitor/mem-check.page
+share/help/it/gnome-system-monitor/mem-swap.page
+share/help/it/gnome-system-monitor/memory-map-use.page
+share/help/it/gnome-system-monitor/memory-map-what.page
+share/help/it/gnome-system-monitor/net-bits.page
+share/help/it/gnome-system-monitor/process-explain.page
+share/help/it/gnome-system-monitor/process-files.page
+share/help/it/gnome-system-monitor/process-identify-file.page
+share/help/it/gnome-system-monitor/process-identify-hog.page
+share/help/it/gnome-system-monitor/process-kill.page
+share/help/it/gnome-system-monitor/process-many.page
+share/help/it/gnome-system-monitor/process-priority-change.page
+share/help/it/gnome-system-monitor/process-priority-what.page
+share/help/it/gnome-system-monitor/process-status.page
+share/help/it/gnome-system-monitor/process-update-speed.page
+share/help/it/gnome-system-monitor/solaris-mode.page
+share/help/it/gnome-system-monitor/units.page
 share/help/ko/gnome-system-monitor/commandline.page
 share/help/ko/gnome-system-monitor/cpu-check.page
 share/help/ko/gnome-system-monitor/cpu-mem-normal.page
@@ -537,6 +564,34 @@ share/help/sv/gnome-system-monitor/process-status.page
 share/help/sv/gnome-system-monitor/process-update-speed.page
 share/help/sv/gnome-system-monitor/solaris-mode.page
 share/help/sv/gnome-system-monitor/units.page
+share/help/tr/gnome-system-monitor/commandline.page
+share/help/tr/gnome-system-monitor/cpu-check.page
+share/help/tr/gnome-system-monitor/cpu-mem-normal.page
+share/help/tr/gnome-system-monitor/cpu-multicore.page
+share/help/tr/gnome-system-monitor/figures/org.gnome.SystemMonitor.svg
+share/help/tr/gnome-system-monitor/fs-device.page
+share/help/tr/gnome-system-monitor/fs-diskusage.page
+share/help/tr/gnome-system-monitor/fs-info.page
+share/help/tr/gnome-system-monitor/fs-showall.page
+share/help/tr/gnome-system-monitor/index.page
+share/help/tr/gnome-system-monitor/legal.xml
+share/help/tr/gnome-system-monitor/mem-check.page
+share/help/tr/gnome-system-monitor/mem-swap.page
+share/help/tr/gnome-system-monitor/memory-map-use.page
+share/help/tr/gnome-system-monitor/memory-map-what.page
+share/help/tr/gnome-system-monitor/net-bits.page
+share/help/tr/gnome-system-monitor/process-explain.page
+share/help/tr/gnome-system-monitor/process-files.page
+share/help/tr/gnome-system-monitor/process-identify-file.page
+share/help/tr/gnome-system-monitor/process-identify-hog.page
+share/help/tr/gnome-system-monitor/process-kill.page
+share/help/tr/gnome-system-monitor/process-many.page
+share/help/tr/gnome-system-monitor/process-priority-change.page
+share/help/tr/gnome-system-monitor/process-priority-what.page
+share/help/tr/gnome-system-monitor/process-status.page
+share/help/tr/gnome-system-monitor/process-update-speed.page
+share/help/tr/gnome-system-monitor/solaris-mode.page
+share/help/tr/gnome-system-monitor/units.page
 share/help/uk/gnome-system-monitor/commandline.page
 share/help/uk/gnome-system-monitor/cpu-check.page
 share/help/uk/gnome-system-monitor/cpu-mem-normal.page
@@ -565,10 +620,40 @@ share/help/uk/gnome-system-monitor/process-status.page
 share/help/uk/gnome-system-monitor/process-update-speed.page
 share/help/uk/gnome-system-monitor/solaris-mode.page
 share/help/uk/gnome-system-monitor/units.page
+share/help/zh_CN/gnome-system-monitor/commandline.page
+share/help/zh_CN/gnome-system-monitor/cpu-check.page
+share/help/zh_CN/gnome-system-monitor/cpu-mem-normal.page
+share/help/zh_CN/gnome-system-monitor/cpu-multicore.page
+share/help/zh_CN/gnome-system-monitor/figures/org.gnome.SystemMonitor.svg
+share/help/zh_CN/gnome-system-monitor/fs-device.page
+share/help/zh_CN/gnome-system-monitor/fs-diskusage.page
+share/help/zh_CN/gnome-system-monitor/fs-info.page
+share/help/zh_CN/gnome-system-monitor/fs-showall.page
+share/help/zh_CN/gnome-system-monitor/index.page
+share/help/zh_CN/gnome-system-monitor/legal.xml
+share/help/zh_CN/gnome-system-monitor/mem-check.page
+share/help/zh_CN/gnome-system-monitor/mem-swap.page
+share/help/zh_CN/gnome-system-monitor/memory-map-use.page
+share/help/zh_CN/gnome-system-monitor/memory-map-what.page
+share/help/zh_CN/gnome-system-monitor/net-bits.page
+share/help/zh_CN/gnome-system-monitor/process-explain.page
+share/help/zh_CN/gnome-system-monitor/process-files.page
+share/help/zh_CN/gnome-system-monitor/process-identify-file.page
+share/help/zh_CN/gnome-system-monitor/process-identify-hog.page
+share/help/zh_CN/gnome-system-monitor/process-kill.page
+share/help/zh_CN/gnome-system-monitor/process-many.page
+share/help/zh_CN/gnome-system-monitor/process-priority-change.page
+share/help/zh_CN/gnome-system-monitor/process-priority-what.page
+share/help/zh_CN/gnome-system-monitor/process-status.page
+share/help/zh_CN/gnome-system-monitor/process-update-speed.page
+share/help/zh_CN/gnome-system-monitor/solaris-mode.page
+share/help/zh_CN/gnome-system-monitor/units.page
 share/icons/hicolor/scalable/apps/org.gnome.SystemMonitor.Devel.svg
 share/icons/hicolor/scalable/apps/org.gnome.SystemMonitor.svg
 share/icons/hicolor/symbolic/apps/org.gnome.SystemMonitor-symbolic.svg
-share/icons/hicolor/symbolic/apps/speedometer-symbolic.svg
+share/icons/hicolor/symbolic/apps/processes-symbolic.svg
+share/icons/hicolor/symbolic/apps/resources-symbolic.svg
+share/locale/ab/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/am/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/an/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/ar/LC_MESSAGES/gnome-system-monitor.mo
@@ -609,10 +694,12 @@ share/locale/hi/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/hr/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/hu/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/id/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/ie/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/is/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/it/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/ja/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/ka/LC_MESSAGES/gnome-system-monitor.mo
+share/locale/kab/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/kk/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/km/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/kn/LC_MESSAGES/gnome-system-monitor.mo
@@ -663,5 +750,5 @@ share/locale/vi/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/zh_CN/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/zh_HK/LC_MESSAGES/gnome-system-monitor.mo
 share/locale/zh_TW/LC_MESSAGES/gnome-system-monitor.mo
-share/metainfo/gnome-system-monitor.appdata.xml
+share/metainfo/org.gnome.SystemMonitor.appdata.xml
 share/polkit-1/actions/org.gnome.gnome-system-monitor.policy