early-access version 2853
This commit is contained in:
12
externals/vcpkg/ports/kf5guiaddons/fix_cmake.patch
vendored
Executable file
12
externals/vcpkg/ports/kf5guiaddons/fix_cmake.patch
vendored
Executable file
@@ -0,0 +1,12 @@
|
||||
diff --git a/KF5GuiAddonsConfig.cmake.in b/KF5GuiAddonsConfig.cmake.in
|
||||
index ae17f6b..34e41bd 100644
|
||||
--- a/KF5GuiAddonsConfig.cmake.in
|
||||
+++ b/KF5GuiAddonsConfig.cmake.in
|
||||
@@ -10,6 +10,7 @@ if (NOT @BUILD_SHARED_LIBS@)
|
||||
find_dependency(Qt5X11Extras @REQUIRED_QT_VERSION@)
|
||||
endif()
|
||||
if (@WITH_WAYLAND@)
|
||||
+ set(QtWaylandScanner_EXECUTABLE "${PACKAGE_PREFIX}/tools/qt5-wayland/bin/qtwaylandscanner" CACHE STRING "QtWaylandScanner workaround")
|
||||
find_dependency(Wayland REQUIRED Client)
|
||||
find_dependency(Qt5WaylandClient @REQUIRED_QT_VERSION@)
|
||||
find_dependency(QtWaylandScanner)
|
||||
44
externals/vcpkg/ports/kf5guiaddons/portfile.cmake
vendored
Executable file
44
externals/vcpkg/ports/kf5guiaddons/portfile.cmake
vendored
Executable file
@@ -0,0 +1,44 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO KDE/kguiaddons
|
||||
REF v5.89.0
|
||||
SHA512 062a8da3a5d3f9da3288031f8e694fd6adb5b4f404071f2d66c7f4d5b15cbf10fedff58d9db928e45a052b69abbe38d7de57349638d8bb9a229798a553e3b9ed
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix_cmake.patch # https://github.com/microsoft/vcpkg/issues/17607#issuecomment-831518812
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
wayland WITH_WAYLAND
|
||||
)
|
||||
|
||||
if("wayland" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_LINUX)
|
||||
message(FATAL_ERROR "Feature wayland is only supported on Linux.")
|
||||
endif()
|
||||
|
||||
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
||||
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DBUILD_TESTING=OFF
|
||||
-DQtWaylandScanner_EXECUTABLE=${CURRENT_INSTALLED_DIR}/tools/qt5-wayland/bin/qtwaylandscanner
|
||||
${FEATURE_OPTIONS}
|
||||
MAYBE_UNUSED_VARIABLES
|
||||
QtWaylandScanner_EXECUTABLE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5GuiAddons CONFIG_PATH lib/cmake/KF5GuiAddons)
|
||||
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")
|
||||
49
externals/vcpkg/ports/kf5guiaddons/vcpkg.json
vendored
Executable file
49
externals/vcpkg/ports/kf5guiaddons/vcpkg.json
vendored
Executable file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "kf5guiaddons",
|
||||
"version": "5.89.0",
|
||||
"description": "Addons to QtGui",
|
||||
"homepage": "https://api.kde.org/frameworks/kguiaddons/html/index.html",
|
||||
"dependencies": [
|
||||
"ecm",
|
||||
"qt5-tools",
|
||||
{
|
||||
"name": "qt5-winextras",
|
||||
"platform": "windows"
|
||||
},
|
||||
{
|
||||
"name": "qt5-x11extras",
|
||||
"platform": "linux"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"defaults"
|
||||
],
|
||||
"features": {
|
||||
"defaults": {
|
||||
"description": "Default features",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "kf5guiaddons",
|
||||
"features": [
|
||||
"wayland"
|
||||
],
|
||||
"platform": "linux"
|
||||
}
|
||||
]
|
||||
},
|
||||
"wayland": {
|
||||
"description": "Linux-only. Build with support for KeySequenceEditor inhibiting shortcuts on Wayland",
|
||||
"dependencies": [
|
||||
"qt5-wayland"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user