diff options
author | Mike Gilbert <floppym@gentoo.org> | 2019-03-03 13:22:08 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-03-03 13:36:48 -0500 |
commit | 498a117389dad49f045a17295a80de8a4aa12bb7 (patch) | |
tree | 6770f099199eba3513f3d441217a518c0a696084 /dev-util/meson | |
parent | dev-libs/libressl: drop old versions (diff) | |
download | gentoo-498a117389dad49f045a17295a80de8a4aa12bb7.tar.gz gentoo-498a117389dad49f045a17295a80de8a4aa12bb7.tar.bz2 gentoo-498a117389dad49f045a17295a80de8a4aa12bb7.zip |
dev-util/meson: skip testing when qtcore is installed without qtgui
Closes: https://bugs.gentoo.org/678664
Package-Manager: Portage-2.3.59_p2, Repoman-2.3.12_p67
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-util/meson')
-rw-r--r-- | dev-util/meson/meson-0.49.2.ebuild | 7 | ||||
-rw-r--r-- | dev-util/meson/meson-9999.ebuild | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/dev-util/meson/meson-0.49.2.ebuild b/dev-util/meson/meson-0.49.2.ebuild index c7cd92e8d1f5..89b176910cb5 100644 --- a/dev-util/meson/meson-0.49.2.ebuild +++ b/dev-util/meson/meson-0.49.2.ebuild @@ -42,7 +42,12 @@ python_prepare_all() { } src_test() { - distutils-r1_src_test + tc-export PKG_CONFIG + if ${PKG_CONFIG} --exists Qt5Core && ! ${PKG_CONFIG} --exists Qt5Gui; then + ewarn "Found Qt5Core but not Qt5Gui; skipping tests" + else + distutils-r1_src_test + fi } python_test() { diff --git a/dev-util/meson/meson-9999.ebuild b/dev-util/meson/meson-9999.ebuild index c7cd92e8d1f5..89b176910cb5 100644 --- a/dev-util/meson/meson-9999.ebuild +++ b/dev-util/meson/meson-9999.ebuild @@ -42,7 +42,12 @@ python_prepare_all() { } src_test() { - distutils-r1_src_test + tc-export PKG_CONFIG + if ${PKG_CONFIG} --exists Qt5Core && ! ${PKG_CONFIG} --exists Qt5Gui; then + ewarn "Found Qt5Core but not Qt5Gui; skipping tests" + else + distutils-r1_src_test + fi } python_test() { |