commit:     27ab4d5777819f4e5c1f47cdaed71322c069b90e
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  2 21:45:06 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Dec  2 21:45:14 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27ab4d57

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 <AT> gentoo.org>

 .../bcc/{bcc-0.23.0-r1.ebuild => bcc-0.23.0-r2.ebuild} |  7 +++++++
 dev-util/bcc/files/bcc-0.23.0-man-compress.patch       | 18 ++++++++++++++++++
 2 files changed, 25 insertions(+)

diff --git a/dev-util/bcc/bcc-0.23.0-r1.ebuild 
b/dev-util/bcc/bcc-0.23.0-r2.ebuild
similarity index 94%
rename from dev-util/bcc/bcc-0.23.0-r1.ebuild
rename to dev-util/bcc/bcc-0.23.0-r2.ebuild
index c9b8d16482cd..d66f44f767de 100644
--- a/dev-util/bcc/bcc-0.23.0-r1.ebuild
+++ b/dev-util/bcc/bcc-0.23.0-r2.ebuild
@@ -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_
 }

diff --git a/dev-util/bcc/files/bcc-0.23.0-man-compress.patch 
b/dev-util/bcc/files/bcc-0.23.0-man-compress.patch
new file mode 100644
index 000000000000..a7164e72b602
--- /dev/null
+++ b/dev-util/bcc/files/bcc-0.23.0-man-compress.patch
@@ -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)

Reply via email to