Files
haikuports/media-gfx/kgraphviewer/patches/kgraphviewer-2.4.3~git.patchset
2024-04-10 20:26:48 +02:00

43 lines
1.1 KiB
Plaintext

From dabff81676f6950ac0a52145e5c19c2cbf3ad266 Mon Sep 17 00:00:00 2001
From: Schrijvers Luc <begasus@gmail.com>
Date: Wed, 10 Apr 2024 15:16:31 +0200
Subject: Make DocTools optional
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c1c280..925b1cd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,12 +44,15 @@ endif()
find_package(KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION} REQUIRED COMPONENTS
CoreAddons
- DocTools
I18n
Parts
WidgetsAddons
)
+find_package(KF${KF_MAJOR_VERSION} ${KF_MIN_VERSION} OPTIONAL_COMPONENTS
+ DocTools
+)
+
find_package(Boost 1.36 REQUIRED)
find_package(Graphviz 2.30.0 REQUIRED)
diff --git a/doc/en_US/CMakeLists.txt b/doc/en_US/CMakeLists.txt
index 29b08ce..596d7bc 100644
--- a/doc/en_US/CMakeLists.txt
+++ b/doc/en_US/CMakeLists.txt
@@ -1,4 +1,6 @@
########### install files ###############
#
#
-kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kgraphviewer)
+if(KF${KF_MAJOR_VERSION}DocTools_FOUND)
+ kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR kgraphviewer)
+endif()
--
2.43.2