commit:     7907d85c94eea1af175b1a79259b0b193fdd0cca
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 20:45:54 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 20:45:54 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7907d85c

dev-embedded/libftdi: possible man page fixes

Closes: https://bugs.gentoo.org/704952
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/libftdi/libftdi-0.20-r1.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-embedded/libftdi/libftdi-0.20-r1.ebuild 
b/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
index fa153fa8edc..f8f5799b48f 100644
--- a/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
+++ b/dev-embedded/libftdi/libftdi-0.20-r1.ebuild
@@ -71,11 +71,12 @@ src_install() {
 
        if use doc ; then
                # Clean up crap man pages. #356369
-               rm -vf "${CMAKE_BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}*
+               rm -vf "${BUILD_DIR}"/doc/man/man3/{_,usb_,deprecated}* || die
 
-               doman "${CMAKE_BUILD_DIR}"/doc/man/man3/*
-               dodoc -r "${CMAKE_BUILD_DIR}"/doc/html
+               doman "${BUILD_DIR}"/doc/man/man3/*
+               dodoc -r "${BUILD_DIR}"/doc/html
        fi
+
        if use examples ; then
                docinto examples
                dodoc examples/*.c

Reply via email to