Commit 0fe6cddb authored by Alex Richardson's avatar Alex Richardson Committed by Nicolas Fella
Browse files

Make the KDocTools dependency optional

I am trying to cross-compile for a minimal FreeBSD QEMU instance and I
don't have KDocTools built. As this is only needed for the handbook we
can make the dependency optional.
parent 8d474c6a
......@@ -63,7 +63,6 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
KIO
ItemModels
I18n
DocTools
Parts
WindowSystem
IconThemes
......@@ -74,6 +73,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
)
find_package(KF5 ${KF5_MIN_VERSION} OPTIONAL_COMPONENTS
Activities
DocTools
Purpose
)
......
########### install files ###############
#
#
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR gwenview)
if(KF5DocTools_FOUND)
kdoctools_create_handbook(index.docbook INSTALL_DESTINATION ${KDE_INSTALL_DOCBUNDLEDIR}/en SUBDIR gwenview)
endif()
  • You should consider submitting PRs to FreeBSD ports then as well, removing the corresponding dependency (or better yet, making the ports respect a DOCS option). I'm pretty sure I have marked it in packaging as doctools_build, but that's still a dependency.

  • @adridg I'm not particularly familar with the ports system (my only commit there so far has been updating a package to a newer version) and I'm not sure how optional dependencies work. In case you find the time to update the ports, I have so far made it optional for Gwenview, Dolphin, and hopefully soon for kio-extras (network/kio-extras!110).

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment