diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-10-27 22:41:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-10-27 22:41:01 +0100 |
commit | f660c6de84558324d784218831d8f0782ee41e2e (patch) | |
tree | c1f2aa79617d0ceaaff49d71603abc386aae2c37 /app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild | |
parent | 95461df035e3867364495f065e5e805bf629b2d7 (diff) |
gentoo resync : 27.10.2021
Diffstat (limited to 'app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild')
-rw-r--r-- | app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild b/app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild new file mode 100644 index 000000000000..370675bf4c9a --- /dev/null +++ b/app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +MY_PV=${PV:0:4}.${PV:4:2}.${PV:6:2} + +inherit myspell-r2 + +DESCRIPTION="English Large dictionaries for myspell/hunspell" +HOMEPAGE="https://sourceforge.net/projects/wordlist/" +SRC_URI=" + https://versaweb.dl.sourceforge.net/project/wordlist/speller/${MY_PV}/hunspell-en_AU-large-${MY_PV}.zip + https://versaweb.dl.sourceforge.net/project/wordlist/speller/${MY_PV}/hunspell-en_CA-large-${MY_PV}.zip + https://versaweb.dl.sourceforge.net/project/wordlist/speller/${MY_PV}/hunspell-en_GB-large-${MY_PV}.zip + https://versaweb.dl.sourceforge.net/project/wordlist/speller/${MY_PV}/hunspell-en_US-large-${MY_PV}.zip +" + +LICENSE="myspell-en_CA-KevinAtkinson public-domain Princeton Ispell" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +PLOCALES=( "en" "en-AU" "en-CA" "en-GB" "en-US" ) +IUSE+="${PLOCALES[@]/#/l10n_}" +REQUIRED_USE="|| ( ${IUSE[@]} )" + +src_prepare() { + default + + MYSPELL_DICT=( ) + for lang in "${PLOCALES[@]}"; do + if [[ "${lang}" == "en" ]]; then + continue + fi + local mylinguas="${lang//-/_}-large" + if use "l10n_${lang}" || use l10n_en; then + MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" ) + else + rm "README_${mylinguas}.txt" || die + fi + done +} |