commit:     0b6185482410c69da7c6245ee703b912ffacd5f2
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Fri Sep  5 07:24:07 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Sep  6 14:32:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b618548

media-sound/strawberry: rm virtx, separate build/run phases for test

use QT_QPA_PLATFORM=offscreen for testsuite instead of virtualx
without X env, test_utils failed without error exit
separate build/run phase for test

Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/43672
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-sound/strawberry/strawberry-9999.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/media-sound/strawberry/strawberry-9999.ebuild 
b/media-sound/strawberry/strawberry-9999.ebuild
index de32a81150f5..d753826a2d54 100644
--- a/media-sound/strawberry/strawberry-9999.ebuild
+++ b/media-sound/strawberry/strawberry-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake optfeature virtualx xdg
+inherit cmake optfeature xdg
 
 DESCRIPTION="Modern music player and library organizer based on Clementine and 
Qt"
 HOMEPAGE="https://www.strawberrymusicplayer.org/";
@@ -104,8 +104,13 @@ src_configure() {
        cmake_src_configure
 }
 
+src_compile() {
+       cmake_src_compile
+       use test && cmake_build build_tests
+}
+
 src_test() {
-       virtx cmake_build run_strawberry_tests
+       QT_QPA_PLATFORM=offscreen cmake_build run_strawberry_tests
 }
 
 pkg_postinst() {

Reply via email to