summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <marco@scardovi.com>2021-06-15 10:49:44 +0200
committerJoonas Niilola <juippis@gentoo.org>2021-10-26 08:56:31 +0300
commit7c180281a6d879a54dfd0cffdecc241a04c8c4fc (patch)
tree4ded15f9d63bb8ad8e2d6f7c55a0a3cbbe4920e6 /app-dicts
parentapp-dicts/myspell-nn: drop dead HOMEPAGE link (diff)
downloadgentoo-7c180281a6d879a54dfd0cffdecc241a04c8c4fc.tar.gz
gentoo-7c180281a6d879a54dfd0cffdecc241a04c8c4fc.tar.bz2
gentoo-7c180281a6d879a54dfd0cffdecc241a04c8c4fc.zip
app-dicts/myspell-large-en: add new package
Closes: https://github.com/gentoo/gentoo/pull/10770 Closes: https://bugs.gentoo.org/674728 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Marco Scardovi <marco@scardovi.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'app-dicts')
-rw-r--r--app-dicts/myspell-large-en/Manifest4
-rw-r--r--app-dicts/myspell-large-en/metadata.xml12
-rw-r--r--app-dicts/myspell-large-en/myspell-large-en-20201207.ebuild42
3 files changed, 58 insertions, 0 deletions
diff --git a/app-dicts/myspell-large-en/Manifest b/app-dicts/myspell-large-en/Manifest
new file mode 100644
index 000000000000..d2a12b10ba4b
--- /dev/null
+++ b/app-dicts/myspell-large-en/Manifest
@@ -0,0 +1,4 @@
+DIST hunspell-en_AU-large-2020.12.07.zip 314019 BLAKE2B 91d7a7c925d24c27591e70df8f7db9dca469106fcb14dbeb8befb645befe345237b76d7f0f38027b2cb4c894ea53c2574c938341d890411d2648519dd9943c93 SHA512 020684f5d8abf227a6566ebfe7343ee51f7f79576a89e9955ca614b3847e2b7e7be48025b22265a4cb8f86e5e8cbb2620385b46104c3ffec5c604775dea0bec0
+DIST hunspell-en_CA-large-2020.12.07.zip 313409 BLAKE2B f2b6b9ece44c9c07f084d8af0deec96218390288ec7caf07316ef517042f4a3b0d581353d1635d4e2a2797867ed95a6e76325c42e3364a15db8a49a94f50ddff SHA512 a3c591d8593b3fb6d0c28c2764cb85dec6650073f7b6a1074e9d6f96cbb2194d4bd0cbd61be59ebe14f89e3f5d5d83f10706e69130ec5c7d90f088005de9b464
+DIST hunspell-en_GB-large-2020.12.07.zip 315876 BLAKE2B f71b304e97e10368180d0abb7b2304649c4e481848226d693768f54dca96b9f4f1e85e54efd052546236cbc94b5caba19df801d75c46ab20a68df98e7758aeb1 SHA512 a402c40717cd185ea8c14be2d4dc7df67580f197d276ae660a7cf478ae3e07e469c78271feb0c4c6b7c1c418bfb10e7f42c1e5f4b9635a4d3c47e1af4a747a4c
+DIST hunspell-en_US-large-2020.12.07.zip 312362 BLAKE2B f7ab7abb438806826408a5641b82094a69dc85c403389e6ea63d726c68dee49542e1b826f73261eef37cb53f291047d95b91011c501ee00e0e7fd62e301850d3 SHA512 b370fc77735666d9de1c0cc9a1028819974b254291a0aacbcf6037a8cbb23f75538f2130249a0bab46d32dbbd3e0788407c227423d375ef1430dff7a016092dc
diff --git a/app-dicts/myspell-large-en/metadata.xml b/app-dicts/myspell-large-en/metadata.xml
new file mode 100644
index 000000000000..d8d2eab72daf
--- /dev/null
+++ b/app-dicts/myspell-large-en/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>onigino@protonmail.com</email>
+ <name>Gino McCarty</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
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
+}