dev-util/bcc: Revbump, add MANPATH, fix compression (bug #828030)

Closes: https://bugs.gentoo.org/828030
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2021-12-02 13:45:06 -08:00
parent d79265d953
commit 27ab4d5777
2 changed files with 25 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/bcc-0.9.0-no-luajit-automagic-dep.patch"
"${FILESDIR}/bcc-0.14.0-cmakelists.patch"
"${FILESDIR}/bcc-0.23.0-man-compress.patch"
)
pkg_pretend() {
@@ -118,4 +119,10 @@ src_install() {
name=${tool##*/}
dosym8 -r "${tool#${ED}}" /usr/sbin/${name}
done
docompress /usr/share/${PN}/man
newenvd - "70${P}" <<-_EOF_
MANPATH="${EPREFIX}/usr/share/${PN}/man"
_EOF_
}

View File

@@ -0,0 +1,18 @@
diff --git a/man/man8/CMakeLists.txt b/man/man8/CMakeLists.txt
index 718c7006..3fb623ff 100644
--- a/man/man8/CMakeLists.txt
+++ b/man/man8/CMakeLists.txt
@@ -1,12 +1,4 @@
find_program(GZIP gzip)
file(GLOB FILES *.8)
-set(GZFILES "")
-foreach(FIL ${FILES})
- get_filename_component(NAME ${FIL} NAME)
- add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- COMMAND ${GZIP} -c ${FIL} > ${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz
- DEPENDS ${FIL})
- list(APPEND GZFILES "${CMAKE_CURRENT_BINARY_DIR}/${NAME}.gz")
-endforeach()
add_custom_target(man ALL DEPENDS ${GZFILES})
-install(FILES ${GZFILES} DESTINATION share/bcc/man/man8)
+install(FILES ${FILES} DESTINATION share/bcc/man/man8)