[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [yocto-meta-kf5] recipes-kf5: Add KTextWidgets recipe
From:       Volker Krause <null () kde ! org>
Date:       2017-07-31 18:47:00
Message-ID: E1dcFiW-0008SN-Ve () code ! kde ! org
[Download RAW message or body]

Git commit dc800d21a975868f06362ece78594305bf376cb8 by Volker Krause.
Committed on 31/07/2017 at 18:47.
Pushed by vkrause into branch 'master'.

Add KTextWidgets recipe

Reviewers: cordlandwehr

Reviewed By: cordlandwehr

Differential Revision: https://phabricator.kde.org/D7009

M  +1    -0    recipes-kf5/tier1/sonnet.inc
A  +33   -0    recipes-kf5/tier1/sonnet/0002-unexport-helpers.patch
A  +23   -0    recipes-kf5/tier3/ktextwidgets.inc
A  +2    -0    recipes-kf5/tier3/ktextwidgets_5.36.0.bb

https://commits.kde.org/yocto-meta-kf5/dc800d21a975868f06362ece78594305bf376cb8

diff --git a/recipes-kf5/tier1/sonnet.inc b/recipes-kf5/tier1/sonnet.inc
index 8599e34..9e355fa 100644
--- a/recipes-kf5/tier1/sonnet.inc
+++ b/recipes-kf5/tier1/sonnet.inc
@@ -9,6 +9,7 @@ DEPENDS = "qtbase sonnet-native qtbase-native"
 
 SRC_URI = "git://anongit.kde.org/sonnet;nobranch=1 \
     file://0001-no-widgets.patch \
+    file://0002-unexport-helpers.patch \
 "
 S = "${WORKDIR}/git"
 
diff --git a/recipes-kf5/tier1/sonnet/0002-unexport-helpers.patch \
b/recipes-kf5/tier1/sonnet/0002-unexport-helpers.patch new file mode 100644
index 0000000..4e8e75b
--- /dev/null
+++ b/recipes-kf5/tier1/sonnet/0002-unexport-helpers.patch
@@ -0,0 +1,33 @@
+commit 4104b2ea0db4d65d0cb2fcac6db9e343df5f2d9b
+Author: Volker Krause <vkrause@kde.org>
+Date:   Sun Jul 30 21:37:48 2017 +0200
+
+    Don't export internal helper executables
+    
+    Summary:
+    Exporting the executables will make the cmake config file check for their
+    presence when used, which isn't really necessary, and is actually a problem
+    for cross-compilation, where the helper executables don't exist for the
+    target but for the host.
+    
+    Reviewers: #frameworks, cordlandwehr
+    
+    Tags: #frameworks
+    
+    Differential Revision: https://phabricator.kde.org/D7008
+
+diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
+index 100b05f..d86cde1 100644
+--- a/data/CMakeLists.txt
++++ b/data/CMakeLists.txt
+@@ -11,8 +11,8 @@ ecm_mark_nongui_executable(gentrigrams)
+ 
+ TARGET_LINK_LIBRARIES(parsetrigrams PUBLIC Qt5::Core)
+ TARGET_LINK_LIBRARIES(gentrigrams PUBLIC Qt5::Core KF5::SonnetCore)
+-INSTALL(TARGETS parsetrigrams EXPORT KF5SonnetTargets \
${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) +-INSTALL(TARGETS gentrigrams EXPORT \
KF5SonnetTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) ++INSTALL(TARGETS parsetrigrams \
${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) ++INSTALL(TARGETS gentrigrams \
${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) + 
+ cmake_policy(SET CMP0026 OLD) # FIXME: make this work with CMP0026 set to NEW
+ if(CMAKE_CROSSCOMPILING AND PARSETRIGRAMS_EXECUTABLE)
diff --git a/recipes-kf5/tier3/ktextwidgets.inc b/recipes-kf5/tier3/ktextwidgets.inc
new file mode 100644
index 0000000..aebbe65
--- /dev/null
+++ b/recipes-kf5/tier3/ktextwidgets.inc
@@ -0,0 +1,23 @@
+DESCRIPTION = "KTextWidgets"
+HOMEPAGE = "https://api.kde.org/frameworks/ktextwidgets/html/index.html"
+LICENSE = "LGPL-2.1"
+LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
+PR = "r0"
+
+DEPENDS = "qtbase kcompletion kconfig kconfig-native kconfigwidgets ki18n \
kiconthemes kservice kwidgetsaddons kwindowsystem sonnet kcoreaddons-native" +
+SRC_URI = "git://anongit.kde.org/ktextwidgets;nobranch=1"
+S = "${WORKDIR}/git"
+
+inherit cmake_kf5
+inherit gettext
+inherit python3native
+
+FILES_${PN} += " \
+  ${datadir}/kservicetypes5/*.desktop \
+"
+
+FILES_${PN}-dev += " \
+    ${libdir}/cmake/KF5TextWidgets/*.cmake \
+    ${prefix}/mkspecs/modules/qt_KTextWidgets.pri \
+"
diff --git a/recipes-kf5/tier3/ktextwidgets_5.36.0.bb \
b/recipes-kf5/tier3/ktextwidgets_5.36.0.bb new file mode 100644
index 0000000..56169bb
--- /dev/null
+++ b/recipes-kf5/tier3/ktextwidgets_5.36.0.bb
@@ -0,0 +1,2 @@
+require ${PN}.inc
+SRCREV = "v${PV}"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic