commit:     4e6e6d882d116ddbd9d7cb9f5d37664f109d17a6
Author:     Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Mon Aug 25 11:25:25 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Aug 27 19:06:19 2025 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=4e6e6d88

media-gfx/krita: don't build tests for libs/koplugin when not testing

Signed-off-by: Lucio Sauer <watermanpaint <AT> posteo.net>
Part-of: https://github.com/gentoo/kde/pull/1069
Closes: https://github.com/gentoo/kde/pull/1069
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../krita/files/krita-5.3.0-tests-optional.patch   | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/media-gfx/krita/files/krita-5.3.0-tests-optional.patch 
b/media-gfx/krita/files/krita-5.3.0-tests-optional.patch
index c21b9127b7..85f1b4adca 100644
--- a/media-gfx/krita/files/krita-5.3.0-tests-optional.patch
+++ b/media-gfx/krita/files/krita-5.3.0-tests-optional.patch
@@ -88,3 +88,29 @@ index 88c0516360..01f2383ddb 100644
  
  add_subdirectory(libs)
  add_subdirectory(plugins)
+From e0ba479d6e7a1a34ad9fc984605aef2872d653da Mon Sep 17 00:00:00 2001
+From: Lucio Sauer <[email protected]>
+Date: Mon, 25 Aug 2025 13:20:34 +0200
+Subject: [PATCH] libs/koplugin: don't build tests when not testing
+
+Signed-off-by: Lucio Sauer <[email protected]>
+---
+ libs/koplugin/CMakeLists.txt | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/libs/koplugin/CMakeLists.txt b/libs/koplugin/CMakeLists.txt
+index c3c6368..720ebe6 100644
+--- a/libs/koplugin/CMakeLists.txt
++++ b/libs/koplugin/CMakeLists.txt
+@@ -28,4 +28,6 @@ set_target_properties(kritaplugin PROPERTIES
+ )
+ install(TARGETS kritaplugin ${INSTALL_TARGETS_DEFAULT_ARGS} )
+ 
+-add_subdirectory(tests)
+\ No newline at end of file
++if (BUILD_TESTING)
++    add_subdirectory(tests)
++endif()
+-- 
+2.49.1
+

Reply via email to