diff --git a/recipes-kf5/tier2/kpackage.inc b/recipes-kf5/tier2/kpackage.inc index 3b7bf8b..6488789 100644 --- a/recipes-kf5/tier2/kpackage.inc +++ b/recipes-kf5/tier2/kpackage.inc @@ -1,26 +1,22 @@ DESCRIPTION = "KPackage" HOMEPAGE = "https://api.kde.org/frameworks/kpackage/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1 \ " PR = "r0" DEPENDS = " \ qtbase \ karchive \ kcoreaddons \ - ki18n \ kpackage-native \ " -SRC_URI = "git://anongit.kde.org/kpackage;nobranch=1" +SRC_URI = " \ + git://anongit.kde.org/kpackage;nobranch=1 \ + file://0001-kf5-host-tooling-support.diff \ +" S = "${WORKDIR}/git" inherit cmake_kf5 -inherit gettext -inherit python3native - -sysroot_stage_all_append_class-target() { - mkdir -p ${SYSROOT_DESTDIR}${bindir} - cp ${STAGING_BINDIR_NATIVE}/kpackagetool5 ${SYSROOT_DESTDIR}/${bindir} -} +inherit ki18n diff --git a/recipes-kf5/tier2/kpackage/0001-kf5-host-tooling-support.diff b/recipes-kf5/tier2/kpackage/0001-kf5-host-tooling-support.diff new file mode 100644 index 0000000..939dd0d --- /dev/null +++ b/recipes-kf5/tier2/kpackage/0001-kf5-host-tooling-support.diff @@ -0,0 +1,44 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 8cf8412..c2d9811 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -123,6 +123,11 @@ install(EXPORT KF5PackageTargets + FILE KF5PackageTargets.cmake + NAMESPACE KF5:: + COMPONENT Devel) ++install(EXPORT KF5PackageToolsTargets ++ DESTINATION "${CMAKECONFIG_INSTALL_DIR}" ++ FILE KF5PackageToolsTargets.cmake ++ NAMESPACE KF5:: ++ COMPONENT Devel) + + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/kpackage_version.h + DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel ) +diff --git a/KF5PackageConfig.cmake.in b/KF5PackageConfig.cmake.in +index 0009c46..40c7dfe 100644 +--- a/KF5PackageConfig.cmake.in ++++ b/KF5PackageConfig.cmake.in +@@ -3,6 +3,13 @@ + # Any changes in this ".cmake" file will be overwritten by CMake, the source is the ".cmake.in" file. + + include("${CMAKE_CURRENT_LIST_DIR}/KF5PackageTargets.cmake") ++if (CMAKE_CROSSCOMPILING AND KF5_HOST_TOOLING) ++ find_file(KPACKAGE_TARGETSFILE KF5Package/KF5PackageToolsTargets.cmake PATHS ${KF5_HOST_TOOLING} ${CMAKE_CURRENT_LIST_DIR} NO_DEFAULT_PATH) ++ include("${KPACKAGE_TARGETSFILE}") ++else() ++ include("${CMAKE_CURRENT_LIST_DIR}/KF5PackageToolsTargets.cmake") ++endif() ++ + @PACKAGE_INCLUDE_QCHTARGETS@ + + set(Package_INSTALL_PREFIX "@PACKAGE_CMAKE_INSTALL_PREFIX@") +diff --git a/src/kpackagetool/CMakeLists.txt b/src/kpackagetool/CMakeLists.txt +index 58533f9..60e25dc 100644 +--- a/src/kpackagetool/CMakeLists.txt ++++ b/src/kpackagetool/CMakeLists.txt +@@ -13,4 +13,4 @@ add_executable(KF5::kpackagetool5 ALIAS kpackagetool5) + target_link_libraries(kpackagetool5 KF5::Archive KF5::Package KF5::I18n KF5::CoreAddons) + ecm_mark_nongui_executable(kpackagetool5) + +-install(TARGETS kpackagetool5 EXPORT KF5PackageTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) ++install(TARGETS kpackagetool5 EXPORT KF5PackageToolsTargets ${KF5_INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/recipes-kf5/tier3/kcmutils.inc b/recipes-kf5/tier3/kcmutils.inc index 5b9264e..4f55155 100644 --- a/recipes-kf5/tier3/kcmutils.inc +++ b/recipes-kf5/tier3/kcmutils.inc @@ -1,26 +1,27 @@ DESCRIPTION = "KCMUtils" HOMEPAGE = "https://api.kde.org/frameworks/kcmutils/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" PR = "r0" DEPENDS = " \ qtbase \ kitemviews \ kconfigwidgets \ kconfig-native \ kauth-native \ kcoreaddons \ kcoreaddons-native \ kiconthemes \ kservice \ kxmlgui \ kdeclarative \ kpackage \ + kpackage-native \ " SRC_URI = "git://anongit.kde.org/kcmutils;nobranch=1" S = "${WORKDIR}/git" inherit cmake_kf5 inherit ki18n diff --git a/recipes-kf5/tier3/kdeclarative.inc b/recipes-kf5/tier3/kdeclarative.inc index 381d3de..2127eb8 100644 --- a/recipes-kf5/tier3/kdeclarative.inc +++ b/recipes-kf5/tier3/kdeclarative.inc @@ -1,35 +1,36 @@ DESCRIPTION = "KDeclarative" HOMEPAGE = "https://api.kde.org/frameworks/kdeclarative/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" PR = "r0" DEPENDS = " \ qtbase \ qtdeclarative \ kconfig \ kconfig-native \ kiconthemes \ kio \ kauth-native \ kwidgetsaddons \ kwindowsystem \ kglobalaccel \ kguiaddons \ kpackage \ + kpackage-native \ libepoxy \ " SRC_URI = "git://anongit.kde.org/kdeclarative;nobranch=1" S = "${WORKDIR}/git" inherit cmake_kf5 inherit ki18n FILES_${PN} += " \ ${libdir}/qml/org/kde \ " RDEPENDS_${PN} += " \ qtdeclarative-qmlplugins \ " diff --git a/recipes-kf5/tier3/krunner.inc b/recipes-kf5/tier3/krunner.inc index 0b3f91f..9163628 100644 --- a/recipes-kf5/tier3/krunner.inc +++ b/recipes-kf5/tier3/krunner.inc @@ -1,30 +1,31 @@ DESCRIPTION = "KRunner" HOMEPAGE = "https://api.kde.org/frameworks/krunner/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" PR = "r0" DEPENDS = " \ qtbase \ qtdeclarative \ kconfig \ kconfig-native \ kcoreaddons \ kcoreaddons-native \ kio \ kauth-native \ kservice \ plasma-framework \ + kpackage-native \ solid \ threadweaver \ " SRC_URI = "git://anongit.kde.org/krunner;nobranch=1" S = "${WORKDIR}/git" inherit cmake_kf5 inherit ki18n FILES_${PN} += " \ ${libdir}/qml/org/kde/runnermodel/* \ " diff --git a/recipes-kf5/tier3/plasma-framework.inc b/recipes-kf5/tier3/plasma-framework.inc index b380aff..e92794d 100644 --- a/recipes-kf5/tier3/plasma-framework.inc +++ b/recipes-kf5/tier3/plasma-framework.inc @@ -1,60 +1,61 @@ DESCRIPTION = "Plama Framework" HOMEPAGE = "https://api.kde.org/plasma-framework/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" PR = "r0" DEPENDS = " \ qtbase \ kactivities \ karchive \ kconfig \ kconfig-native \ kconfigwidgets \ kdbusaddons \ kdeclarative \ kglobalaccel \ kguiaddons \ kiconthemes \ kio \ kcoreaddons-native \ kauth-native \ kservice \ kwindowsystem \ kxmlgui \ knotifications \ kpackage \ + kpackage-native \ kwayland \ kirigami \ " SRC_URI = " \ git://anongit.kde.org/plasma-framework;nobranch=1 \ " S = "${WORKDIR}/git" inherit cmake_kf5 inherit ki18n inherit kdoctools FILES_${PN} += " \ ${libdir}/plugins/*.so \ ${libdir}/plugins/kpackage/packagestructure/*.so \ ${libdir}/plugins/plasma/scriptengines/*.so \ ${libdir}/qml/org/kde/plasma/accessdenied/* \ ${libdir}/qml/org/kde/plasma \ ${libdir}/qml/org/kde/kirigami.2 \ ${libdir}/qml/QtQuick/Controls.2/Plasma \ ${libdir}/qml/QtQuick/Controls/Styles/Plasma \ ${datadir}/plasma/services/*.operations \ ${datadir}/plasma/desktoptheme/air/* \ ${datadir}/plasma/desktoptheme/air/*/* \ ${datadir}/plasma/desktoptheme/breeze-dark/* \ ${datadir}/plasma/desktoptheme/breeze-dark/*/* \ ${datadir}/plasma/desktoptheme/breeze-light/* \ ${datadir}/plasma/desktoptheme/breeze-light/*/* \ ${datadir}/plasma/desktoptheme/default/* \ ${datadir}/plasma/desktoptheme/default/*/* \ ${datadir}/plasma/desktoptheme/oxygen/* \ ${datadir}/plasma/desktoptheme/oxygen/*/* \ " diff --git a/recipes-kf5/tier4/frameworkintegration.inc b/recipes-kf5/tier4/frameworkintegration.inc index 4f8b7ce..e673e76 100644 --- a/recipes-kf5/tier4/frameworkintegration.inc +++ b/recipes-kf5/tier4/frameworkintegration.inc @@ -1,32 +1,33 @@ DESCRIPTION = "Workspace and cross-framework integration plugins" HOMEPAGE = "https://api.kde.org/frameworks/frameworkintegration/html/index.html" LICENSE = "LGPL-2.1" LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" PR = "r0" DEPENDS = " \ qtbase \ kconfig \ kconfig-native \ kconfigwidgets \ kcoreaddons-native \ kauth-native \ kiconthemes \ knotifications \ kwidgetsaddons \ kpackage \ + kpackage-native \ knewstuff \ " SRC_URI = " \ git://anongit.kde.org/${BPN};nobranch=1 \ " S = "${WORKDIR}/git" inherit cmake_kf5 inherit ki18n FILES_${PN} += " \ ${libdir}/plugins/kf5/FrameworkIntegrationPlugin.so \ ${datadir}/kf5/infopage \ "