But since there are no tests executed, leave KDE_TEST unchanged.
Gentoo-bug: 619010
Package-Manager: Portage-2.3.5, Repoman-2.3.1
--- /dev/null
+--- a/CMakeLists.txt 2017-05-20 11:13:08.095098473 +0200
++++ b/CMakeLists.txt 2017-05-20 11:18:00.993712729 +0200
+@@ -45,8 +45,10 @@
+
+ # Subdirectories
+ add_subdirectory(src)
+-add_subdirectory(autotests)
+-add_subdirectory(tests)
++if(BUILD_TESTING)
++ add_subdirectory(autotests)
++ add_subdirectory(tests)
++endif()
+
+ # Create a Config.cmake and a ConfigVersion.cmake file and install them
+ set(CMAKECONFIG_INSTALL_DIR "${CMAKECONFIG_INSTALL_PREFIX}/KF5MediaWiki")
RDEPEND="${DEPEND}
!net-libs/libmediawiki:4
"
+
+PATCHES=( "${FILESDIR}/${P}-tests-optional.patch" )