git: 5c002626cc07 - main - deskutils/nextcloudclient: Update to 4.0.2

From: Michael Reifenberger <mr_at_FreeBSD.org>
Date: Wed, 03 Dec 2025 14:50:06 UTC
The branch main has been updated by mr:

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

commit 5c002626cc07340557a1d9ec7d1b5d7bfaceeae3
Author:     Michael Reifenberger <mr@FreeBSD.org>
AuthorDate: 2025-12-03 14:49:13 +0000
Commit:     Michael Reifenberger <mr@FreeBSD.org>
CommitDate: 2025-12-03 14:49:13 +0000

    deskutils/nextcloudclient: Update to 4.0.2
---
 deskutils/nextcloudclient/Makefile                 |  2 +-
 deskutils/nextcloudclient/distinfo                 |  6 ++---
 .../files/patch-src_csync_ConfigureChecks.cmake    | 12 ----------
 .../files/patch-src_libsync_configfile.cpp         | 27 ++++++++--------------
 deskutils/nextcloudclient/pkg-plist                |  2 +-
 5 files changed, 15 insertions(+), 34 deletions(-)

diff --git a/deskutils/nextcloudclient/Makefile b/deskutils/nextcloudclient/Makefile
index 36aef68d4517..efcad09b3329 100644
--- a/deskutils/nextcloudclient/Makefile
+++ b/deskutils/nextcloudclient/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	nextcloudclient
-PORTVERSION=	4.0.1
+PORTVERSION=	4.0.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	deskutils
 
diff --git a/deskutils/nextcloudclient/distinfo b/deskutils/nextcloudclient/distinfo
index d05d7e8df6a4..616ab429dbd3 100644
--- a/deskutils/nextcloudclient/distinfo
+++ b/deskutils/nextcloudclient/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1761637713
-SHA256 (nextcloud-desktop-v4.0.1_GH0.tar.gz) = 4be3efd3aab3ab7ff410f67b69ca7173aba2dd4797ee77cefe0d427bb0011b59
-SIZE (nextcloud-desktop-v4.0.1_GH0.tar.gz) = 8693203
+TIMESTAMP = 1764772402
+SHA256 (nextcloud-desktop-v4.0.2_GH0.tar.gz) = 5d8c3eefe31e1cad5e65d88bcc4e256806d3db33122e755d329c83461c013b5b
+SIZE (nextcloud-desktop-v4.0.2_GH0.tar.gz) = 8735478
diff --git a/deskutils/nextcloudclient/files/patch-src_csync_ConfigureChecks.cmake b/deskutils/nextcloudclient/files/patch-src_csync_ConfigureChecks.cmake
deleted file mode 100644
index 0d45a7facbde..000000000000
--- a/deskutils/nextcloudclient/files/patch-src_csync_ConfigureChecks.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/csync/ConfigureChecks.cmake.orig	2025-03-06 09:00:02 UTC
-+++ src/csync/ConfigureChecks.cmake
-@@ -13,9 +13,6 @@ set(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
- set(BINARYDIR ${CMAKE_CURRENT_BINARY_DIR})
- set(SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR})
- 
--# HEADER FILES
--check_include_file(argp.h HAVE_ARGP_H)
--
- # FUNCTIONS
- if (NOT LINUX)
-     # librt
diff --git a/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
index 95097102e956..b009f473d376 100644
--- a/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
+++ b/deskutils/nextcloudclient/files/patch-src_libsync_configfile.cpp
@@ -1,25 +1,18 @@
---- src/libsync/configfile.cpp.orig	2025-03-06 09:00:02 UTC
+--- src/libsync/configfile.cpp.orig	2025-12-03 14:37:03 UTC
 +++ src/libsync/configfile.cpp
-@@ -653,11 +653,22 @@ bool ConfigFile::skipUpdateCheck(const QString &connec
-     if (connection.isEmpty())
-         con = defaultConnection();
- 
-+#if 0
-     QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, false);
-+#else
-+    QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), con, true);
-+#endif
+@@ -626,11 +626,13 @@ bool ConfigFile::skipUpdateCheck(const QString &connec
+ bool ConfigFile::skipUpdateCheck(const QString &connectionGroupName) const
+ {
+     const auto groupName = connectionGroupName.isEmpty() ? defaultConnectionGroupName() : connectionGroupName;
+-    QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), groupName, false);
++    QVariant fallback = getValue(QLatin1String(skipUpdateCheckC), groupName, true);
      fallback = getValue(QLatin1String(skipUpdateCheckC), QString(), fallback);
  
      QVariant value = getPolicySetting(QLatin1String(skipUpdateCheckC), fallback);
-+#if 0
-     return value.toBool();
-+#else
+-    return value.toBool();
 +    if ( !value.toBool() )
-+        qDebug() << "FreeBSD package disabled the UpdateCheck mechanism.";
-+
++      qDebug() << "FreeBSD package disabled the UpdateCheck mechanism.";
 +    return true;
-+#endif
  }
  
- void ConfigFile::setSkipUpdateCheck(bool skip, const QString &connection)
+ void ConfigFile::setSkipUpdateCheck(bool skip, const QString &connectionGroupName)
diff --git a/deskutils/nextcloudclient/pkg-plist b/deskutils/nextcloudclient/pkg-plist
index 40845a88c333..ed4f2d2454e0 100644
--- a/deskutils/nextcloudclient/pkg-plist
+++ b/deskutils/nextcloudclient/pkg-plist
@@ -22,7 +22,6 @@ lib/nextcloudsync_vfs_suffix.so
 %%KDE%%%%QT_PLUGINDIR%%/kf6/overlayicon/nextclouddolphinoverlayplugin.so
 share/applications/com.nextcloud.desktopclient.nextcloud.desktop
 %%GNOME%%share/caja-python/extensions/syncstate-Nextcloud.py
-%%EXAMPLESDIR%%/sync-exclude.lst
 share/icons/hicolor/1024x1024/apps/Nextcloud.png
 share/icons/hicolor/128x128/apps/Nextcloud.png
 share/icons/hicolor/128x128/apps/Nextcloud_a_shared.png
@@ -108,6 +107,7 @@ share/nextcloud/i18n/client_is.qm
 share/nextcloud/i18n/client_it.qm
 share/nextcloud/i18n/client_ja.qm
 share/nextcloud/i18n/client_ko.qm
+share/nextcloud/i18n/client_lo.qm
 share/nextcloud/i18n/client_lt_LT.qm
 share/nextcloud/i18n/client_lv.qm
 share/nextcloud/i18n/client_mk.qm