git: b3ee1bea524d - main - finance/gnucash-docs: Update to 4.13

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Mon, 19 Dec 2022 08:49:09 UTC
The branch main has been updated by madpilot:

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

commit b3ee1bea524db8bffab9de7f2ae20193fc093c80
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2022-12-19 08:44:49 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2022-12-19 08:49:04 +0000

    finance/gnucash-docs: Update to 4.13
    
    - Partly revert upstream commit 513747413e which causes build to fail.
---
 finance/gnucash-docs/Makefile                      |  2 +-
 finance/gnucash-docs/distinfo                      |  6 ++---
 .../files/patch-cmake_AddXdgHelpTarget.cmake       | 26 ++++++++++++++++++++++
 3 files changed, 30 insertions(+), 4 deletions(-)

diff --git a/finance/gnucash-docs/Makefile b/finance/gnucash-docs/Makefile
index 4463cc9b14e5..56aa79d07304 100644
--- a/finance/gnucash-docs/Makefile
+++ b/finance/gnucash-docs/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	gnucash-docs
-PORTVERSION=	4.12
+PORTVERSION=	4.13
 CATEGORIES=	finance gnome
 MASTER_SITES=	SF/gnucash/gnucash%20%28stable%29/${PORTVERSION}
 
diff --git a/finance/gnucash-docs/distinfo b/finance/gnucash-docs/distinfo
index 8e9a13241bb3..428fa422cb03 100644
--- a/finance/gnucash-docs/distinfo
+++ b/finance/gnucash-docs/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1664126002
-SHA256 (gnucash-docs-4.12.tar.gz) = 004ca6976c7b7c4a946ac1d723d2e758e6e07a288d76c2719026a5e8b68b63ab
-SIZE (gnucash-docs-4.12.tar.gz) = 60999939
+TIMESTAMP = 1671374716
+SHA256 (gnucash-docs-4.13.tar.gz) = e9416486e4bcc4a5823ab2c4a0c2af4b4c6d1f6ebfdd95fa1db763dcba49d6dc
+SIZE (gnucash-docs-4.13.tar.gz) = 60996313
diff --git a/finance/gnucash-docs/files/patch-cmake_AddXdgHelpTarget.cmake b/finance/gnucash-docs/files/patch-cmake_AddXdgHelpTarget.cmake
new file mode 100644
index 000000000000..d94cbad08cc2
--- /dev/null
+++ b/finance/gnucash-docs/files/patch-cmake_AddXdgHelpTarget.cmake
@@ -0,0 +1,26 @@
+--- cmake/AddXdgHelpTarget.cmake.orig	2022-12-17 21:04:07 UTC
++++ cmake/AddXdgHelpTarget.cmake
+@@ -44,8 +44,8 @@ function (add_xdghelp_target docname lang entities fig
+       COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR}/figures"
+ 
+       # Add links to make our documentation visible for KDE's help system
+-      COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR_KDE_BASE}"
+-      COMMAND ${CMAKE_COMMAND} -E create_symlink "${BUILD_DIR_BASE}" "${BUILD_DIR_KDE_BASE}/${kde_lang}"
++      # COMMAND ${CMAKE_COMMAND} -E make_directory "${BUILD_DIR_KDE_BASE}"
++      # COMMAND ${CMAKE_COMMAND} -E create_symlink "${BUILD_DIR_BASE}" "${BUILD_DIR_KDE_BASE}/${kde_lang}"
+       COMMAND touch "${CMAKE_CURRENT_BINARY_DIR}/xdghelptrigger")
+ 
+ 
+@@ -90,8 +90,8 @@ function (add_xdghelp_target docname lang entities fig
+ 
+     # Add links to make our documentation visible for KDE's help system
+     set(doc_install_dir_kde_base "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/doc/HTML")
+-    install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory \"${doc_install_dir_kde_base}\")"
+-        COMPONENT "xdghelp")
+-    install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E create_symlink \"../../../${doc_install_dir_base}\" \"${doc_install_dir_kde_base}/${kde_lang}\")"
+-        COMPONENT "xdghelp")
++    # install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E make_directory \"${doc_install_dir_kde_base}\")"
++    #    COMPONENT "xdghelp")
++    # install(CODE "execute_process (COMMAND ${CMAKE_COMMAND} -E create_symlink \"../../../${doc_install_dir_base}\" \"${doc_install_dir_kde_base}/${kde_lang}\")"
++    #    COMPONENT "xdghelp")
+ endfunction()