commit:     38e14beda0e6522c6907259a60633447d26bf6c5
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 31 20:32:05 2020 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue Mar 31 20:44:02 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38e14bed

media-libs/waffle: Use IUSE=doc to control only dev docs

So wflinfo(1) is always installed. Also move dependencies to BDEPEND.

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 media-libs/waffle/waffle-9999.ebuild | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/media-libs/waffle/waffle-9999.ebuild 
b/media-libs/waffle/waffle-9999.ebuild
index 4ae9a9bbcf9..6080dd579e2 100644
--- a/media-libs/waffle/waffle-9999.ebuild
+++ b/media-libs/waffle/waffle-9999.ebuild
@@ -30,10 +30,10 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}
        >=x11-base/xcb-proto-1.8-r3[${MULTILIB_USEDEP}]
-       doc? (
-               dev-libs/libxslt
-               app-text/docbook-xml-dtd:4.2
-       )
+"
+BDEPEND="
+       dev-libs/libxslt
+       app-text/docbook-xml-dtd:4.2
 "
 
 MULTILIB_CHOST_TOOLS=(
@@ -52,7 +52,7 @@ multilib_src_configure() {
                $(meson_feature X x11_egl)
                $(meson_feature gbm)
                $(meson_feature egl surfaceless_egl)
-               $(meson_use doc build-manpages)
+               -Dbuild-manpages=true
                -Dbuild-tests=false
        )
        meson_src_configure
@@ -69,5 +69,5 @@ multilib_src_test() {
 multilib_src_install() {
        meson_src_install
 
-       rm -rf "${D}"/usr/share/doc/waffle1
+       ! use doc && rm -rf "${D}"/usr/share/doc/waffle1
 }

Reply via email to