From 9e36750f22fa8d8de4dbf44aca6bf4f8abeeeb08 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Thu, 23 Jun 2016 09:43:50 +0200 Subject: 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(-) (limited to 'app-text/hunspell') diff --git a/app-text/hunspell/hunspell-1.3.3.ebuild b/app-text/hunspell/hunspell-1.3.3.ebuild index 832616554d35..c18f56ffe799 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 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} diff --git a/app-text/hunspell/hunspell-1.4.1.ebuild b/app-text/hunspell/hunspell-1.4.1.ebuild index e4713f8ce467..78f43fd7e3cb 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} -- cgit v1.2.3-65-gdbad