Lines 1-4
Link Here
|
1 |
# Copyright 1999-2015 Gentoo Foundation |
1 |
# Copyright 1999-2016 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Id$ |
3 |
# $Id$ |
4 |
|
4 |
|
Lines 16-37
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~a
Link Here
|
16 |
IUSE="nls" |
16 |
IUSE="nls" |
17 |
|
17 |
|
18 |
PDEPEND="app-dicts/aspell-en" |
18 |
PDEPEND="app-dicts/aspell-en" |
19 |
LANGS="af be bg br ca cs cy da de el en eo es et fi fo fr ga gl he hr is it la |
19 |
LANGS="af be bg br ca cs cy da de de-1901 el en eo es et fi fo fr ga gl he hr |
20 |
lt nl no pl pt pt_BR ro ru sk sl sr sv uk vi" |
20 |
is it la lt nl no pl pt pt-BR ro ru sk sl sr sv uk vi" |
21 |
for lang in ${LANGS}; do |
21 |
for lang in ${LANGS}; do |
22 |
dep="linguas_${lang}? ( app-dicts/aspell-${lang/pt_BR/pt-br} )" |
22 |
IUSE+=" l10n_${lang}" |
23 |
if [[ ${lang} == de ]] ; then |
23 |
# Need to keep linguas_* for now, since aspell uses gettext |
24 |
dep="linguas_${lang}? ( |
24 |
IUSE+=" linguas_${lang/-/_}" |
25 |
|| ( |
25 |
case ${lang} in |
26 |
app-dicts/aspell-${lang} |
26 |
de-1901) dict="de-alt" ;; |
27 |
app-dicts/aspell-${lang}-alt |
27 |
pt-BR) dict="pt-br" ;; |
28 |
) |
28 |
*) dict="${lang}" ;; |
29 |
)" |
29 |
esac |
30 |
fi |
30 |
PDEPEND+=" l10n_${lang}? ( app-dicts/aspell-${dict} )" |
31 |
PDEPEND+=" ${dep}" |
|
|
32 |
IUSE+=" linguas_${lang}" |
33 |
done |
31 |
done |
34 |
unset dep |
32 |
unset dict lang LANGS |
35 |
|
33 |
|
36 |
COMMON_DEPEND=" |
34 |
COMMON_DEPEND=" |
37 |
>=sys-libs/ncurses-5.2:0= |
35 |
>=sys-libs/ncurses-5.2:0= |
Lines 99-107
src_install() {
Link Here
|
99 |
} |
97 |
} |
100 |
|
98 |
|
101 |
pkg_postinst() { |
99 |
pkg_postinst() { |
102 |
elog "In case LINGUAS was not set correctly you may need to install" |
100 |
elog "In case L10N was not set correctly you may need to install" |
103 |
elog "dictionaries now. Please choose an aspell-<LANG> dictionary or" |
101 |
elog "dictionaries now. Please choose an aspell-<LANG> dictionary or" |
104 |
elog "set LINGUAS correctly and let aspell pull in required packages." |
102 |
elog "set L10N correctly and let aspell pull in required packages." |
105 |
elog "After installing an aspell dictionary for your language(s)," |
103 |
elog "After installing an aspell dictionary for your language(s)," |
106 |
elog "You may use the aspell-import utility to import your personal" |
104 |
elog "You may use the aspell-import utility to import your personal" |
107 |
elog "dictionaries from ispell, pspell and the older aspell" |
105 |
elog "dictionaries from ispell, pspell and the older aspell" |