mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 20:18:41 -04:00
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:
parent
4cf18fa952
commit
c77c976e4e
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user