kde-frameworks/sonnet: Fix configure w/ future hunspell
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 1 Jan 2017 22:42:36 +0000 (23:42 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 1 Jan 2017 22:44:44 +0000 (23:44 +0100)
Package-Manager: portage-2.3.0

kde-frameworks/sonnet/sonnet-5.26.0.ebuild
kde-frameworks/sonnet/sonnet-5.29.0.ebuild

index 18c39b4d609e56a3a78c4369b9b8bb680af42492..27fe13acb1f4e595621871211b44938cb67ec65a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -21,6 +21,14 @@ DEPEND="${RDEPEND}
        nls? ( $(add_qt_dep linguist-tools) )
 "
 
+src_prepare() {
+       kde5_src_prepare
+
+       # ensure at least one version-free atom so that hunspell is found
+       sed -e "/FIND_LIBRARY(HUNSPELL_LIBRARIES/ s/\bhunspell\b-[0-9.]*/hunspell/" \
+               -i cmake/FindHUNSPELL.cmake || die
+}
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package aspell ASPELL)
index 46783f1573e3d540a18836f29f997dfe4cd302e0..5b0ae24f3837d89e038ac5220f83ebbe7420d0c6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -21,6 +21,14 @@ DEPEND="${RDEPEND}
        nls? ( $(add_qt_dep linguist-tools) )
 "
 
+src_prepare() {
+       kde5_src_prepare
+
+       # ensure at least one version-free atom so that hunspell is found
+       sed -e "/FIND_LIBRARY(HUNSPELL_LIBRARIES/ s/\bhunspell\b-[0-9.]*/hunspell/" \
+               -i cmake/FindHUNSPELL.cmake || die
+}
+
 src_configure() {
        local mycmakeargs=(
                $(cmake-utils_use_find_package aspell ASPELL)