git: 7ea61a316d2d - main - sysutils/k4dirstat: Update to 3.4.3

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Wed, 21 Jun 2023 08:52:20 UTC
The branch main has been updated by eduardo:

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

commit 7ea61a316d2dd3ac625444bd8e0ae7cdfbf044fe
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2023-06-21 08:45:03 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2023-06-21 08:52:07 +0000

    sysutils/k4dirstat: Update to 3.4.3
    
     - Add DOCS and NLS options
     - Remove desktop-file-utils since .desktop MimeType entry was removed by
       upstream
     - Clean up variables
     - Take maintainership
    
    ChangeLog: https://github.com/jeromerobert/k4dirstat/releases/tag/3.4.3
---
 sysutils/k4dirstat/Makefile                        | 24 +++++++++-------
 sysutils/k4dirstat/distinfo                        |  6 ++--
 .../k4dirstat/files/patch-doc_en_CMakeLists.txt    |  8 ++++++
 sysutils/k4dirstat/pkg-plist                       | 32 +++++++++++-----------
 4 files changed, 41 insertions(+), 29 deletions(-)

diff --git a/sysutils/k4dirstat/Makefile b/sysutils/k4dirstat/Makefile
index dd600a0bba70..76bf8dfe2984 100644
--- a/sysutils/k4dirstat/Makefile
+++ b/sysutils/k4dirstat/Makefile
@@ -1,26 +1,27 @@
 PORTNAME=	k4dirstat
-PORTVERSION=	3.4.2
-PORTREVISION=	1
+DISTVERSION=	3.4.3
 CATEGORIES=	sysutils kde
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	KDE utility that sums up disk usage for directory trees
 WWW=		https://github.com/jeromerobert/k4dirstat
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake compiler:c++11-lang cpe desktop-file-utils gettext-tools \
-		kde:5 qt:5 tar:bzip2
-
-USE_GITHUB=	yes
-GH_ACCOUNT=	jeromerobert
-
+USES=		cmake compiler:c++11-lang cpe kde:5 qt:5
 CPE_VENDOR=	kdirstat_project
 CPE_PRODUCT=	kdirstat
+USE_GITHUB=	yes
+GH_ACCOUNT=	jeromerobert
 USE_KDE=	auth codecs completion config configwidgets coreaddons doctools \
 		i18n iconthemes jobwidgets kio service widgetsaddons xmlgui
-USE_QT=		buildtools:build core gui dbus network qmake:build widgets xml
+USE_QT=		core dbus gui network widgets xml buildtools:build qmake:build
+
+OPTIONS_DEFINE=	DOCS NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=	gettext-tools
 
 post-patch:
 	@${REINPLACE_CMD} -e \
@@ -29,5 +30,8 @@ post-patch:
 	@${REINPLACE_CMD} -e \
 		's|<sys/errno.h>|<errno.h>|' \
 		${WRKSRC}/src/kdirreadjob.cpp
+	@${REINPLACE_CMD} -e \
+		's|%%PREFIX%%|${PREFIX}|' \
+		${WRKSRC}/doc/en/CMakeLists.txt
 
 .include <bsd.port.mk>
diff --git a/sysutils/k4dirstat/distinfo b/sysutils/k4dirstat/distinfo
index 05f53b65f7a9..92c30a1d3c8f 100644
--- a/sysutils/k4dirstat/distinfo
+++ b/sysutils/k4dirstat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1671304972
-SHA256 (jeromerobert-k4dirstat-3.4.2_GH0.tar.gz) = c925aa058928ca755984ec708955be936ee5c38d594ba0a21000469539e00424
-SIZE (jeromerobert-k4dirstat-3.4.2_GH0.tar.gz) = 411899
+TIMESTAMP = 1687244383
+SHA256 (jeromerobert-k4dirstat-3.4.3_GH0.tar.gz) = f595ef6d1b316d44cdf5a536b94ea68664345cfe0bbce324030da27ed172a338
+SIZE (jeromerobert-k4dirstat-3.4.3_GH0.tar.gz) = 412329
diff --git a/sysutils/k4dirstat/files/patch-doc_en_CMakeLists.txt b/sysutils/k4dirstat/files/patch-doc_en_CMakeLists.txt
new file mode 100644
index 000000000000..1f9d51f84ceb
--- /dev/null
+++ b/sysutils/k4dirstat/files/patch-doc_en_CMakeLists.txt
@@ -0,0 +1,8 @@
+--- doc/en/CMakeLists.txt.orig	2023-06-21 07:55:31 UTC
++++ doc/en/CMakeLists.txt
+@@ -1,4 +1,4 @@
+ ########### install files ###############
+ #
+ 
+-kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR k4dirstat)
++kdoctools_create_handbook(index.docbook INSTALL_DESTINATION %%PREFIX%%/share/doc SUBDIR k4dirstat)
diff --git a/sysutils/k4dirstat/pkg-plist b/sysutils/k4dirstat/pkg-plist
index bb94ac3ccaeb..b4b01c3546ff 100644
--- a/sysutils/k4dirstat/pkg-plist
+++ b/sysutils/k4dirstat/pkg-plist
@@ -2,23 +2,23 @@ bin/k4dirstat
 man/man1/k4dirstat.1.gz
 share/applications/k4dirstat.desktop
 share/config.kcfg/k4dirstat.kcfg
-share/doc/HTML/en/k4dirstat/feedback-mail.png
-share/doc/HTML/en/k4dirstat/index.cache.bz2
-share/doc/HTML/en/k4dirstat/index.docbook
-share/doc/HTML/en/k4dirstat/kdirstat-config-cleanups.png
-share/doc/HTML/en/k4dirstat/kdirstat-config-tree-colors.png
-share/doc/HTML/en/k4dirstat/kdirstat-main.png
+%%PORTDOCS%%%%DOCSDIR%%/feedback-mail.png
+%%PORTDOCS%%%%DOCSDIR%%/index.cache.bz2
+%%PORTDOCS%%%%DOCSDIR%%/index.docbook
+%%PORTDOCS%%%%DOCSDIR%%/kdirstat-config-cleanups.png
+%%PORTDOCS%%%%DOCSDIR%%/kdirstat-config-tree-colors.png
+%%PORTDOCS%%%%DOCSDIR%%/kdirstat-main.png
 share/icons/hicolor/16x16/apps/k4dirstat.png
 share/icons/hicolor/32x32/apps/k4dirstat.png
 share/icons/hicolor/48x48/apps/k4dirstat.png
 share/icons/hicolor/scalable/apps/k4dirstat.svgz
-share/locale/ca/LC_MESSAGES/k4dirstat.mo
-share/locale/de/LC_MESSAGES/k4dirstat.mo
-share/locale/es_AR/LC_MESSAGES/k4dirstat.mo
-share/locale/fr/LC_MESSAGES/k4dirstat.mo
-share/locale/hu/LC_MESSAGES/k4dirstat.mo
-share/locale/it/LC_MESSAGES/k4dirstat.mo
-share/locale/ja/LC_MESSAGES/k4dirstat.mo
-share/locale/lt/LC_MESSAGES/k4dirstat.mo
-share/locale/lv/LC_MESSAGES/k4dirstat.mo
-share/locale/nl/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/de/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/es_AR/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/it/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/lv/LC_MESSAGES/k4dirstat.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/k4dirstat.mo