summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViorel Munteanu <ceamac@gentoo.org>2023-01-24 10:30:10 +0200
committerViorel Munteanu <ceamac@gentoo.org>2023-01-24 10:33:42 +0200
commitb05be1a0d5353156fb9463f4274c37b9418f86a7 (patch)
tree104a0c94c87ccfc1b2409677a8afc48286d5f800 /app-emulation/virtualbox
parentsys-kernel/vanilla-sources: add 6.1.8, drop 6.1.7 (diff)
downloadgentoo-b05be1a0d5353156fb9463f4274c37b9418f86a7.tar.gz
gentoo-b05be1a0d5353156fb9463f4274c37b9418f86a7.tar.bz2
gentoo-b05be1a0d5353156fb9463f4274c37b9418f86a7.zip
app-emulation/virtualbox: Fix built-in help path
Closes: https://bugs.gentoo.org/891879 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox')
-rw-r--r--app-emulation/virtualbox/virtualbox-7.0.6-r1.ebuild (renamed from app-emulation/virtualbox/virtualbox-7.0.6.ebuild)14
1 files 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
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