aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/kf5parts
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/kf5parts
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/kf5parts')
-rw-r--r--vcpkg/ports/kf5parts/portfile.cmake41
-rw-r--r--vcpkg/ports/kf5parts/vcpkg.json37
2 files changed, 78 insertions, 0 deletions
diff --git a/vcpkg/ports/kf5parts/portfile.cmake b/vcpkg/ports/kf5parts/portfile.cmake
new file mode 100644
index 0000000..57122d2
--- /dev/null
+++ b/vcpkg/ports/kf5parts/portfile.cmake
@@ -0,0 +1,41 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO KDE/kparts
+ REF "v${VERSION}"
+ SHA512 07ba359faf15f6bc398b64e0534842532e1a3ade94caa6b8dc7886417aa49526b7e0f54bd29805e64b8661f4c402e022bd211a932ee13b0ac4b97e516ae6dbef
+ HEAD_REF master
+)
+
+# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
+file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
+
+# See ECM/kde-modules/KDEInstallDirs5.cmake
+# Relocate .desktop files for next ports
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
+ list(APPEND KDE_OPTIONS
+ -DKDE_INSTALL_KSERVICES5DIR="share/kservices5"
+ -DKDE_INSTALL_KSERVICETYPES5DIR="share/kservicetypes5"
+ )
+endif()
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ ${FEATURE_OPTIONS}
+ ${KDE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Parts CONFIG_PATH lib/cmake/KF5Parts)
+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(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
+vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
diff --git a/vcpkg/ports/kf5parts/vcpkg.json b/vcpkg/ports/kf5parts/vcpkg.json
new file mode 100644
index 0000000..101c888
--- /dev/null
+++ b/vcpkg/ports/kf5parts/vcpkg.json
@@ -0,0 +1,37 @@
+{
+ "name": "kf5parts",
+ "version": "5.98.0",
+ "port-version": 1,
+ "description": "Plugin framework for user interface component",
+ "homepage": "https://api.kde.org/frameworks/kparts/html/index.html",
+ "license": "LGPL-2.0-or-later",
+ "dependencies": [
+ "ecm",
+ {
+ "name": "gettext",
+ "host": true,
+ "features": [
+ "tools"
+ ]
+ },
+ "kf5config",
+ "kf5coreaddons",
+ "kf5i18n",
+ "kf5iconthemes",
+ "kf5jobwidgets",
+ "kf5kio",
+ "kf5service",
+ "kf5textwidgets",
+ "kf5widgetsaddons",
+ "kf5xmlgui",
+ "qt5-base",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}