diff options
Diffstat (limited to 'app-office/lyx/files/lyx-2.4.0-fix-hunspell.patch')
-rw-r--r-- | app-office/lyx/files/lyx-2.4.0-fix-hunspell.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app-office/lyx/files/lyx-2.4.0-fix-hunspell.patch b/app-office/lyx/files/lyx-2.4.0-fix-hunspell.patch new file mode 100644 index 000000000000..265049b46631 --- /dev/null +++ b/app-office/lyx/files/lyx-2.4.0-fix-hunspell.patch @@ -0,0 +1,21 @@ +From: Arthur Zamarin <arthurzam@gentoo.org> +Date: Fri, 5 Apr 2024 15:40:57 +0300 +Subject: fix find hunspell using pkg-config + +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -884,6 +884,14 @@ if(NOT LYX_EXTERNAL_HUNSPELL) + message(STATUS " * Hunspell:") + message(STATUS " - include: ${HUNSPELL_INCLUDE_DIR}") + message(STATUS " - library: ${HUNSPELL_LIBRARY}") ++elseif(LYX_HUNSPELL) ++ find_package(PkgConfig) ++ pkg_check_modules(HUNSPELL hunspell) ++ set(HUNSPELL_INCLUDE_DIR ${HUNSPELL_INCLUDE_DIRS}) ++ set(HUNSPELL_LIBRARY ${HUNSPELL_LIBRARIES}) ++ message(STATUS " * Hunspell:") ++ message(STATUS " - include: ${HUNSPELL_INCLUDE_DIR}") ++ message(STATUS " - library: ${HUNSPELL_LIBRARY}") + endif() + + foreach(_spell "ASPELL" "ENCHANT" "HUNSPELL") |