Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-dicts/myspell-nl/
Date: Mon, 18 Nov 2019 06:15:04
Message-Id: 1574057653.a589dc23b0e0179fdf13971881c768c5d24e9da4.juippis@gentoo
1 commit: a589dc23b0e0179fdf13971881c768c5d24e9da4
2 Author: Wim Muskee <wimmuskee <AT> gmail <DOT> com>
3 AuthorDate: Sat Nov 16 17:36:17 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 18 06:14:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a589dc23
7
8 app-dicts/myspell-nl: add territory locale formatted entries
9
10 Closes: https://bugs.gentoo.org/699660
11 Signed-off-by: Wim Muskee <wimmuskee <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/13675
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 app-dicts/myspell-nl/myspell-nl-2.10g-r2.ebuild | 63 +++++++++++++++++++++++++
16 1 file changed, 63 insertions(+)
17
18 diff --git a/app-dicts/myspell-nl/myspell-nl-2.10g-r2.ebuild b/app-dicts/myspell-nl/myspell-nl-2.10g-r2.ebuild
19 new file mode 100644
20 index 00000000000..2663c798ffb
21 --- /dev/null
22 +++ b/app-dicts/myspell-nl/myspell-nl-2.10g-r2.ebuild
23 @@ -0,0 +1,63 @@
24 +# Copyright 1999-2019 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +MYSPELL_DICT=(
30 + "nl.aff"
31 + "nl.dic"
32 +)
33 +
34 +MYSPELL_HYPH=(
35 + "hyph_nl.dic"
36 +)
37 +
38 +MYSPELL_THES=(
39 + "th_nl_v2.dat"
40 + "th_nl_v2.idx"
41 +)
42 +
43 +inherit myspell-r2
44 +
45 +DESCRIPTION="Dutch dictionaries for myspell/hunspell"
46 +HOMEPAGE="https://www.opentaal.org"
47 +# Thesarus is not versioned at all, I suppose we could bump it with each dict
48 +# release, or when people say that the download uri checksum changed.
49 +SRC_URI="
50 + https://www.opentaal.org/bestanden/license_result/20-woordenlijst-v-${PV//./}-voor-openofficeorg-3?bid=20&agree=1 -> ${P}.oxt
51 + https://data.opentaal.org/opentaalbank/thesaurus/download/thes_nl.oxt -> ${P}_thes.oxt
52 +"
53 +
54 +LICENSE="BSD-2 CC-BY-3.0"
55 +SLOT="0"
56 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86"
57 +
58 +src_prepare() {
59 + default
60 +
61 + # rename terroritory specific to just language, bug #607080
62 + mv nl_NL.aff nl.aff || die
63 + mv nl_NL.dic nl.dic || die
64 + mv hyph_nl_NL.dic hyph_nl.dic || die
65 +
66 + # remove dutch translated license so it aint installed
67 + rm licentie* || die
68 +}
69 +
70 +src_install() {
71 + myspell-r2_src_install
72 +
73 + # make language_territory locale format symlinks to base language files, bug #699660
74 + dosym ../hunspell/nl.aff /usr/share/myspell/nl_NL.aff
75 + dosym ../hunspell/nl.dic /usr/share/myspell/nl_NL.dic
76 + dosym ../hyphen/hyph_nl.dic /usr/share/myspell/hyph_nl_NL.dic
77 + dosym ../mythes/th_nl_v2.dat /usr/share/myspell/th_nl_NL_v2.dat
78 + dosym ../mythes/th_nl_v2.idx /usr/share/myspell/th_nl_NL_v2.idx
79 +
80 + # Belgium
81 + dosym ../hunspell/nl.aff /usr/share/myspell/nl_BE.aff
82 + dosym ../hunspell/nl.dic /usr/share/myspell/nl_BE.dic
83 + dosym ../hyphen/hyph_nl.dic /usr/share/myspell/hyph_nl_BE.dic
84 + dosym ../mythes/th_nl_v2.dat /usr/share/myspell/th_nl_BE_v2.dat
85 + dosym ../mythes/th_nl_v2.idx /usr/share/myspell/th_nl_BE_v2.idx
86 +}