commit:     4a8ed1e774562aad427c9b3190f9633ce1324ff4
Author:     Hector Martin <marcan <AT> marcan <DOT> st>
AuthorDate: Tue Jun 23 06:56:45 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Jul 19 10:43:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a8ed1e7

media-sound/supercollider: fix tests on 3.11.0

Qt wants X11 by default, so tell it to run offscreen instead.

Closes: https://bugs.gentoo.org/656436
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Hector Martin <marcan <AT> marcan.st>
Closes: https://github.com/gentoo/gentoo/pull/16382
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-sound/supercollider/supercollider-3.11.0.ebuild | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/media-sound/supercollider/supercollider-3.11.0.ebuild 
b/media-sound/supercollider/supercollider-3.11.0.ebuild
index 3b3865ba3a0..c4f164b9dc1 100644
--- a/media-sound/supercollider/supercollider-3.11.0.ebuild
+++ b/media-sound/supercollider/supercollider-3.11.0.ebuild
@@ -116,6 +116,11 @@ src_install() {
        use vim && newdoc editors/scvim/README.md README.vim
 }
 
+src_test() {
+       export QT_QPA_PLATFORM=offscreen
+       cmake_src_test
+}
+
 pkg_postinst() {
        einfo "Notice: SuperCollider is not very intuitive to get up and 
running."
        einfo "The best course of action to make sure that the installation was"

Reply via email to