commit:     fc5e6f0ade056cb3289c0c14c0e73f7bffbd97f2
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  6 07:13:22 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Apr  6 09:30:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc5e6f0a

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 <AT> gentoo.org>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 .../{trace-cmd-3.3.1.ebuild => trace-cmd-3.3.1-r1.ebuild}    | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/dev-util/trace-cmd/trace-cmd-3.3.1.ebuild 
b/dev-util/trace-cmd/trace-cmd-3.3.1-r1.ebuild
similarity index 88%
rename from dev-util/trace-cmd/trace-cmd-3.3.1.ebuild
rename to dev-util/trace-cmd/trace-cmd-3.3.1-r1.ebuild
index 707678e7fb7a..f3db27a0318c 100644
--- a/dev-util/trace-cmd/trace-cmd-3.3.1.ebuild
+++ b/dev-util/trace-cmd/trace-cmd-3.3.1-r1.ebuild
@@ -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

Reply via email to