1 |
commit: 8cdefb2442584d64ed5513c84bb88e4472ee9c15 |
2 |
Author: Gino <onigino <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sun Jan 6 22:25:59 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 15 23:42:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cdefb24 |
7 |
|
8 |
app-dict/myspell-en-20190101: version bump. |
9 |
|
10 |
Signed-off-by: Gino <onigino <AT> protonmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/10760 |
12 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
13 |
|
14 |
app-dicts/myspell-en/Manifest | 1 + |
15 |
app-dicts/myspell-en/myspell-en-20190101.ebuild | 55 +++++++++++++++++++++++++ |
16 |
2 files changed, 56 insertions(+) |
17 |
|
18 |
diff --git a/app-dicts/myspell-en/Manifest b/app-dicts/myspell-en/Manifest |
19 |
index cf0fe159b8f..e36ade66442 100644 |
20 |
--- a/app-dicts/myspell-en/Manifest |
21 |
+++ b/app-dicts/myspell-en/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST dict-en-20170101.oxt 5960816 BLAKE2B 65505ed6e8323f28377728ac29e550cf151688517b83209b055966be4e7e14465aacc1d1677d22bc005089d7623e78e63bf91dcdffcde3a790532dba87b54615 SHA512 fae05d3e4bdc9bbd5dda6eb2c0de2f5d0860973e75fe0931bcb0d0e0a5015fb6042beec7f811bee0011f519d13d0f3b52b09fbd906a75340bf311177885ccc1d |
24 |
DIST dict-en-20181101.oxt 6052772 BLAKE2B 46825cb406406a3d64e8495f047ae81d6b693e6ff5cd89152a9c829a80d7be1920dfb3572a84aedb2e8f8e5c767aa49ed7e71ab330aca83b3936133699f1098a SHA512 1f351b97c4fc907c5751a35b6665b6d91b1157b6a952a378f565989249b1900395f08f0204407a21b0bcb999fe695c14707c4744f5da32d521ee8d75f73c89f9 |
25 |
+DIST dict-en-20190101.oxt 6058651 BLAKE2B 617ded8d7df6e62767083be7b0651e1bd1e039f78ebb67e8371228805519195dd5acd4ca7d415a29b68697a369d070eafa5545d1b8bbcbab58774db61f03e8e5 SHA512 06e6a21b524c378041655cc44e04f26a35b16e1606a478c0702b96fcbeb86180593fc02d00cae8e05700ead0bd6568239434e8d3d733937587e7b009245dfe4c |
26 |
|
27 |
diff --git a/app-dicts/myspell-en/myspell-en-20190101.ebuild b/app-dicts/myspell-en/myspell-en-20190101.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..932b93b49c6 |
30 |
--- /dev/null |
31 |
+++ b/app-dicts/myspell-en/myspell-en-20190101.ebuild |
32 |
@@ -0,0 +1,55 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+MY_PV="${PV:0:4}-${PV:4:2}.${PV:6:2}" |
39 |
+ |
40 |
+inherit myspell-r2 |
41 |
+ |
42 |
+DESCRIPTION="English dictionaries for myspell/hunspell" |
43 |
+HOMEPAGE="https://extensions.libreoffice.org/extensions/english-dictionaries" |
44 |
+SRC_URI="https://extensions.libreoffice.org/extensions/english-dictionaries/${MY_PV}/@@download/file/dict-en-${PV}.oxt" |
45 |
+ |
46 |
+LICENSE="BSD MIT LGPL-3+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" |
49 |
+IUSE="" |
50 |
+ |
51 |
+PLOCALES=( "en" "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" ) |
52 |
+IUSE+="${PLOCALES[@]/#/l10n_}" |
53 |
+REQUIRED_USE="|| ( ${IUSE[@]} )" |
54 |
+ |
55 |
+src_prepare() { |
56 |
+ if use l10n_en-GB || use l10n_en; then |
57 |
+ MYSPELL_HYPH=( "hyph_en_GB.dic" ) |
58 |
+ fi |
59 |
+ if use l10n_en-US || use l10n_en; then |
60 |
+ MYSPELL_THES=( |
61 |
+ "th_en_US_v2.dat" |
62 |
+ "th_en_US_v2.idx" |
63 |
+ ) |
64 |
+ fi |
65 |
+ |
66 |
+ MYSPELL_DICT=( ) |
67 |
+ for lang in "${PLOCALES[@]}"; do |
68 |
+ if [[ "${lang}" == "en" ]]; then |
69 |
+ continue |
70 |
+ fi |
71 |
+ local mylinguas="${lang//-/_}" |
72 |
+ if use "l10n_${lang}" || use l10n_en; then |
73 |
+ MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" ) |
74 |
+ else |
75 |
+ rm "README_${mylinguas}.txt" || die |
76 |
+ if [[ ${lang} == "en-US" ]]; then |
77 |
+ rm "README_hyph_en_US.txt" || die |
78 |
+ fi |
79 |
+ if [[ ${lang} == "en-GB" ]]; then |
80 |
+ rm "README_hyph_en_GB.txt" || die |
81 |
+ rm "README_en_GB_thes.txt" || die |
82 |
+ fi |
83 |
+ fi |
84 |
+ done |
85 |
+ |
86 |
+ default |
87 |
+} |