diff options
Diffstat (limited to 'vcpkg/ports/qtvirtualkeyboard')
| -rw-r--r-- | vcpkg/ports/qtvirtualkeyboard/hunspell_include_path_fix.patch | 39 | ||||
| -rw-r--r-- | vcpkg/ports/qtvirtualkeyboard/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/qtvirtualkeyboard/vcpkg.json | 35 |
3 files changed, 105 insertions, 0 deletions
diff --git a/vcpkg/ports/qtvirtualkeyboard/hunspell_include_path_fix.patch b/vcpkg/ports/qtvirtualkeyboard/hunspell_include_path_fix.patch new file mode 100644 index 0000000..ff7c7b9 --- /dev/null +++ b/vcpkg/ports/qtvirtualkeyboard/hunspell_include_path_fix.patch @@ -0,0 +1,39 @@ +diff --git a/src/plugins/hunspell/module/hunspellworker_p.h b/src/plugins/hunspell/module/hunspellworker_p.h +index b79354429..a843bdfa6 100644 +--- a/src/plugins/hunspell/module/hunspellworker_p.h ++++ b/src/plugins/hunspell/module/hunspellworker_p.h +@@ -50,7 +50,7 @@ + #include <QLoggingCategory>
+ #include <QStringDecoder>
+ #include <QStringEncoder>
+-#include <hunspell/hunspell.h>
++#include <hunspell.h>
+ #include "hunspellwordlist_p.h"
+
+ QT_BEGIN_NAMESPACE
+diff --git a/config.tests/hunspell/main.cpp b/config.tests/hunspell/main.cpp +index 76f2cb3df..91906bc48 100644 +--- a/config.tests/hunspell/main.cpp ++++ b/config.tests/hunspell/main.cpp +@@ -1,7 +1,7 @@ + // Copyright (C) 2020 The Qt Company Ltd. + // SPDX-License-Identifier: BSD-3-Clause + +-#include <hunspell/hunspell.h> ++#include <hunspell.h> + + int main(int argc, char** argv) + { +diff --git a/src/plugins/hunspell/module/hunspellwordlist.cpp b/src/plugins/hunspell/module/hunspellwordlist.cpp +index ec55d4d3b..846af4726 100644 +--- a/src/plugins/hunspell/module/hunspellwordlist.cpp ++++ b/src/plugins/hunspell/module/hunspellwordlist.cpp +@@ -3,7 +3,7 @@ + + #include "hunspellwordlist_p.h" + #include <QtAlgorithms> +-#include <hunspell/hunspell.h> ++#include <hunspell.h> + + QT_BEGIN_NAMESPACE + namespace QtVirtualKeyboard { diff --git a/vcpkg/ports/qtvirtualkeyboard/portfile.cmake b/vcpkg/ports/qtvirtualkeyboard/portfile.cmake new file mode 100644 index 0000000..9a7cf7d --- /dev/null +++ b/vcpkg/ports/qtvirtualkeyboard/portfile.cmake @@ -0,0 +1,31 @@ +set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase") +include("${SCRIPT_PATH}/qt_install_submodule.cmake") + +set(${PORT}_PATCHES "hunspell_include_path_fix.patch") + +if("hunspell" IN_LIST FEATURES) + list(APPEND FEATURE_OPTIONS -DINPUT_vkb_hunspell:STRING=system) +else() + list(APPEND FEATURE_OPTIONS -DINPUT_vkb_hunspell=no) +endif() + +# +# To use t9write, overlay this port with the following line changed to: +# list(APPEND FEATURE_OPTIONS -DINPUT_vkb_handwriting=t9write) +# and add t9write as a dependency. +# +list(APPEND FEATURE_OPTIONS + -DINPUT_vkb_handwriting=no + -DCMAKE_DISABLE_FIND_PACKAGE_CerenceHwrAlphabetic:BOOL=ON + -DCMAKE_DISABLE_FIND_PACKAGE_CerenceHwrCjk:BOOL=ON + -DCMAKE_DISABLE_FIND_PACKAGE_CerenceXt9:BOOL=ON + -DCMAKE_DISABLE_FIND_PACKAGE_MyScript:BOOL=ON +) + +qt_install_submodule(PATCHES ${${PORT}_PATCHES} + CONFIGURE_OPTIONS ${FEATURE_OPTIONS} + -DINPUT_vkb_style:STRING=default + CONFIGURE_OPTIONS_RELEASE + CONFIGURE_OPTIONS_DEBUG -DFEATURE_vkb_record_trace_input=ON + -DFEATURE_vkb_sensitive_debug=ON + ) diff --git a/vcpkg/ports/qtvirtualkeyboard/vcpkg.json b/vcpkg/ports/qtvirtualkeyboard/vcpkg.json new file mode 100644 index 0000000..4a903c1 --- /dev/null +++ b/vcpkg/ports/qtvirtualkeyboard/vcpkg.json @@ -0,0 +1,35 @@ +{ + "name": "qtvirtualkeyboard", + "version": "6.9.1", + "description": "The Qt Virtual Keyboard project provides an input framework and reference keyboard frontend for Qt 6 on Linux Desktop/X11, Windows Desktop, and Boot2Qt targets.", + "homepage": "https://www.qt.io/", + "license": null, + "dependencies": [ + { + "name": "qtbase", + "default-features": false, + "features": [ + "gui" + ] + }, + { + "name": "qtdeclarative", + "default-features": false + }, + { + "name": "qtsvg", + "default-features": false + } + ], + "default-features": [ + "hunspell" + ], + "features": { + "hunspell": { + "description": "Use hunspell", + "dependencies": [ + "hunspell" + ] + } + } +} |