commit:     562941bf90f75afd019665f0f0ce6550d055fff4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 22 19:46:05 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec 22 19:46:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=562941bf

dev-libs/botan: backport USE=doc fix to 2.19.x

Backport the fix from 230179daf6ba0dd4401b7b79079d840ed251b06e.

Bug: https://bugs.gentoo.org/910232
Closes: https://bugs.gentoo.org/946829
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/botan/botan-2.19.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-libs/botan/botan-2.19.5.ebuild 
b/dev-libs/botan/botan-2.19.5.ebuild
index bece06dd2ab4..f042f0f6df33 100644
--- a/dev-libs/botan/botan-2.19.5.ebuild
+++ b/dev-libs/botan/botan-2.19.5.ebuild
@@ -194,7 +194,7 @@ src_test() {
 src_install() {
        default
 
-       if [[ -d "${ED}"/usr/share/doc/${P} ]] ; then
+       if [[ -d "${ED}"/usr/share/doc/${P} && ${P} != ${PF} ]] ; then
                # --docdir in configure controls the parent directory 
unfortunately
                mv "${ED}"/usr/share/doc/${P} "${ED}"/usr/share/doc/${PF} || die
        fi

Reply via email to