1 |
commit: dedbd515e939ce8eda6cdd283986c776ffcb5092 |
2 |
Author: Bjorn Pagen <bjornpagen <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Oct 31 22:25:06 2017 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 2 01:19:50 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=dedbd515 |
7 |
|
8 |
add app-text/enchant |
9 |
|
10 |
app-text/enchant/Manifest | 5 ++ |
11 |
app-text/enchant/enchant-1.6.1.ebuild | 62 ++++++++++++++++++++++ |
12 |
.../files/enchant-1.6.0-hunspell150_fix.patch | 12 +++++ |
13 |
.../musl-compile-fix-add-cc-tag-libtool.patch | 15 ++++++ |
14 |
app-text/enchant/metadata.xml | 13 +++++ |
15 |
.../musl-compile-fix-add-cc-tag-libtool.patch | 15 ++++++ |
16 |
6 files changed, 122 insertions(+) |
17 |
|
18 |
diff --git a/app-text/enchant/Manifest b/app-text/enchant/Manifest |
19 |
new file mode 100644 |
20 |
index 0000000..bbb0305 |
21 |
--- /dev/null |
22 |
+++ b/app-text/enchant/Manifest |
23 |
@@ -0,0 +1,5 @@ |
24 |
+AUX enchant-1.6.0-hunspell150_fix.patch 577 SHA256 113918ae07c492736a7fa359c86fe6f1e3c9582cd1b4a3f6fd0a0848a6a8c6f8 SHA512 893620f45a1dd7956aef9f3517186a9226c00e6b85df4770d6ea388fc08854e7884143fe3c7a064c7ec4f8353a9b9571d0c07da22df5c6ee41fc4c6bbce5874f WHIRLPOOL ab11f48c15b2444f4329cd10a428428fc43ec63233ea4f9333dbcb0d284bfc68b00feab79253d598f0a0455a3942fbc0243184036cdb2e810a42bb81647d0f55 |
25 |
+AUX musl-compile-fix-add-cc-tag-libtool.patch 313 SHA256 635608c3e1eb629f37fbcfee71715ee98090047e87913373fb88b78c0f911b3a SHA512 c88d17039f89e3ffd5323f78c2b57e7ada7ad094564ea26aa605aeab1da64e1778c757aa41b7486a617dfea4d5482372e80b08bd51c1561ff182c66e61ecdd6b WHIRLPOOL 479820c17d95a5e797094940dcf19aaa013a90cd8ae8a8051ebc49eecd979a6e25c452b1c73b21a84aa2e615066f4b60198328c404f33689fc1bfd06a5392d78 |
26 |
+DIST enchant-1.6.1.tar.gz 642124 SHA256 bef0d9c0fef2e4e8746956b68e4d6c6641f6b85bd2908d91731efb68eba9e3f5 SHA512 26c62dfa89ee40150db502651a2f876fba00569b7015f205dae27a029557effacff335bbe36124dbe6686537da2305bcab02592179d03e95fdf9741d54b98036 WHIRLPOOL daffe1ee16e731d3d6ba56362f882c8f8bd7462a264fcf9caf05ed8093c0ca275977fb9c83c391d9e3287e6e98516b52e468c9bf9cc86532cf0b3eeba8f02fbd |
27 |
+EBUILD enchant-1.6.1.ebuild 1690 SHA256 3c7c38f0db002502f5e276bf32dbde669a6936cd15c7e3a8e07ef753021beeb9 SHA512 6ab66eafe87ee8c946c0794603934f13d5d4f11e2814ad4f5188e0e892d47096e76b7fd6ee6ed476f476a8cc4a75de4a1df8c63eb05383afd1e0070193488c3d WHIRLPOOL a38a1ab8d38498ee34a2b1b420bef136099f6f5185aced14fc53b5c318687a2ea50c5c7835c36eb8a6eb55b1130d5ae61585c62f7d451ac9e5e6d05d2953dc1d |
28 |
+MISC musl-compile-fix-add-cc-tag-libtool.patch 313 SHA256 635608c3e1eb629f37fbcfee71715ee98090047e87913373fb88b78c0f911b3a SHA512 c88d17039f89e3ffd5323f78c2b57e7ada7ad094564ea26aa605aeab1da64e1778c757aa41b7486a617dfea4d5482372e80b08bd51c1561ff182c66e61ecdd6b WHIRLPOOL 479820c17d95a5e797094940dcf19aaa013a90cd8ae8a8051ebc49eecd979a6e25c452b1c73b21a84aa2e615066f4b60198328c404f33689fc1bfd06a5392d78 |
29 |
|
30 |
diff --git a/app-text/enchant/enchant-1.6.1.ebuild b/app-text/enchant/enchant-1.6.1.ebuild |
31 |
new file mode 100644 |
32 |
index 0000000..0a937a8 |
33 |
--- /dev/null |
34 |
+++ b/app-text/enchant/enchant-1.6.1.ebuild |
35 |
@@ -0,0 +1,62 @@ |
36 |
+# Copyright 1999-2017 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+inherit versionator |
41 |
+ |
42 |
+MY_PV="$(replace_all_version_separators '-')" |
43 |
+DESCRIPTION="Spellchecker wrapping library" |
44 |
+HOMEPAGE="https://abiword.github.io/enchant/" |
45 |
+SRC_URI="https://github.com/AbiWord/enchant/releases/download/${PN}-${MY_PV}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="LGPL-2.1" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
50 |
+ |
51 |
+IUSE="aspell +hunspell static-libs test zemberek" |
52 |
+REQUIRED_USE="|| ( hunspell aspell zemberek )" |
53 |
+ |
54 |
+# FIXME: depends on unittest++ but through pkgconfig which is a Debian hack, bug #629742 |
55 |
+COMMON_DEPENDS=" |
56 |
+ >=dev-libs/glib-2.6:2 |
57 |
+ aspell? ( app-text/aspell ) |
58 |
+ hunspell? ( >=app-text/hunspell-1.2.1:0= ) |
59 |
+ zemberek? ( dev-libs/dbus-glib ) |
60 |
+" |
61 |
+RDEPEND="${COMMON_DEPENDS} |
62 |
+ zemberek? ( app-text/zemberek-server ) |
63 |
+" |
64 |
+DEPEND="${COMMON_DEPENDS} |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+# test? ( dev-libs/unittest++ ) |
68 |
+ |
69 |
+DOCS="AUTHORS BUGS ChangeLog HACKING MAINTAINERS NEWS README TODO" |
70 |
+ |
71 |
+PATCHES=( |
72 |
+ "${FILESDIR}"/${PN}-1.6.0-hunspell150_fix.patch |
73 |
+) |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ default |
77 |
+ eapply "${FILESDIR}/musl-compile-fix-add-cc-tag-libtool.patch" |
78 |
+ sed -e "/SUBDIRS/ s/unittests//" -i "${S}"/Makefile.{am,in} || die |
79 |
+} |
80 |
+ |
81 |
+src_configure() { |
82 |
+ econf \ |
83 |
+ $(use_enable aspell) \ |
84 |
+ $(use_enable hunspell myspell) \ |
85 |
+ $(use_enable static-libs static) \ |
86 |
+ $(use_enable zemberek) \ |
87 |
+ --disable-hspell \ |
88 |
+ --disable-ispell \ |
89 |
+ --disable-uspell \ |
90 |
+ --disable-voikko \ |
91 |
+ --with-myspell-dir="${EPREFIX}"/usr/share/myspell/ |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ default |
96 |
+ find "${D}" -name '*.la' -delete || die |
97 |
+} |
98 |
|
99 |
diff --git a/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch |
100 |
new file mode 100644 |
101 |
index 0000000..bd40c81 |
102 |
--- /dev/null |
103 |
+++ b/app-text/enchant/files/enchant-1.6.0-hunspell150_fix.patch |
104 |
@@ -0,0 +1,12 @@ |
105 |
+diff -upr enchant-1.6.0.orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp |
106 |
+--- enchant-1.6.0.orig/src/myspell/myspell_checker.cpp 2016-11-26 16:04:05.689051339 +0200 |
107 |
++++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-11-26 16:05:11.380014568 +0200 |
108 |
+@@ -431,7 +431,7 @@ MySpellChecker::requestDictionary(const |
109 |
+ if(myspell == NULL){ |
110 |
+ return false; |
111 |
+ } |
112 |
+- char *enc = myspell->get_dic_encoding(); |
113 |
++ const char *enc = myspell->get_dic_encoding(); |
114 |
+ |
115 |
+ m_translate_in = g_iconv_open(enc, "UTF-8"); |
116 |
+ m_translate_out = g_iconv_open("UTF-8", enc); |
117 |
|
118 |
diff --git a/app-text/enchant/files/musl-compile-fix-add-cc-tag-libtool.patch b/app-text/enchant/files/musl-compile-fix-add-cc-tag-libtool.patch |
119 |
new file mode 100644 |
120 |
index 0000000..e13a769 |
121 |
--- /dev/null |
122 |
+++ b/app-text/enchant/files/musl-compile-fix-add-cc-tag-libtool.patch |
123 |
@@ -0,0 +1,15 @@ |
124 |
+diff --git a/configure b/configure.new |
125 |
+old mode 100755 |
126 |
+new mode 100755 |
127 |
+index 7d641bf..307d433 |
128 |
+--- a/configure |
129 |
++++ b/configure |
130 |
+@@ -11038,7 +11038,7 @@ esac |
131 |
+ LIBTOOL_DEPS=$ltmain |
132 |
+ |
133 |
+ # Always use our own libtool. |
134 |
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
135 |
++LIBTOOL='$(SHELL) $(top_builddir)/libtool --tag=CC' |
136 |
+ |
137 |
+ |
138 |
+ |
139 |
|
140 |
diff --git a/app-text/enchant/metadata.xml b/app-text/enchant/metadata.xml |
141 |
new file mode 100644 |
142 |
index 0000000..8a391be |
143 |
--- /dev/null |
144 |
+++ b/app-text/enchant/metadata.xml |
145 |
@@ -0,0 +1,13 @@ |
146 |
+<?xml version="1.0" encoding="UTF-8"?> |
147 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
148 |
+<pkgmetadata> |
149 |
+ <maintainer type="project"> |
150 |
+ <email>gnome@g.o</email> |
151 |
+ <name>Gentoo GNOME Desktop</name> |
152 |
+ </maintainer> |
153 |
+ <use> |
154 |
+ <flag name="aspell">Adds support for <pkg>app-text/aspell</pkg> spell checker</flag> |
155 |
+ <flag name="hunspell">Adds support for <pkg>app-text/hunspell</pkg> spell checker</flag> |
156 |
+ <flag name="zemberek">Adds support for <pkg>app-text/zemberek-server</pkg> spell checker server</flag> |
157 |
+ </use> |
158 |
+</pkgmetadata> |
159 |
|
160 |
diff --git a/app-text/enchant/musl-compile-fix-add-cc-tag-libtool.patch b/app-text/enchant/musl-compile-fix-add-cc-tag-libtool.patch |
161 |
new file mode 100644 |
162 |
index 0000000..e13a769 |
163 |
--- /dev/null |
164 |
+++ b/app-text/enchant/musl-compile-fix-add-cc-tag-libtool.patch |
165 |
@@ -0,0 +1,15 @@ |
166 |
+diff --git a/configure b/configure.new |
167 |
+old mode 100755 |
168 |
+new mode 100755 |
169 |
+index 7d641bf..307d433 |
170 |
+--- a/configure |
171 |
++++ b/configure |
172 |
+@@ -11038,7 +11038,7 @@ esac |
173 |
+ LIBTOOL_DEPS=$ltmain |
174 |
+ |
175 |
+ # Always use our own libtool. |
176 |
+-LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
177 |
++LIBTOOL='$(SHELL) $(top_builddir)/libtool --tag=CC' |
178 |
+ |
179 |
+ |
180 |
+ |