ports/math/ogdf/files/patch-cmake_doc.cmake
Alexey Dokuchaev 8369734c89 - Resurrect, unbreak, and update to version 2020.02 (Catalpa)
- The build is purely CMake-based now and doesn't use any shell
  or Python helper scripts
- Keep PLIST_SUB+=COIN="" to reduce the churn on the pkg-plist,
  will be cleaned up separately (COIN support is now mandatory)
- Chase 301 Moved Permanently redirect in the WWW line of the
  port description while here
2020-06-24 12:19:03 +00:00

19 lines
752 B
CMake

--- cmake/doc.cmake.orig 2020-02-09 22:05:19 UTC
+++ cmake/doc.cmake
@@ -1,13 +1,12 @@
# Documentation-related CMake configuration
set(doc_dir "${PROJECT_SOURCE_DIR}/doc")
-set(DOC_INSTALL_DIR "share/doc/libogdf" CACHE PATH "Installation path of OGDF documentation and examples")
+set(DOC_INSTALL_DIR "share/doc/libogdf" CACHE PATH "Installation path of OGDF documentation")
mark_as_advanced(DOC_INSTALL_DIR)
-# installation of examples as documentation
file(GLOB_RECURSE example_files "${doc_dir}/*.txt" "${doc_dir}/*.bench" "${doc_dir}/*.gml")
-install(DIRECTORY doc/examples
- DESTINATION ${DOC_INSTALL_DIR}
+install(DIRECTORY doc/examples/
+ DESTINATION ${EXAMPLES_INSTALL_DIR}
FILES_MATCHING
PATTERN "*.cpp"
PATTERN "*.txt"