[pim/trojita] /: Install user handbook
Carl Schwan <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit f9d89fe2e4f267260905dbc648116a13fa2c5759 by Carl Schwan, on behalf of Espen Sandøy Hustad.
Committed on 03/08/2026 at 18:40.
Pushed by carlschwan into branch 'master'.
Install user handbook
There is a docbook file in docs/ that is more or less up to date. This
also has translations, but was previously not installed. Might as well
install it since it is mostly complete.
M +14 -0 CMakeLists.txt
https://invent.kde.org/pim/trojita/-/commit/f9d89fe2e4f267260905dbc648116a13fa2c5759
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 55c97fd8b..52fba13da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.16)
project(trojita)
set(QT_REQUIRED_VERSION "6.7.0")
+set(KF_MIN_VERSION "6.26.0")
set(SONNET_LIB_VERSION "6.21.0")
@@ -33,6 +34,7 @@ endif()
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+include(KDEInstallDirs)
include(TrojitaOption)
# ECMPoQMTools includes QtVersionOption which creates an option to build against either
@@ -89,6 +91,13 @@ trojita_plugin_option(WITH_SONNET_PLUGIN "Build a plugin for spellchecking via K
trojita_find_package(Git "" "" "" "")
+find_package(KF6DocTools ${KF_MIN_VERSION})
+set_package_properties(KF6DocTools PROPERTIES
+ URL "https://invent.kde.org/frameworks/kdoctools/"
+ DESCRIPTION "Tools to generate documentation from docbook files"
+ TYPE OPTIONAL
+)
+
trojita_find_package(Mimetic "" "http://www.codesink.org/mimetic_mime_library.html" "C++ MIME Library" "Required for client-side MIME parsing" WITH_MIMETIC)
trojita_find_package(Gpgmepp "1.24.0" "https://gnupg.org/related_software/gpgme/index.html" "C++ bindings for gpgme" "Needed for encrypted/signed e-mails" WITH_GPGMEPP)
trojita_find_package(QGpgmeQt6 "1.24.0" "https://gnupg.org/related_software/gpgme/index.html" "Qt 6 bindings for gpgme" "Needed for encrypted/signed e-mails" WITH_GPGMEPP)
@@ -849,6 +858,11 @@ if(WITH_DESKTOP)
${STATIC_PLUGINS}
)
+ if(KF6DocTools_FOUND)
+ kdoctools_install(po)
+ kdoctools_create_handbook(${CMAKE_CURRENT_SOURCE_DIR}/docs/index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR trojita)
+ endif()
+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/docs/trojita.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
endif()