void-packages/srcpkgs/ccache/patches/build-and-install-man-page-...

33 lines
894 B
Diff

upstream: yes
From 294ff2face26448afa68e3ef7b68bf4898d6dc77 Mon Sep 17 00:00:00 2001
From: Erik Flodin <erik@ejohansson.se>
Date: Fri, 30 Oct 2020 10:23:08 +0100
Subject: [PATCH] Build and install man page by default (#705)
Fixes #684.
---
doc/CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index fb0f316..b5c9f24 100644
--- doc/CMakeLists.txt
+++ doc/CMakeLists.txt
@@ -58,7 +58,11 @@ else()
COMMAND ${A2X_EXE} --doctype manpage --format manpage MANUAL.xml
MAIN_DEPENDENCY MANUAL.xml
)
- add_custom_target(doc-man-page DEPENDS ccache.1)
+ add_custom_target(doc-man-page ALL DEPENDS ccache.1)
+ install(
+ FILES "${CMAKE_CURRENT_BINARY_DIR}/ccache.1"
+ DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
+ )
set(doc_files "${doc_files}" ccache.1)
endif()
--
2.29.2