Gentoo Archives: gentoo-commits

From: Viorel Munteanu <ceamac@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/myspell-en/
Date: Mon, 20 Mar 2023 07:27:19
Message-Id: 1679297220.7a6d357f8141b125a399763513501828d7bbff84.ceamac@gentoo
1 commit: 7a6d357f8141b125a399763513501828d7bbff84
2 Author: Alexander Kurakin <kuraga333 <AT> mail <DOT> ru>
3 AuthorDate: Thu Mar 2 17:46:56 2023 +0000
4 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 20 07:27:00 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a6d357f
7
8 app-dicts/myspell-en: add 20230301
9
10 Closes: https://bugs.gentoo.org/899184
11 Signed-off-by: Alexander Kurakin <kuraga333 <AT> mail.ru>
12 Closes: https://github.com/gentoo/gentoo/pull/29912
13 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>
14
15 app-dicts/myspell-en/Manifest | 1 +
16 app-dicts/myspell-en/myspell-en-20230301.ebuild | 57 +++++++++++++++++++++++++
17 2 files changed, 58 insertions(+)
18
19 diff --git a/app-dicts/myspell-en/Manifest b/app-dicts/myspell-en/Manifest
20 index 1597b4e5db04..5190969cad8b 100644
21 --- a/app-dicts/myspell-en/Manifest
22 +++ b/app-dicts/myspell-en/Manifest
23 @@ -1,2 +1,3 @@
24 DIST dict-en-20230101_lo.oxt 6099782 BLAKE2B 5103d0bdf9558184deb8d5d3d9ce00d7b597d4bdf4bfa2fefe3caa68d6e0fa68e2f9295d87c7a8315ba244ccbf007c198cad017aee6faf6590914f63c161cf61 SHA512 d34948b012245c0ad07819d625cd417a85b9edc13b842ad7d3974ed1428af4d2e02020ff0b89cde64a1b844ca8c2a54a7e77f37076e8cc1b38d6a2473da01d7d
25 DIST dict-en-20230201_lo.oxt 6100214 BLAKE2B c75e6ce32020c10291909191eba888535a56cc4126f2d30c18516a967ca9ca88d7da6d26fa9026c7de75246ee42cc5977fe9db8494e224df3ca484667626d3c0 SHA512 9b9d893ed5061c32c808c91d2078e6f45716dfd3f5590edd02945e50cdb349b23bd35ff0d30aab352b0ddd318993091dcf180d5725016e238e209060eb7180dc
26 +DIST dict-en-20230301_lo.oxt 6099726 BLAKE2B 3db7fc83af03a42f5f06fb13ff4f78415e0a806d86794b2e76e42f892a76281b9cf178e2c3ccddcc5a42a8d4d804657de5972905a58d817382bc970363763713 SHA512 b64c71ab00e5792411b56212b178a36b72fe10b83fa89db37cbbf3c1f9ce96f8d2c46a58d1773aabbb37a05c1812b59c45cc93fe5a1dd9fc19e0129c764aa251
27
28 diff --git a/app-dicts/myspell-en/myspell-en-20230301.ebuild b/app-dicts/myspell-en/myspell-en-20230301.ebuild
29 new file mode 100644
30 index 000000000000..69910d320224
31 --- /dev/null
32 +++ b/app-dicts/myspell-en/myspell-en-20230301.ebuild
33 @@ -0,0 +1,57 @@
34 +# Copyright 1999-2023 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +inherit myspell-r2
40 +
41 +DESCRIPTION="English dictionaries for myspell/hunspell"
42 +HOMEPAGE="
43 + https://extensions.libreoffice.org/extensions/english-dictionaries
44 + https://proofingtoolgui.org
45 + https://github.com/marcoagpinto/aoo-mozilla-en-dict
46 +"
47 +SRC_URI="https://extensions.libreoffice.org/assets/downloads/41/1677661772/dict-en-20230301_lo.oxt"
48 +
49 +LICENSE="BSD MIT LGPL-3+"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
52 +
53 +PLOCALES=( "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" )
54 +IUSE+="+l10n_en ${PLOCALES[@]/#/l10n_}"
55 +REQUIRED_USE="|| ( l10n_en ${PLOCALES[@]/#/l10n_} )"
56 +
57 +src_prepare() {
58 + if use l10n_en-GB || use l10n_en; then
59 + MYSPELL_HYPH+=( "hyph_en_GB.dic" )
60 + fi
61 + if use l10n_en-US || use l10n_en; then
62 + MYSPELL_THES+=(
63 + "th_en_US_v2.dat"
64 + "th_en_US_v2.idx"
65 + )
66 + MYSPELL_HYPH+=( "hyph_en_US.dic" )
67 + fi
68 +
69 + MYSPELL_DICT=( )
70 + for lang in "${PLOCALES[@]}"; do
71 + if [[ "${lang}" == "en" ]]; then
72 + continue
73 + fi
74 + local mylinguas="${lang//-/_}"
75 + if use "l10n_${lang}" || use l10n_en; then
76 + MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" )
77 + else
78 + rm "README_${mylinguas}.txt" || die
79 + if [[ ${lang} == "en-US" ]]; then
80 + rm "README_hyph_en_US.txt" || die
81 + fi
82 + if [[ ${lang} == "en-GB" ]]; then
83 + rm "README_hyph_en_GB.txt" || die
84 + rm "README_en_GB_thes.txt" || die
85 + fi
86 + fi
87 + done
88 +
89 + default
90 +}