mirror of https://github.com/microsoft/vcpkg.git
[kf6coreaddons] New port (#50687)
This commit is contained in:
parent
5478b06a12
commit
98ffe0c038
|
|
@ -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})
|
||||
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4f19cb4858befbc3035541a99ffc6547623fa056",
|
||||
"version": "6.23.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue