diff --git a/ports/kf5kcmutils/fix_cmake_config.patch b/ports/kf5kcmutils/fix_cmake_config.patch new file mode 100644 index 0000000000..0932e46ad3 --- /dev/null +++ b/ports/kf5kcmutils/fix_cmake_config.patch @@ -0,0 +1,28 @@ +diff --git a/KF5KCMUtilsConfig.cmake.in b/KF5KCMUtilsConfig.cmake.in +index 9871fba..ddcf6ea 100644 +--- a/KF5KCMUtilsConfig.cmake.in ++++ b/KF5KCMUtilsConfig.cmake.in +@@ -4,6 +4,20 @@ include(CMakeFindDependencyMacro) + find_dependency(KF5ConfigWidgets "@KF_DEP_VERSION@") + find_dependency(KF5Service "@KF_DEP_VERSION@") + ++if (NOT @BUILD_SHARED_LIBS@) ++ find_dependency(Qt5DBus "@REQUIRED_QT_VERSION@") ++ find_dependency(Qt5Qml "@REQUIRED_QT_VERSION@") ++ find_dependency(Qt5Quick "@REQUIRED_QT_VERSION@") ++ find_dependency(Qt5QuickWidgets "@REQUIRED_QT_VERSION@") ++ ++ find_dependency(KF5CoreAddons "@KF_DEP_VERSION@") ++ find_dependency(KF5GuiAddons "@KF_DEP_VERSION@") ++ find_dependency(KF5I18n "@KF_DEP_VERSION@") ++ find_dependency(KF5ItemViews "@KF_DEP_VERSION@") ++ find_dependency(KF5XmlGui "@KF_DEP_VERSION@") ++ find_dependency(KF5Declarative "@KF_DEP_VERSION@") ++endif() ++ + @PACKAGE_SETUP_AUTOMOC_VARIABLES@ + + include("${CMAKE_CURRENT_LIST_DIR}/KF5KCMUtilsTargets.cmake") +-- +GitLab + diff --git a/ports/kf5kcmutils/portfile.cmake b/ports/kf5kcmutils/portfile.cmake new file mode 100644 index 0000000000..58678e7142 --- /dev/null +++ b/ports/kf5kcmutils/portfile.cmake @@ -0,0 +1,30 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO KDE/kcmutils + REF v5.84.0 + SHA512 e5f6347416143775e660430d582db3a60153b75063e7079bb3743043132f2e2f0d01234229f5eb1b4678e29d6981d03bd826622924ec7e385900df9067676f5b + HEAD_REF master + PATCHES + fix_cmake_config.patch +) + +vcpkg_cmake_configure( + DISABLE_PARALLEL_CONFIGURE + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME KF5KCMUtils CONFIG_PATH lib/cmake/KF5KCMUtils) + +vcpkg_copy_pdbs() + +if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") + file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin") +endif() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +file(INSTALL "${SOURCE_PATH}/LICENSES/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright") \ No newline at end of file diff --git a/ports/kf5kcmutils/vcpkg.json b/ports/kf5kcmutils/vcpkg.json new file mode 100644 index 0000000000..ac0a6a3b97 --- /dev/null +++ b/ports/kf5kcmutils/vcpkg.json @@ -0,0 +1,34 @@ +{ + "name": "kf5kcmutils", + "version": "5.84.0", + "description": "Utilities for KDE System Settings modules", + "homepage": "https://api.kde.org/frameworks/kcmutils/html/index.html", + "dependencies": [ + "ecm", + { + "name": "gettext", + "host": true, + "features": [ + "tools" + ] + }, + "kf5configwidgets", + "kf5coreaddons", + "kf5declarative", + "kf5guiaddons", + "kf5i18n", + "kf5itemviews", + "kf5service", + "kf5xmlgui", + "qt5-base", + "qt5-tools", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index df343e6be7..67f3a54316 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3088,6 +3088,10 @@ "baseline": "5.84.0", "port-version": 1 }, + "kf5kcmutils": { + "baseline": "5.84.0", + "port-version": 0 + }, "kf5kio": { "baseline": "5.84.0", "port-version": 0 diff --git a/versions/k-/kf5kcmutils.json b/versions/k-/kf5kcmutils.json new file mode 100644 index 0000000000..98edb5c2b2 --- /dev/null +++ b/versions/k-/kf5kcmutils.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "7faf8114473ed03a92c1d5537e4c07cbf31b0ef2", + "version": "5.84.0", + "port-version": 0 + } + ] +}