blob: b692b647853f7ffcb4aaa4a95228509aa87d6ad2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MYSPELL_DICT=(
"ca_ES.aff"
"ca_ES.dic"
"ca_ES-valencia.aff"
"ca_ES-valencia.dic"
)
MYSPELL_HYPH=(
"hyph_ca_ES.dic"
)
MYSPELL_THES=(
"th_ca_ES.idx"
"th_ca_ES.dat"
)
inherit myspell-r2
DESCRIPTION="Catalan dictionaries for myspell/hunspell"
HOMEPAGE="https://www.softcatala.org/programes/corrector-ortografic-de-catala-general-per-al-libreoffice-i-lapache-openoffice/ https://github.com/Softcatala/catalan-dict-tools/"
MY_PV="${PV%_p*}"
SRC_URI="https://github.com/Softcatala/catalan-dict-tools/releases/download/v${MY_PV}/ca.${MY_PV}.oxt -> ${P}.oxt"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
src_prepare() {
default
# rename to conform the common naming scheme
mv ca.aff ca_ES.aff || die
mv ca.dic ca_ES.dic || die
mv ca-ES-valencia.aff ca_ES-valencia.aff || die
mv ca-ES-valencia.dic ca_ES-valencia.dic || die
mv hyph_ca.dic hyph_ca_ES.dic || die
# remove licenses
rm LICENSES-en.txt LLICENCIES-ca.txt || die
}
|