From 1f29c66d7bfee804822ef1ed238c0736fac03d46 Mon Sep 17 00:00:00 2001 From: David Marec Date: Sun, 10 May 2020 12:06:03 +0200 Subject: [PATCH] Man install patch --- files/patch-CMakeScripts_Pod2man.cmake | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 files/patch-CMakeScripts_Pod2man.cmake diff --git a/files/patch-CMakeScripts_Pod2man.cmake b/files/patch-CMakeScripts_Pod2man.cmake new file mode 100644 index 0000000..29b42e5 --- /dev/null +++ b/files/patch-CMakeScripts_Pod2man.cmake @@ -0,0 +1,36 @@ +--- CMakeScripts/Pod2man.cmake.orig 2020-05-10 11:54:24.428342000 +0200 ++++ CMakeScripts/Pod2man.cmake +@@ -27,6 +27,7 @@ + if(NOT EXISTS ${PODFILE_FULL}) + message(FATAL ERROR "Could not find pod file ${PODFILE_FULL} to generate man page") + endif(NOT EXISTS ${PODFILE_FULL}) ++ message(STATUS "pod2man ${CMAKE_CURRENT_SOURCE_DIR}" ) + + if(POD2MAN) + if(LANG) +@@ -34,13 +35,13 @@ + set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${LANG}.tmp") + set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${LANG}.${SECTION}") + set(MANFILE_FULL_GZ "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${LANG}.${SECTION}.gz") +- set(MANFILE_DEST "${SHARE_INSTALL}/man/${LANG}/man${SECTION}") ++ set(MANFILE_DEST "man/${LANG}/man${SECTION}") + else() + set(MANPAGE_TARGET "man-${NAME}") + set(MANFILE_TEMP "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.tmp") + set(MANFILE_FULL "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${SECTION}") + set(MANFILE_FULL_GZ "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.${SECTION}.gz") +- set(MANFILE_DEST "${SHARE_INSTALL}/man/man${SECTION}") ++ set(MANFILE_DEST "man/man${SECTION}") + endif() + add_custom_command( + OUTPUT ${MANFILE_TEMP} +@@ -50,7 +51,7 @@ + + add_custom_command( + OUTPUT ${MANFILE_FULL} +- COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/fix-roff-punct "${MANFILE_TEMP}" > ${MANFILE_FULL} ++ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/fix-roff-punct "${MANFILE_TEMP}" > ${MANFILE_FULL} + DEPENDS ${MANFILE_TEMP} + ) + if(GZIP) + -- 2.47.0