commit:     e1d85c805e877677dcde6a7a819f150c3d5d7c2a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 12:55:56 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  3 16:08:35 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1d85c80

app-office/calligra-l10n: Migrate to L10N

 app-office/calligra-l10n/calligra-l10n-2.9.11.ebuild | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/app-office/calligra-l10n/calligra-l10n-2.9.11.ebuild 
b/app-office/calligra-l10n/calligra-l10n-2.9.11.ebuild
index 7c3cb84..582a141 100644
--- a/app-office/calligra-l10n/calligra-l10n-2.9.11.ebuild
+++ b/app-office/calligra-l10n/calligra-l10n-2.9.11.ebuild
@@ -34,8 +34,8 @@ SRC_URI=""
 SLOT="4"
 
 for MY_LANG in ${MY_LANGS} ; do
-       IUSE="${IUSE} linguas_${MY_LANG}"
-       SRC_URI="${SRC_URI} linguas_${MY_LANG}? ( 
${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )"
+       IUSE="${IUSE} l10n_${MY_LANG/[@_]/-}"
+       SRC_URI="${SRC_URI} l10n_${MY_LANG/[@_]/-}? ( 
${URI_BASE}/${PN}-${MY_LANG}-${PV}.tar.xz )"
 done
 unset MY_LANG
 
@@ -45,19 +45,17 @@ src_unpack() {
        local lng dir
        if [[ -z ${A} ]]; then
                elog
-               elog "You either have the LINGUAS variable unset, or it only"
-               elog "contains languages not supported by ${P}."
-               elog "You won't have any additional language support."
+               elog "None of the requested L10N are supported by ${P}."
                elog
                elog "${P} supports these language codes:"
-               elog "${MY_LANGS}"
+               elog "${MY_LANGS//[@_]/-}"
                elog
        fi
 
        [[ -n ${A} ]] && unpack ${A}
        cd "${S}"
 
-       # add all linguas to cmake
+       # add all L10N to cmake
        if [[ -n ${A} ]]; then
                for lng in ${MY_LANGS}; do
                        dir="${PN}-${lng}-${PV}"

Reply via email to