diff options
author | Alexander Kurakin <kuraga333@mail.ru> | 2023-02-03 22:33:08 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-02-24 17:08:57 +0200 |
commit | dbbe34955148e5ac14bb5a98c70f65193951e0c1 (patch) | |
tree | 5811fc69ea241091abf35afe5c5c909eb31909b8 /app-dicts | |
parent | dev-util/clion: remove 2022.1.3 (diff) | |
download | gentoo-dbbe34955148e5ac14bb5a98c70f65193951e0c1.tar.gz gentoo-dbbe34955148e5ac14bb5a98c70f65193951e0c1.tar.bz2 gentoo-dbbe34955148e5ac14bb5a98c70f65193951e0c1.zip |
app-dicts/myspell-en: add 20230201
Closes: https://bugs.gentoo.org/893124
Signed-off-by: Alexander Kurakin <kuraga333@mail.ru>
Closes: https://github.com/gentoo/gentoo/pull/29411
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-dicts')
-rw-r--r-- | app-dicts/myspell-en/Manifest | 1 | ||||
-rw-r--r-- | app-dicts/myspell-en/myspell-en-20230201.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/app-dicts/myspell-en/Manifest b/app-dicts/myspell-en/Manifest index 4431b5e1d084..4a73ec22ec34 100644 --- a/app-dicts/myspell-en/Manifest +++ b/app-dicts/myspell-en/Manifest @@ -1,2 +1,3 @@ DIST dict-en-20221101_lo.oxt 6099028 BLAKE2B 0a8e967670de07a62c2b0d1b39878eea02eae8371eccfeab967ddf1059b9f9866202dddeaebf017c9035153753d8dcafb92eca2868103ec8754396fafe736db4 SHA512 51ea769a87b70e22c84101a131d111db2f9c186707a4fac361378965dce11f03ecd1d1c5c6908bc1199e709870e2b38c1c675ab4d0d8393022e522d765a948c1 DIST dict-en-20230101_lo.oxt 6099782 BLAKE2B 5103d0bdf9558184deb8d5d3d9ce00d7b597d4bdf4bfa2fefe3caa68d6e0fa68e2f9295d87c7a8315ba244ccbf007c198cad017aee6faf6590914f63c161cf61 SHA512 d34948b012245c0ad07819d625cd417a85b9edc13b842ad7d3974ed1428af4d2e02020ff0b89cde64a1b844ca8c2a54a7e77f37076e8cc1b38d6a2473da01d7d +DIST dict-en-20230201_lo.oxt 6100214 BLAKE2B c75e6ce32020c10291909191eba888535a56cc4126f2d30c18516a967ca9ca88d7da6d26fa9026c7de75246ee42cc5977fe9db8494e224df3ca484667626d3c0 SHA512 9b9d893ed5061c32c808c91d2078e6f45716dfd3f5590edd02945e50cdb349b23bd35ff0d30aab352b0ddd318993091dcf180d5725016e238e209060eb7180dc diff --git a/app-dicts/myspell-en/myspell-en-20230201.ebuild b/app-dicts/myspell-en/myspell-en-20230201.ebuild new file mode 100644 index 000000000000..b13a6374c775 --- /dev/null +++ b/app-dicts/myspell-en/myspell-en-20230201.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit myspell-r2 + +DESCRIPTION="English dictionaries for myspell/hunspell" +HOMEPAGE=" + https://extensions.libreoffice.org/extensions/english-dictionaries + https://proofingtoolgui.org + https://github.com/marcoagpinto/aoo-mozilla-en-dict +" +SRC_URI="https://extensions.libreoffice.org/assets/downloads/41/1675249081/dict-en-20230201_lo.oxt" + +LICENSE="BSD MIT LGPL-3+" +SLOT="0" +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" + +PLOCALES=( "en-AU" "en-CA" "en-GB" "en-US" "en-ZA" ) +IUSE+="+l10n_en ${PLOCALES[@]/#/l10n_}" +REQUIRED_USE="|| ( l10n_en ${PLOCALES[@]/#/l10n_} )" + +src_prepare() { + if use l10n_en-GB || use l10n_en; then + MYSPELL_HYPH+=( "hyph_en_GB.dic" ) + fi + if use l10n_en-US || use l10n_en; then + MYSPELL_THES+=( + "th_en_US_v2.dat" + "th_en_US_v2.idx" + ) + MYSPELL_HYPH+=( "hyph_en_US.dic" ) + fi + + MYSPELL_DICT=( ) + for lang in "${PLOCALES[@]}"; do + if [[ "${lang}" == "en" ]]; then + continue + fi + local mylinguas="${lang//-/_}" + if use "l10n_${lang}" || use l10n_en; then + MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" ) + else + rm "README_${mylinguas}.txt" || die + if [[ ${lang} == "en-US" ]]; then + rm "README_hyph_en_US.txt" || die + fi + if [[ ${lang} == "en-GB" ]]; then + rm "README_hyph_en_GB.txt" || die + rm "README_en_GB_thes.txt" || die + fi + fi + done + + default +} |