diff --git a/recipes-kde/kf5/tier1/sonnet/files/0003-make-build-of-hunspell-optional.patch b/recipes-kde/kf5/tier1/sonnet/files/0003-make-build-of-hunspell-optional.patch new file mode 100644 index 00000000..d3e1da92 --- /dev/null +++ b/recipes-kde/kf5/tier1/sonnet/files/0003-make-build-of-hunspell-optional.patch @@ -0,0 +1,43 @@ +From e0b2cd6d9a7339f5e73d4fe19a4a0ad07223f571 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Fri, 29 Jan 2016 22:23:11 +0100 +Subject: [PATCH] make build of hunspell optional +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Finding hunspell is done by a taylored solution which does not seem to +support disable. + +Upstream-Status: Inappropriate [configuration] + +Signed-off-by: Andreas Müller +--- + src/plugins/CMakeLists.txt | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/plugins/CMakeLists.txt b/src/plugins/CMakeLists.txt +index f275f63..dbad160 100644 +--- a/src/plugins/CMakeLists.txt ++++ b/src/plugins/CMakeLists.txt +@@ -35,6 +35,9 @@ endif () + # add_subdirectory( enchant ) + #endif () + ++option(BUILD_HUNSPELL "Build hunspell" OFF) ++ ++if(BUILD_HUNSPELL) + find_package(HUNSPELL) + set_package_properties(HUNSPELL PROPERTIES + URL "http://hunspell.sourceforge.net/" +@@ -44,6 +47,7 @@ set_package_properties(HUNSPELL PROPERTIES + if (HUNSPELL_FOUND) + add_subdirectory( hunspell ) + endif () ++endif () + + + find_package(VOIKKO) +-- +2.5.0 + diff --git a/recipes-kde/kf5/tier1/sonnet/sonnet.bb b/recipes-kde/kf5/tier1/sonnet/sonnet.bb index 09236c72..e706e7e5 100644 --- a/recipes-kde/kf5/tier1/sonnet/sonnet.bb +++ b/recipes-kde/kf5/tier1/sonnet/sonnet.bb @@ -22,3 +22,6 @@ FILES_${PN}-dbg += " \ CMAKE_ALIGN_SYSROOT[1] = "KF5Sonnet, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib" CMAKE_ALIGN_SYSROOT[2] = "KF5Sonnet, -S${includedir}, -S${STAGING_INCDIR}" +PACKAGECONFIG ??= "" +PACKAGECONFIG[hunspell] = "-DBUILD_HUNSPELL=ON,-DBUILD_HUNSPELL=OFF, hunspell" + diff --git a/recipes-kde/kf5/tier1/sonnet/sonnet.inc b/recipes-kde/kf5/tier1/sonnet/sonnet.inc index d217a5ce..bf49de3b 100644 --- a/recipes-kde/kf5/tier1/sonnet/sonnet.inc +++ b/recipes-kde/kf5/tier1/sonnet/sonnet.inc @@ -7,3 +7,4 @@ inherit kde-kf5 PV = "${KF5_VERSION}" SRC_URI[md5sum] = "8fb3c2fac12e7c2671c3318f41bc4161" SRC_URI[sha256sum] = "6ffa49bab59dba0080c03a8b7863efd53006239350f634575b4aabe9f496009d" +SRC_URI += "file://0003-make-build-of-hunspell-optional.patch"