commit:     335949ee475f372a92f8a3a2ff28e2f5c0c3b931
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  1 22:42:36 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Jan  1 22:44:44 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=335949ee

kde-frameworks/sonnet: Fix configure w/ future hunspell

Package-Manager: portage-2.3.0

 kde-frameworks/sonnet/sonnet-5.26.0.ebuild | 10 +++++++++-
 kde-frameworks/sonnet/sonnet-5.29.0.ebuild | 10 +++++++++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/kde-frameworks/sonnet/sonnet-5.26.0.ebuild 
b/kde-frameworks/sonnet/sonnet-5.26.0.ebuild
index 18c39b4..27fe13a 100644
--- a/kde-frameworks/sonnet/sonnet-5.26.0.ebuild
+++ b/kde-frameworks/sonnet/sonnet-5.26.0.ebuild
@@ -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)

diff --git a/kde-frameworks/sonnet/sonnet-5.29.0.ebuild 
b/kde-frameworks/sonnet/sonnet-5.29.0.ebuild
index 46783f1..5b0ae24 100644
--- a/kde-frameworks/sonnet/sonnet-5.29.0.ebuild
+++ b/kde-frameworks/sonnet/sonnet-5.29.0.ebuild
@@ -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)

Reply via email to