From 9b9fea398103ffc4d09ef56d0a63e33a68a1c6b1 Mon Sep 17 00:00:00 2001 From: Yixun Lan Date: Wed, 4 Jan 2023 12:14:48 +0800 Subject: dev-util/trace-cmd: fix doc issue 1) fix the man pages's wrong installation path 2) pull source-highlight as dependency Closes: https://bugs.gentoo.org/868168 Closes: https://bugs.gentoo.org/873007 Signed-off-by: Yixun Lan --- dev-util/trace-cmd/trace-cmd-3.1.4.ebuild | 13 +++++++++++-- dev-util/trace-cmd/trace-cmd-3.1.5.ebuild | 13 +++++++++++-- 2 files changed, 22 insertions(+), 4 deletions(-) (limited to 'dev-util/trace-cmd') diff --git a/dev-util/trace-cmd/trace-cmd-3.1.4.ebuild b/dev-util/trace-cmd/trace-cmd-3.1.4.ebuild index f13210697f74..308eb115628e 100644 --- a/dev-util/trace-cmd/trace-cmd-3.1.4.ebuild +++ b/dev-util/trace-cmd/trace-cmd-3.1.4.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -43,7 +43,10 @@ DEPEND="${RDEPEND} BDEPEND=" virtual/pkgconfig python? ( dev-lang/swig ) - doc? ( app-text/asciidoc ) + doc? ( + app-text/asciidoc + dev-util/source-highlight + ) " # having trouble getting tests to compile @@ -65,7 +68,13 @@ pkg_setup() { src_prepare() { default sed -r -e 's:([[:space:]]+)install_bash_completion($|[[:space:]]+):\1:' \ + -e '/^prefix/s:/usr/local:/usr:g' \ -i Makefile || die "sed failed" + + sed -i -e "s|^htmldir.*|&-${PVR}|g" \ + -e "s|^pdfdir.*|&-${PVR}|g" \ + Documentation/libtracecmd/Makefile \ + Documentation/trace-cmd/Makefile || die } src_configure() { diff --git a/dev-util/trace-cmd/trace-cmd-3.1.5.ebuild b/dev-util/trace-cmd/trace-cmd-3.1.5.ebuild index b608032b58bf..63c0354925ab 100644 --- a/dev-util/trace-cmd/trace-cmd-3.1.5.ebuild +++ b/dev-util/trace-cmd/trace-cmd-3.1.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -43,7 +43,10 @@ DEPEND="${RDEPEND} BDEPEND=" virtual/pkgconfig python? ( dev-lang/swig ) - doc? ( app-text/asciidoc ) + doc? ( + app-text/asciidoc + dev-util/source-highlight + ) " # having trouble getting tests to compile @@ -65,7 +68,13 @@ pkg_setup() { src_prepare() { default sed -r -e 's:([[:space:]]+)install_bash_completion($|[[:space:]]+):\1:' \ + -e '/^prefix/s:/usr/local:/usr:g' \ -i Makefile || die "sed failed" + + sed -i -e "s|^htmldir.*|&-${PVR}|g" \ + -e "s|^pdfdir.*|&-${PVR}|g" \ + Documentation/libtracecmd/Makefile \ + Documentation/trace-cmd/Makefile || die } src_configure() { -- cgit v1.2.3-65-gdbad