commit:     b05be1a0d5353156fb9463f4274c37b9418f86a7
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 24 08:30:10 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Tue Jan 24 08:33:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b05be1a0

app-emulation/virtualbox: Fix built-in help path

Closes: https://bugs.gentoo.org/891879
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 ...{virtualbox-7.0.6.ebuild => virtualbox-7.0.6-r1.ebuild} | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/app-emulation/virtualbox/virtualbox-7.0.6.ebuild 
b/app-emulation/virtualbox/virtualbox-7.0.6-r1.ebuild
similarity index 98%
rename from app-emulation/virtualbox/virtualbox-7.0.6.ebuild
rename to app-emulation/virtualbox/virtualbox-7.0.6-r1.ebuild
index e3ca516962d2..2d0c9076e342 100644
--- a/app-emulation/virtualbox/virtualbox-7.0.6.ebuild
+++ b/app-emulation/virtualbox/virtualbox-7.0.6-r1.ebuild
@@ -224,6 +224,11 @@ pkg_pretend() {
                einfo "will have NLS support."
        fi
 
+       if use gui && ! use doc; then
+               einfo "You have disabled the \"doc\" USE flag.  Built-in help"
+               einfo "will not be available."
+       fi
+
        # 749273
        local d=${ROOT}
        for i in usr "$(get_libdir)"; do
@@ -320,6 +325,9 @@ src_prepare() {
                -e 's/&rarr;/\&#8594;/g' \
                -e 's/&harr;/\&#8596;/g' {} \+ || die
 
+       # fix help path #891879
+       echo -e "\nVBOX_PATH_PACKAGE_DOCS=/usr/share/doc/${PF}" >> 
LocalConfig.kmk || die
+
        # 489208
        # Cannot patch the whole text, many translations.  Use sed instead to 
replace the command
        find src/VBox/Frontends/VirtualBox/nls -name \*.ts -exec sed -i \
@@ -666,10 +674,8 @@ src_install() {
        fi
 
        if use doc; then
-               dodoc UserManual.pdf
-               docompress -x /usr/share/doc/${PF}/qt
-               docinto qt
-               dodoc UserManual.q{ch,hc}
+               dodoc UserManual.pdf UserManual.q{ch,hc}
+               docompress -x /usr/share/doc/${PF}
        fi
 
        if use python; then

Reply via email to