diff --git a/recipes-kf5/tier3/kdesignerplugin.inc b/recipes-kf5/tier3/kdesignerplugin.inc new file mode 100644 index 0000000..c4618d5 --- /dev/null +++ b/recipes-kf5/tier3/kdesignerplugin.inc @@ -0,0 +1,33 @@ +DESCRIPTION = "KDesignerPlugin" +HOMEPAGE = "https://api.kde.org/frameworks/kdesignerplugin/html/index.html" +LICENSE = "LGPL-2.1" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" +PR = "r0" + +DEPENDS = " \ + qtbase \ + kcoreaddons \ + kconfig \ + kdesignerplugin-native \ +" + +SRC_URI = " \ + git://anongit.kde.org/kdesignerplugin;nobranch=1 \ + file://0001-optional-kdoctools.patch \ +" +S = "${WORKDIR}/git" + +inherit cmake_kf5 + +FILES_${PN}-dev += " \ + ${datadir}/kf5/widgets/pics/*.png \ +" + +sysroot_stage_all_append_class-target () { + mkdir -p ${SYSROOT_DESTDIR}${bindir} + cp ${STAGING_BINDIR_NATIVE}/kgendesignerplugin ${SYSROOT_DESTDIR}/${bindir} +} + +FILES_${PN}-dev += " \ + ${bindir}/kgendesignerplugin \ +" diff --git a/recipes-kf5/tier3/kdesignerplugin/0001-optional-kdoctools.patch b/recipes-kf5/tier3/kdesignerplugin/0001-optional-kdoctools.patch new file mode 100644 index 0000000..efc76ee --- /dev/null +++ b/recipes-kf5/tier3/kdesignerplugin/0001-optional-kdoctools.patch @@ -0,0 +1,44 @@ +commit 3cc55f8cd9424abc4a8b1ba31599b8d14a65c56d +Author: Volker Krause +Date: Mon Jan 1 17:42:44 2018 +0100 + + Make kdoctools dependency optional + + Summary: Same as its done in other frameworks. This simplifies cross-compilation. + + Reviewers: #frameworks + + Tags: #frameworks + + Differential Revision: https://phabricator.kde.org/D9594 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b8429f3..e23c479 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -29,7 +29,7 @@ include(ECMPoQmTools) + + find_package(KF5CoreAddons ${KF5_DEP_VERSION} REQUIRED) + find_package(KF5Config ${KF5_DEP_VERSION} REQUIRED) +-find_package(KF5DocTools ${KF5_DEP_VERSION} REQUIRED) ++find_package(KF5DocTools ${KF5_DEP_VERSION}) + + find_package(KF5Completion ${KF5_DEP_VERSION}) + set_package_properties(KF5Completion PROPERTIES TYPE OPTIONAL +@@ -89,10 +89,14 @@ remove_definitions(-DQT_NO_CAST_FROM_ASCII) + + set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5DesignerPlugin") + +-add_subdirectory(docs) ++if (KF5DocTools_FOUND) ++ add_subdirectory(docs) ++endif() + if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po") + ecm_install_po_files_as_qm(po) +- kdoctools_install(po) ++ if (KF5DocTools_FOUND) ++ kdoctools_install(po) ++ endif() + endif() + + add_subdirectory(src) diff --git a/recipes-kf5/tier3/kdesignerplugin_5.41.0.bb b/recipes-kf5/tier3/kdesignerplugin_5.41.0.bb new file mode 100644 index 0000000..56169bb --- /dev/null +++ b/recipes-kf5/tier3/kdesignerplugin_5.41.0.bb @@ -0,0 +1,2 @@ +require ${PN}.inc +SRCREV = "v${PV}"