From: | Joonas Niilola <juippis@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: profiles/desc/, app-dicts/myspell-de/ |
Date: | Thu, 22 Sep 2022 11:35:48 |
Message-Id: | 1663846476.ba04241e5184252af15449da3abd8b01694de18b.juippis@gentoo |
1 | commit: ba04241e5184252af15449da3abd8b01694de18b |
2 | Author: Robert Siebeck <gentoo.2019 <AT> r123 <DOT> de> |
3 | AuthorDate: Thu Sep 15 07:44:49 2022 +0000 |
4 | Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 | CommitDate: Thu Sep 22 11:34:36 2022 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba04241e |
7 | |
8 | app-dicts/myspell-de: support installing country-specific locales |
9 | |
10 | Country-specific locales for Austria, Switzerland and Germany can be selected |
11 | via USE flags. Using the de locale will install the files for all countries. |
12 | |
13 | Signed-off-by: Robert Siebeck <gentoo.2019 <AT> r123.de> |
14 | Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 | |
16 | .../myspell-de/myspell-de-2017.01.12-r1.ebuild | 53 ++++++++++++++++++++++ |
17 | profiles/desc/l10n.desc | 2 + |
18 | 2 files changed, 55 insertions(+) |
19 | |
20 | diff --git a/app-dicts/myspell-de/myspell-de-2017.01.12-r1.ebuild b/app-dicts/myspell-de/myspell-de-2017.01.12-r1.ebuild |
21 | new file mode 100644 |
22 | index 000000000000..262d7cdec76b |
23 | --- /dev/null |
24 | +++ b/app-dicts/myspell-de/myspell-de-2017.01.12-r1.ebuild |
25 | @@ -0,0 +1,53 @@ |
26 | +# Copyright 1999-2022 Gentoo Authors |
27 | +# Distributed under the terms of the GNU General Public License v2 |
28 | + |
29 | +EAPI=8 |
30 | + |
31 | +inherit myspell-r2 |
32 | + |
33 | +MY_PV=$(ver_rs 1- -) # YYYY-MM-DD |
34 | + |
35 | +DESCRIPTION="German (AT,CH,DE) dictionaries for myspell/hunspell" |
36 | +HOMEPAGE=" |
37 | + https://extensions.libreoffice.org/extensions/german-de-at-frami-dictionaries |
38 | + https://extensions.libreoffice.org/extensions/german-de-ch-frami-dictionaries |
39 | + https://extensions.libreoffice.org/extensions/german-de-de-frami-dictionaries |
40 | +" |
41 | +SRC_URI=" |
42 | + l10n_de? ( |
43 | + https://extensions.libreoffice.org/extensions/german-de-at-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_AT-frami_${MY_PV}.oxt |
44 | + https://extensions.libreoffice.org/extensions/german-de-ch-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_CH-frami_${MY_PV}.oxt |
45 | + https://extensions.libreoffice.org/extensions/german-de-de-frami-dictionaries/${MY_PV}/@@download/file/dict-de_DE-frami_${MY_PV}.oxt ) |
46 | + l10n_de-AT? ( https://extensions.libreoffice.org/extensions/german-de-at-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_AT-frami_${MY_PV}.oxt ) |
47 | + l10n_de-CH? ( https://extensions.libreoffice.org/extensions/german-de-ch-frami-dictionaries/$(ver_rs 1 -)/@@download/file/dict-de_CH-frami_${MY_PV}.oxt ) |
48 | + l10n_de-DE? ( https://extensions.libreoffice.org/extensions/german-de-de-frami-dictionaries/${MY_PV}/@@download/file/dict-de_DE-frami_${MY_PV}.oxt ) |
49 | +" |
50 | + |
51 | +LICENSE="GPL-3 GPL-2 LGPL-3+" |
52 | +SLOT="0" |
53 | +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" |
54 | + |
55 | +PLOCALES=( "de-AT" "de-CH" "de-DE" ) |
56 | +IUSE+="+l10n_de ${PLOCALES[@]/#/l10n_}" |
57 | +REQUIRED_USE="|| ( l10n_de ${PLOCALES[@]/#/l10n_} )" |
58 | + |
59 | +src_prepare() { |
60 | + # fixing file names |
61 | + for i in *_frami.*; do |
62 | + mv "${i}" "${i/_frami}" || die |
63 | + done |
64 | + |
65 | + MYSPELL_DICT=( ) |
66 | + MYSPELL_HYPH=( ) |
67 | + MYSPELL_THES=( ) |
68 | + for lang in "${PLOCALES[@]}"; do |
69 | + local mylinguas="${lang//-/_}" |
70 | + if use "l10n_${lang}" || use l10n_de; then |
71 | + MYSPELL_DICT+=( "${mylinguas}.aff" "${mylinguas}.dic" ) |
72 | + MYSPELL_HYPH+=( "hyph_${mylinguas}.dic" ) |
73 | + MYSPELL_THES+=( "th_${mylinguas}_v2.dat" "th_${mylinguas}_v2.idx" ) |
74 | + fi |
75 | + done |
76 | + |
77 | + default |
78 | +} |
79 | |
80 | diff --git a/profiles/desc/l10n.desc b/profiles/desc/l10n.desc |
81 | index e50db4be3262..8507b4ecd5b2 100644 |
82 | --- a/profiles/desc/l10n.desc |
83 | +++ b/profiles/desc/l10n.desc |
84 | @@ -56,7 +56,9 @@ cy - Welsh |
85 | da - Danish |
86 | de - German |
87 | de-1901 - German (traditional orthography) |
88 | +de-AT - German (Austria) |
89 | de-CH - German (Switzerland) |
90 | +de-DE - German (Germany) |
91 | dgo - Dogri (individual language) |
92 | doi - Dogri (macrolanguage) |
93 | dsb - Lower Sorbian |