dev-util/trace-cmd: install man pages and html documentation

The 'docs' target needs to be called explicitly for the man pages and
the html documentation to be build.

Also add missing xmlto dependency and set version-tag so that the
binaries identify as Gentoo build.

Closes: https://bugs.gentoo.org/953284
Closes: https://github.com/gentoo/gentoo/pull/41472
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Florian Schmaus
2025-04-06 09:13:22 +02:00
committed by Yixun Lan
parent e485a346ea
commit fc5e6f0ade

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -42,6 +42,7 @@ DEPEND="
"
BDEPEND="
app-text/asciidoc
app-text/xmlto
virtual/pkgconfig
python? ( dev-lang/swig )
"
@@ -73,6 +74,9 @@ src_prepare() {
src_configure() {
local emesonargs=(
-Dasciidoctor=false
-Dhtmldir=/usr/share/doc/${PF}/html
-Dmandir=/usr/share/man
-Dversion-tag=${PVR}-gentoo
$(meson_use python)
)
@@ -84,6 +88,12 @@ src_configure() {
meson_src_configure
}
src_compile() {
# The 'docs' target is not part of the 'all' target, hence we need to
# explicitly specify 'docs'.
meson_src_compile all docs
}
src_install() {
meson_src_install
use python && python_install