diff options
Diffstat (limited to 'ham/uhd/patches/patch-docs_CMakeLists.txt')
-rw-r--r-- | ham/uhd/patches/patch-docs_CMakeLists.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ham/uhd/patches/patch-docs_CMakeLists.txt b/ham/uhd/patches/patch-docs_CMakeLists.txt new file mode 100644 index 00000000000..7e16f217d4d --- /dev/null +++ b/ham/uhd/patches/patch-docs_CMakeLists.txt @@ -0,0 +1,31 @@ +$NetBSD: patch-docs_CMakeLists.txt,v 1.1 2019/10/04 10:41:44 adam Exp $ + +Do not compress man pages. + +--- docs/CMakeLists.txt.orig 2019-10-03 17:48:04.000000000 +0000 ++++ docs/CMakeLists.txt +@@ -150,23 +150,5 @@ LIBUHD_REGISTER_COMPONENT("Man Pages" EN + + if(ENABLE_MAN_PAGES) + #Generate man pages +- foreach(manfile ${man_page_sources}) +- #make the gzip file depend on the text file +- string(REPLACE ".1" "" PROGRAM_NAME "${manfile}") +- set(gzfile "${CMAKE_CURRENT_BINARY_DIR}/${manfile}.gz") +- set(manfile "${CMAKE_CURRENT_SOURCE_DIR}/${manfile}") +- add_custom_command( +- OUTPUT ${gzfile} +- DEPENDS ${manfile} +- COMMAND ${GZIP_EXECUTABLE} -9 -cf ${manfile} > ${gzfile} +- COMMENT "Generating ${PROGRAM_NAME} man page" +- ) +- +- #make the man page target depend on the gz file +- list(APPEND man_page_gz_files ${gzfile}) +- UHD_INSTALL(FILES ${gzfile} DESTINATION ${PKG_MAN_DIR} COMPONENT manpages) +- endforeach(manfile ${man_page_sources}) +- +- #make the man pages a build-time dependency +- add_custom_target(man_page_gzips ALL DEPENDS ${man_page_gz_files}) ++ UHD_INSTALL(FILES ${man_page_sources} DESTINATION ${PKG_MAN_DIR} COMPONENT manpages) + endif(ENABLE_MAN_PAGES) |