scribus/hunspell-1.6.patch
OBS User mrdocs 9e589ec546 Accepting request 602857 from home:wolfi323:branches:KDE:Extra
- Add back hunspell-1.6.patch, it's still needed as the current
  version still only supports hunspell up to 1.4 but Tumbleweed and
  Leap 15.0 have 1.6

Hunspell 1.6 is only supported in 1.5.x, where the hunspell detection has been reworked...

OBS-URL: https://build.opensuse.org/request/show/602857
OBS-URL: https://build.opensuse.org/package/show/KDE:Extra/scribus?expand=0&rev=36
2018-05-01 23:17:05 +00:00

19 lines
998 B
Diff

From: Wolfgang Bauer <wbauer@tmo.at>
Subject: support hunspell up to 1.6
Necessary to have spellchecking support in Tumbleweed and Leap 15.0, which
have hunspell 1.6.2 that wasn't found and spellchecking got disabled...
---
diff -Nru a/cmake/modules/FindHUNSPELL.cmake b/cmake/modules/FindHUNSPELL.cmake
--- a/cmake/modules/FindHUNSPELL.cmake 2012-04-10 22:17:07.000000000 +0200
+++ b/cmake/modules/FindHUNSPELL.cmake 2016-04-26 13:59:20.473641707 +0200
@@ -9,7 +9,7 @@
#Based on examples at http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx )
-FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.4 hunspell-1.3 hunspell-1.2 PATHS /opt/local/lib /usr/local/lib /usr/lib )
+FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.6 hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2 PATHS /opt/local/lib /usr/local/lib /usr/lib )
INCLUDE(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE