summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-05-20 11:24:44 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-05-20 11:25:14 +0200
commitfe52142ae965bc86fb8b1aeba3a45d31775b3493 (patch)
treea4365bb6c07f2c866c4bd885b061f52c63633a95 /net-libs/libmediawiki/files
parentdev-db/postgresql: amd64 stable wrt bug #618462 (diff)
downloadgentoo-fe52142ae965bc86fb8b1aeba3a45d31775b3493.tar.gz
gentoo-fe52142ae965bc86fb8b1aeba3a45d31775b3493.tar.bz2
gentoo-fe52142ae965bc86fb8b1aeba3a45d31775b3493.zip
net-libs/libmediawiki: Make tests optional
But since there are no tests executed, leave KDE_TEST unchanged. Gentoo-bug: 619010 Package-Manager: Portage-2.3.5, Repoman-2.3.1
Diffstat (limited to 'net-libs/libmediawiki/files')
-rw-r--r--net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch b/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch
new file mode 100644
index 000000000000..7b910e028a47
--- /dev/null
+++ b/net-libs/libmediawiki/files/libmediawiki-5.0.0_pre20170128-tests-optional.patch
@@ -0,0 +1,15 @@
+--- 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")