dev-util/meson: fix qt tests
authorWilliam Hubbs <williamh@gentoo.org>
Sat, 2 Mar 2019 23:04:02 +0000 (17:04 -0600)
committerWilliam Hubbs <williamh@gentoo.org>
Sat, 2 Mar 2019 23:06:16 +0000 (17:06 -0600)
Upstream only supports the qt tests if both qtcore and qtgui are
installed, so if only qtcore is installed, skip the tests.

Closes: https://bugs.gentoo.org/678664
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: William Hubbs <williamh@gentoo.org>
dev-util/meson/meson-0.49.2.ebuild

index 6149ebc1ee51c5d235f01f8974731ed084965f4b..31d9ff7f79ec82e172ccfc6542f9f12bd284c5d0 100644 (file)
@@ -42,12 +42,11 @@ python_prepare_all() {
 }
 
 src_test() {
-       if tc-is-gcc; then
-               # LTO fails for static libs because the bfd plugin in missing.
-               # Remove this workaround after sys-devel/gcc-config-2.0 is stable.
-               # https://bugs.gentoo.org/672706
-               tc-getPROG AR gcc-ar >/dev/null
-       fi
+       # This is needed because upstream doesn't support installing qtcore
+       # without qtgui in the test suite.
+       # https://bugs.gentoo.org/show_bug.cgi?id=678664
+       has_version 'dev-qt/qtcore' && ! has_version 'dev-qt/qtgui' &&
+               rm -rf "test cases/frameworks/4 qt"
        distutils-r1_src_test
 }