diff options
Diffstat (limited to 'app-editors/texworks/files/texworks-0.6.8-optional-qtscript.patch')
-rw-r--r-- | app-editors/texworks/files/texworks-0.6.8-optional-qtscript.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-editors/texworks/files/texworks-0.6.8-optional-qtscript.patch b/app-editors/texworks/files/texworks-0.6.8-optional-qtscript.patch new file mode 100644 index 000000000000..460c4f4f7e2d --- /dev/null +++ b/app-editors/texworks/files/texworks-0.6.8-optional-qtscript.patch @@ -0,0 +1,25 @@ +It doesn't work like that. + +--- a/CMakeLists.txt 2023-02-18 11:42:11.000000000 +0100 ++++ b/CMakeLists.txt 2023-10-21 20:00:29.144638825 +0200 +@@ -281,9 +281,11 @@ + set(QT_VERSION_PATCH "${Qt6_VERSION_PATCH}") + else () + # Check for Qt5 +- find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui UiTools Concurrent Xml LinguistTools Qml OPTIONAL_COMPONENTS Script ScriptTools) ++ find_package(Qt5 REQUIRED COMPONENTS Core Widgets Gui UiTools Concurrent Xml LinguistTools Qml) + set(QT_LIBRARIES Qt5::Core Qt5::Widgets Qt5::Gui Qt5::UiTools Qt5::Concurrent Qt5::Xml Qt5::Qml) + ++ find_package(Qt5Script) ++ find_package(Qt5ScriptTools) + if (Qt5Script_FOUND AND Qt5ScriptTools_FOUND) + list(APPEND QT_LIBRARIES Qt5::ScriptTools Qt5::Script) + set(WITH_QTSCRIPT ON) +@@ -311,7 +313,6 @@ + set(QT_VERSION_MAJOR "${Qt5_VERSION_MAJOR}") + set(QT_VERSION_MINOR "${Qt5_VERSION_MINOR}") + set(QT_VERSION_PATCH "${Qt5_VERSION_PATCH}") +- set(WITH_QTSCRIPT ON) + endif () + + # Expose the major version number of Qt to the preprocessor. This is necessary |