[kf6coreaddons] New port (#50687)

This commit is contained in:
Daniele E. Domenichelli 2026-03-28 02:46:19 +01:00 committed by GitHub
parent 5478b06a12
commit 98ffe0c038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,40 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO KDE/kcoreaddons
REF "v${VERSION}"
SHA512 9c7248a265482832e64ab80e2793e157ad0d9011e31afaed2ebe5859ddf747cffdea1fc5cde26fd5884211b6bd10a1eebf553ae0749d2cc9c2cca89edb40f7f7
HEAD_REF master
)
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
vcpkg_check_features(
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
qml KCOREADDONS_USE_QML
INVERTED_FEATURES
translations KF_SKIP_PO_PROCESSING
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTING=OFF
-DBUILD_PYTHON_BINDINGS=OFF
-DKDE_INSTALL_QMLDIR=qml
${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/KF6CoreAddons)
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig(SKIP_CHECK)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/data/kf6")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/data/kf6")
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})

View File

@ -0,0 +1,45 @@
{
"name": "kf6coreaddons",
"version": "6.23.0",
"description": "Addons to QtCore",
"homepage": "https://invent.kde.org/frameworks/kcoreaddons",
"documentation": "https://api.kde.org/kcoreaddons-index.html",
"dependencies": [
"ecm",
{
"name": "qtbase",
"default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"qml": {
"description": "Build the QML plugin",
"dependencies": [
{
"name": "qtdeclarative",
"default-features": false
}
]
},
"translations": {
"description": "Install translations",
"dependencies": [
{
"name": "qttools",
"host": true,
"features": [
"linguist"
]
}
]
}
}
}

View File

@ -4440,6 +4440,10 @@
"baseline": "6.23.0",
"port-version": 0
},
"kf6coreaddons": {
"baseline": "6.23.0",
"port-version": 0
},
"kfr": {
"baseline": "6.3.1",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "4f19cb4858befbc3035541a99ffc6547623fa056",
"version": "6.23.0",
"port-version": 0
}
]
}