dev-libs/librepo: fix USE=doc

Actually install documentation when the doc flag is enabled.

Closes: https://bugs.gentoo.org/943534
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-11-15 22:58:45 +09:00
parent 4cf18fa952
commit c77c976e4e
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61

View File

@ -41,6 +41,9 @@ src_prepare() {
# respect temp directory during tests, bug #924463
sed -i "s|/tmp/|${T}/|" tests/testsys.h || die
# disable python docs
sed -i "/python/d" doc/CMakeLists.txt || die
}
src_configure() {
@ -55,3 +58,13 @@ src_configure() {
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
use doc && cmake_src_compile doc-c
}
src_install() {
use doc && HTML_DOCS=( "${BUILD_DIR}"/doc/c/html/. )
cmake_src_install
}