1 |
commit: e9172037f4e3386e63d186ff56a3ab1c4ae133c6 |
2 |
Author: Johannes Huber <johu <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 18:36:10 2016 +0000 |
4 |
Commit: Johannes Huber <johu <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 18:36:10 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9172037 |
7 |
|
8 |
kde-frameworks/sonnet: Fix configure w/ hunspell 1.5 |
9 |
|
10 |
Revision bump adds upstream to fix configure to search for hunspell 1.5 too. |
11 |
|
12 |
Package-Manager: portage-2.3.2 |
13 |
|
14 |
.../sonnet/files/sonnet-5.28.0-hunspell-1.5.patch | 21 ++++++++++++++ |
15 |
kde-frameworks/sonnet/sonnet-5.28.0-r1.ebuild | 33 ++++++++++++++++++++++ |
16 |
2 files changed, 54 insertions(+) |
17 |
|
18 |
diff --git a/kde-frameworks/sonnet/files/sonnet-5.28.0-hunspell-1.5.patch b/kde-frameworks/sonnet/files/sonnet-5.28.0-hunspell-1.5.patch |
19 |
new file mode 100644 |
20 |
index 00000000..bc4bb93 |
21 |
--- /dev/null |
22 |
+++ b/kde-frameworks/sonnet/files/sonnet-5.28.0-hunspell-1.5.patch |
23 |
@@ -0,0 +1,21 @@ |
24 |
+commit 5fc1e9679e0607d7d918b27ee13092a234abefe6 |
25 |
+Author: Heiko Becker <heirecka@×××××××.org> |
26 |
+Date: Fri Nov 25 15:13:53 2016 +0100 |
27 |
+ |
28 |
+ Also search for hunspell-1.5 |
29 |
+ |
30 |
+ REVIEW: 129559 |
31 |
+ |
32 |
+diff --git a/cmake/FindHUNSPELL.cmake b/cmake/FindHUNSPELL.cmake |
33 |
+index f028abe..d5ed183 100644 |
34 |
+--- a/cmake/FindHUNSPELL.cmake |
35 |
++++ b/cmake/FindHUNSPELL.cmake |
36 |
+@@ -14,7 +14,7 @@ ENDIF (HUNSPELL_INCLUDE_DIR AND HUNSPELL_LIBRARIES) |
37 |
+ |
38 |
+ FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx ) |
39 |
+ |
40 |
+-FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.4 hunspell-1.3 hunspell-1.2) |
41 |
++FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.5 hunspell-1.4 hunspell-1.3 hunspell-1.2) |
42 |
+ |
43 |
+ # handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE if |
44 |
+ # all listed variables are TRUE |
45 |
|
46 |
diff --git a/kde-frameworks/sonnet/sonnet-5.28.0-r1.ebuild b/kde-frameworks/sonnet/sonnet-5.28.0-r1.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000..1ff3e95 |
49 |
--- /dev/null |
50 |
+++ b/kde-frameworks/sonnet/sonnet-5.28.0-r1.ebuild |
51 |
@@ -0,0 +1,33 @@ |
52 |
+# Copyright 1999-2016 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+# $Id$ |
55 |
+ |
56 |
+EAPI=6 |
57 |
+ |
58 |
+inherit kde5 |
59 |
+ |
60 |
+DESCRIPTION="Framework for providing spell-checking through abstraction of popular backends" |
61 |
+LICENSE="LGPL-2+ LGPL-2.1+" |
62 |
+KEYWORDS="~amd64 ~arm ~x86" |
63 |
+IUSE="aspell +hunspell nls" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ $(add_qt_dep qtgui) |
67 |
+ $(add_qt_dep qtwidgets) |
68 |
+ aspell? ( app-text/aspell ) |
69 |
+ hunspell? ( app-text/hunspell:= ) |
70 |
+" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ nls? ( $(add_qt_dep linguist-tools) ) |
73 |
+" |
74 |
+ |
75 |
+PATCHES=( "${FILESDIR}/${P}-hunspell-1.5.patch" ) |
76 |
+ |
77 |
+src_configure() { |
78 |
+ local mycmakeargs=( |
79 |
+ $(cmake-utils_use_find_package aspell ASPELL) |
80 |
+ $(cmake-utils_use_find_package hunspell HUNSPELL) |
81 |
+ ) |
82 |
+ |
83 |
+ kde5_src_configure |
84 |
+} |