commit:     9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 07:43:50 2016 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jun 24 21:19:37 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e36750f

app-text/hunspell: Migrate from LINGUAS to L10N.

Bug: 586778

Package-Manager: portage-2.3.0_rc1

 app-text/hunspell/hunspell-1.3.3.ebuild | 23 +++++++++++++----------
 app-text/hunspell/hunspell-1.3.4.ebuild | 20 +++++++++++---------
 app-text/hunspell/hunspell-1.4.1.ebuild | 20 +++++++++++---------
 3 files changed, 35 insertions(+), 28 deletions(-)

diff --git a/app-text/hunspell/hunspell-1.3.3.ebuild 
b/app-text/hunspell/hunspell-1.3.3.ebuild
index 8326165..c18f56f 100644
--- a/app-text/hunspell/hunspell-1.3.3.ebuild
+++ b/app-text/hunspell/hunspell-1.3.3.ebuild
@@ -17,23 +17,26 @@ IUSE="ncurses nls readline static-libs"
 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 
~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos 
~sparc-solaris ~x64-solaris ~x86-solaris"
 
 RDEPEND="
-       ncurses? ( sys-libs/ncurses )
-       readline? ( sys-libs/readline )"
+       ncurses? ( sys-libs/ncurses:0= )
+       readline? ( sys-libs/readline:= )"
 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 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}
 

diff --git a/app-text/hunspell/hunspell-1.3.4.ebuild 
b/app-text/hunspell/hunspell-1.3.4.ebuild
index 5a53f60..bba9bee 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}
 

diff --git a/app-text/hunspell/hunspell-1.4.1.ebuild 
b/app-text/hunspell/hunspell-1.4.1.ebuild
index e4713f8..78f43fd 100644
--- a/app-text/hunspell/hunspell-1.4.1.ebuild
+++ b/app-text/hunspell/hunspell-1.4.1.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}
 

Reply via email to