commit:     5514123820c205bada4151f0a35400858e7be95f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 26 21:34:33 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 26 21:34:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55141238

dev-debug/valgrind: install man pages in live ebuild

Thanks to mjw for helping out.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-debug/valgrind/valgrind-3.23.0.ebuild | 20 +++++++++++++-------
 dev-debug/valgrind/valgrind-9999.ebuild   | 20 +++++++++++++-------
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/dev-debug/valgrind/valgrind-3.23.0.ebuild 
b/dev-debug/valgrind/valgrind-3.23.0.ebuild
index 5a073f147105..efcec418f726 100644
--- a/dev-debug/valgrind/valgrind-3.23.0.ebuild
+++ b/dev-debug/valgrind/valgrind-3.23.0.ebuild
@@ -37,8 +37,14 @@ IUSE="mpi"
 
 DEPEND="mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
-if [[ ${PV} != 9999 ]] ; then
-       BDEPEND="verify-sig? ( sec-keys/openpgp-keys-valgrind )"
+if [[ ${PV} == 9999 ]] ; then
+       # Needed for man pages
+       BDEPEND+="
+               app-text/docbook-xsl-stylesheets
+               dev-libs/libxslt
+       "
+else
+       BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-valgrind )"
 fi
 
 PATCHES=(
@@ -121,14 +127,14 @@ src_test() {
 }
 
 src_install() {
-       default
-
-       if [[ ${PV} == "9999" ]]; then
-               # Otherwise FAQ.txt won't exist:
-               emake -C docs FAQ.txt
+       if [[ ${PV} == 9999 ]]; then
+               # TODO: Could do HTML docs too with 'all-docs'
+               emake -C docs man-pages FAQ.txt
                mv docs/FAQ.txt . || die "Couldn't move FAQ.txt"
        fi
 
+       default
+
        dodoc FAQ.txt
 
        pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux

diff --git a/dev-debug/valgrind/valgrind-9999.ebuild 
b/dev-debug/valgrind/valgrind-9999.ebuild
index 5a073f147105..efcec418f726 100644
--- a/dev-debug/valgrind/valgrind-9999.ebuild
+++ b/dev-debug/valgrind/valgrind-9999.ebuild
@@ -37,8 +37,14 @@ IUSE="mpi"
 
 DEPEND="mpi? ( virtual/mpi )"
 RDEPEND="${DEPEND}"
-if [[ ${PV} != 9999 ]] ; then
-       BDEPEND="verify-sig? ( sec-keys/openpgp-keys-valgrind )"
+if [[ ${PV} == 9999 ]] ; then
+       # Needed for man pages
+       BDEPEND+="
+               app-text/docbook-xsl-stylesheets
+               dev-libs/libxslt
+       "
+else
+       BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-valgrind )"
 fi
 
 PATCHES=(
@@ -121,14 +127,14 @@ src_test() {
 }
 
 src_install() {
-       default
-
-       if [[ ${PV} == "9999" ]]; then
-               # Otherwise FAQ.txt won't exist:
-               emake -C docs FAQ.txt
+       if [[ ${PV} == 9999 ]]; then
+               # TODO: Could do HTML docs too with 'all-docs'
+               emake -C docs man-pages FAQ.txt
                mv docs/FAQ.txt . || die "Couldn't move FAQ.txt"
        fi
 
+       default
+
        dodoc FAQ.txt
 
        pax-mark m "${ED}"/usr/$(get_libdir)/valgrind/*-*-linux

Reply via email to