commit:     0ff4dda9b607bb69be897dd00c5c8bb5adf85fe3
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  5 17:00:25 2022 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Wed Jan  5 17:31:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ff4dda9

app-emulation/qemu: avoid building docs more than once

We always build tools, so that seems like a good place to build docs.
Also, there are some docs that only get built when tools are enabled.

Closes: https://github.com/gentoo/gentoo/pull/23660
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 app-emulation/qemu/qemu-6.2.0-r2.ebuild | 2 +-
 app-emulation/qemu/qemu-9999.ebuild     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-emulation/qemu/qemu-6.2.0-r2.ebuild 
b/app-emulation/qemu/qemu-6.2.0-r2.ebuild
index cb24a7a6096f..10b0bf44d7de 100644
--- a/app-emulation/qemu/qemu-6.2.0-r2.ebuild
+++ b/app-emulation/qemu/qemu-6.2.0-r2.ebuild
@@ -472,7 +472,6 @@ qemu_src_configure() {
                $(use_enable alsa)
                $(use_enable debug debug-info)
                $(use_enable debug debug-tcg)
-               $(use_enable doc docs)
                $(use_enable jack)
                $(use_enable nls gettext)
                $(use_enable oss)
@@ -522,6 +521,7 @@ qemu_src_configure() {
                $(conf_notuser capstone)
                $(conf_notuser caps cap-ng)
                $(conf_notuser curl)
+               $(conf_tools doc docs)
                $(conf_notuser fdt)
                $(conf_notuser fuse)
                $(conf_notuser glusterfs)

diff --git a/app-emulation/qemu/qemu-9999.ebuild 
b/app-emulation/qemu/qemu-9999.ebuild
index d2e16f5f34e1..7f3efa61e35b 100644
--- a/app-emulation/qemu/qemu-9999.ebuild
+++ b/app-emulation/qemu/qemu-9999.ebuild
@@ -471,7 +471,6 @@ qemu_src_configure() {
                $(use_enable alsa)
                $(use_enable debug debug-info)
                $(use_enable debug debug-tcg)
-               $(use_enable doc docs)
                $(use_enable jack)
                $(use_enable nls gettext)
                $(use_enable oss)
@@ -521,6 +520,7 @@ qemu_src_configure() {
                $(conf_notuser capstone)
                $(conf_notuser caps cap-ng)
                $(conf_notuser curl)
+               $(conf_tools doc docs)
                $(conf_notuser fdt)
                $(conf_notuser fuse)
                $(conf_notuser glusterfs)

Reply via email to