summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-23 09:43:50 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-24 23:19:37 +0200
commit9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08 (patch)
tree504124045dad2dde35b8e368eb6a07daf503fe81 /app-text/hunspell/hunspell-1.3.4.ebuild
parentgnome-extra/nautilus-tracker-tags: Fix src_prepare (diff)
downloadgentoo-9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08.tar.gz
gentoo-9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08.tar.bz2
gentoo-9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08.zip
app-text/hunspell: Migrate from LINGUAS to L10N.
Bug: 586778 Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'app-text/hunspell/hunspell-1.3.4.ebuild')
-rw-r--r--app-text/hunspell/hunspell-1.3.4.ebuild20
1 files changed, 11 insertions, 9 deletions
diff --git a/app-text/hunspell/hunspell-1.3.4.ebuild b/app-text/hunspell/hunspell-1.3.4.ebuild
index 5a53f60188d2..bba9bee13ddc 100644
--- a/app-text/hunspell/hunspell-1.3.4.ebuild
+++ b/app-text/hunspell/hunspell-1.3.4.ebuild
@@ -22,18 +22,20 @@ RDEPEND="
DEPEND="${RDEPEND}
sys-devel/gettext"
-# describe properly mi
-LANGS="af bg ca cs cy da de de_1901 el en eo es et fo fr ga gl he hr hu ia id
-is it km ku lt lv mk ms nb nl nn pl pt pt_BR ro ru sk sl sq sv sw tn uk zu"
+LANGS="af bg ca cs cy da de de-1901 el en eo es et fo fr ga gl he hr hu ia id
+is it km ku lt lv mi mk ms nb nl nn pl pt pt-BR ro ru sk sl sq sv sw tn uk zu"
-DICT_DEP="app-dicts/myspell-en"
+PDEPEND="app-dicts/myspell-en"
for lang in ${LANGS}; do
- DICT_DEP+=" linguas_${lang}? ( app-dicts/myspell-${lang/pt_BR/pt-br} )"
- IUSE+=" linguas_${lang}"
+ IUSE+=" l10n_${lang}"
+ case ${lang} in
+ de-1901) dict="de_1901" ;;
+ pt-BR) dict="pt-br" ;;
+ *) dict="${lang}" ;;
+ esac
+ PDEPEND+=" l10n_${lang}? ( app-dicts/myspell-${dict} )"
done
-PDEPEND="${DICT_DEP}"
-
-unset lang LANGS DICT_DEP
+unset dict lang LANGS
S=${WORKDIR}/${MY_P}