diff options
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 +} |