gentoo/dev-cpp/benchmark/files/benchmark-1.9.5-fix-documentation-installation.patch
Sv. Lockal 7c40769db3
dev-cpp/benchmark: add 1.9.5
Closes: https://bugs.gentoo.org/970167

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45826
Signed-off-by: Sam James <sam@gentoo.org>
2026-03-06 00:44:11 +00:00

43 lines
1.4 KiB
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 009874342ddcf6446bec308686c54bd387a212a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matt=C3=A9o=20Rossillol=E2=80=91=E2=80=91Laruelle?=
<beatussum@protonmail.com>
Date: Mon, 19 Aug 2024 09:12:57 +0200
Subject: [PATCH] fix documentation installation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
HTML pages generated by Doxygen are now installed into
/usr/share/doc/${PF}/html.
The content of the docs directory is always installed even if HTML pages are
installed.
Signed-off-by: Mattéo RossillolLaruelle <beatussum@protonmail.com>
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -185,16 +185,16 @@ if (BENCHMARK_ENABLE_DOXYGEN)
if (BENCHMARK_ENABLE_INSTALL AND BENCHMARK_INSTALL_DOCS)
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/html/"
- DESTINATION ${CMAKE_INSTALL_DOCDIR})
- endif()
-else()
- if (BENCHMARK_ENABLE_INSTALL AND BENCHMARK_INSTALL_DOCS)
- install(
- DIRECTORY "${PROJECT_SOURCE_DIR}/docs/"
- DESTINATION ${CMAKE_INSTALL_DOCDIR})
+ DESTINATION "${CMAKE_INSTALL_DOCDIR}/html/")
endif()
endif()
+if (BENCHMARK_ENABLE_INSTALL AND BENCHMARK_INSTALL_DOCS)
+ install(
+ DIRECTORY "${PROJECT_SOURCE_DIR}/docs/"
+ DESTINATION ${CMAKE_INSTALL_DOCDIR})
+endif()
+
set(CMAKE_INSTALL_PYTOOLSDIR "${CMAKE_INSTALL_DATADIR}/googlebenchmark/tools" CACHE PATH "")
if (BENCHMARK_ENABLE_INSTALL AND BENCHMARK_INSTALL_TOOLS)