Enable building of translations for target recipes

This commit is contained in:
Volker Krause
2017-09-03 19:23:42 +02:00
parent 29399b9d3b
commit 5a24d7b849
3 changed files with 31 additions and 3 deletions

View File

@@ -5,10 +5,10 @@ EXTRA_OECMAKE += " \
-DBUILD_TESTING=OFF \
"
DEPENDS += "extra-cmake-modules"
DEPENDS += "extra-cmake-modules qttools-native"
# FIXME: using tags gives us translations, translations require lrelease/lconvert host tools, the ecm recipe can't deal with that yet...
do_configure_prepend() {
# don't bother with translations for host tools
do_configure_class-native_prepend() {
rm -rf ${S}/po
}

View File

@@ -27,6 +27,7 @@ DEPENDS = " \
SRC_URI = " \
git://anongit.kde.org/plasma-framework;nobranch=1 \
file://0001-optional-kdoctools.patch \
"
S = "${WORKDIR}/git"

View File

@@ -0,0 +1,27 @@
commit d3fdf43c075f64610244ba93f2af6a1800b81ce3
Author: Volker Krause <vkrause@kde.org>
Date: Sun Sep 3 19:15:18 2017 +0200
Fix build without KDocTools
Reviewers: #frameworks
Tags: #frameworks
Differential Revision: https://phabricator.kde.org/D7680
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b6932baa8..e1760a1c4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,7 +160,9 @@ endif()
add_definitions(-DTRANSLATION_DOMAIN=\"libplasma5\")
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ki18n_install(po)
- kdoctools_install(po)
+ if (KF5DocTools_FOUND)
+ kdoctools_install(po)
+ endif()
endif()
add_subdirectory(src)