Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 586780
Collapse All | Expand All

(-)a/app-text/aspell/aspell-0.60.6.1-r1.ebuild (-17 / +15 lines)
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"
(-)a/app-text/aspell/aspell-0.60.6.1-r3.ebuild (-9 / +10 lines)
Lines 16-33 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~spar 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 de_1901 el en eo es et fi fo fr ga gl he hr
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
hu hy is it la lt nl no pl pt pt_BR ro ru sk sl sr sv uk vi"
20
hu hy 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
	IUSE+=" l10n_${lang}"
23
	# Need to keep linguas_* for now, since aspell uses gettext
24
	IUSE+=" linguas_${lang/-/_}"
22
	case ${lang} in
25
	case ${lang} in
23
		de_1901) dep="app-dicts/aspell-de-alt"  ;;
26
		de-1901) dict="de-alt"  ;;
24
		pt_BR)   dep="app-dicts/aspell-pt-br"   ;;
27
		pt-BR)   dict="pt-br"   ;;
25
		*)       dep="app-dicts/aspell-${lang}" ;;
28
		*)       dict="${lang}" ;;
26
	esac
29
	esac
27
	PDEPEND+=" linguas_${lang}? ( ${dep} )"
30
	PDEPEND+=" l10n_${lang}? ( app-dicts/aspell-${dict} )"
28
	IUSE+=" linguas_${lang}"
29
done
31
done
30
unset dep
32
unset dict lang LANGS
31
33
32
COMMON_DEPEND="
34
COMMON_DEPEND="
33
	>=sys-libs/ncurses-5.2:0=
35
	>=sys-libs/ncurses-5.2:0=
34
- 

Return to bug 586780