commit:     187b4281a273c9d358a1dbd8927956e7a5ddce23
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 13 19:28:21 2019 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Thu Jun 13 19:31:26 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=187b4281

x11-apps/igt-gpu-tools: Use meson_feature function

Closes: https://bugs.gentoo.org/687880
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild 
b/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild
index 81fff23b3e7..8662c0102ba 100644
--- a/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild
+++ b/x11-apps/igt-gpu-tools/igt-gpu-tools-9999.ebuild
@@ -88,16 +88,16 @@ src_configure() {
        use overlay && use X && overlay_backends+="x,"
 
        local emesonargs=(
-               -Dbuild_chamelium=$(usex chamelium true false)
-               -Dbuild_docs=$(usex doc true false)
-               -Dbuild_man=$(usex man true false)
-               -Dbuild_overlay=$(usex overlay true false)
-               -Dbuild_runner=$(usex runner true false)
-               -Dbuild_tests=$(usex doc true false) # Test build is required 
for docs
+               $(meson_feature chamelium build_chamelium)
+               $(meson_feature doc build_docs)
+               $(meson_feature man build_man)
+               $(meson_feature overlay build_overlay)
+               $(meson_feature runner build_runner)
+               $(meson_feature doc build_tests) # Test build is required for 
docs
+               $(meson_feature valgrind with_valgrind)
+               $(meson_feature unwind with_libunwind)
                -Doverlay_backends=${overlay_backends%?}
                -Dwith_libdrm=${gpus%?}
-               -Dwith_libunwind=$(usex unwind true false)
-               -Dwith_valgrind=$(usex valgrind true false)
        )
        meson_src_configure
 }

Reply via email to