Gentoo Archives: gentoo-commits

From: Ian Stakenvicius <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: eclass/
Date: Sat, 09 Jul 2016 00:57:56
Message-Id: 1468025785.1727e88276251a2868478f4f8b24b5c673d6a7c6.axs@gentoo
1 commit: 1727e88276251a2868478f4f8b24b5c673d6a7c6
2 Author: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 9 00:56:25 2016 +0000
4 Commit: Ian Stakenvicius <axs <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 9 00:56:25 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=1727e882
7
8 mozlinguas-v2.eclass: minor corrections related to L10N migration
9
10 Some of the L10N-migrated code did not work properly when generating
11 langpacks as part of the build process. This commit fixes those issues
12 and completes the LINGUAS to L10N migration
13
14 eclass/mozlinguas-v2.eclass | 7 ++++---
15 1 file changed, 4 insertions(+), 3 deletions(-)
16
17 diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass
18 index 9f76d31..240f219 100644
19 --- a/eclass/mozlinguas-v2.eclass
20 +++ b/eclass/mozlinguas-v2.eclass
21 @@ -175,7 +175,7 @@ else
22 if [[ -n ${MOZ_L10N_URI_PREFIX} ]]; then
23 SRC_URI+=" l10n_${xflag/[_@]/-}? ( ${MOZ_L10N_URI_PREFIX}${x}${MOZ_L10N_URI_SUFFIX} )"
24 fi
25 - IUSE+=" l10n_${x/[_@]/-}"
26 + IUSE+=" l10n_${xflag/[_@]/-}"
27 done
28 fi
29 unset x xflag
30 @@ -348,11 +348,12 @@ mozlinguas_xpistage_langpacks() {
31 mozlinguas_src_install() {
32 local x
33 mozlinguas_export
34 - if [[ -n ${MOZ_GENERATE_LANGPACKS} ]]; then
35 + if [[ -n ${MOZ_GENERATE_LANGPACKS} ]] && [[ -n ${mozlinguas[*]} ]]; then
36 local repopath="${WORKDIR}/${PN}-generated-langpacks"
37 - mkdir -p "${repopath}"
38 + mkdir -p "${repopath}" || die
39 pushd "${BUILD_OBJ_DIR:-.}"/dist/*/xpi > /dev/null || die
40 for x in "${mozlinguas[@]}"; do
41 + einfo "${MOZ_P}.${x}.langpack.xpi to ${repopath}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"
42 cp "${MOZ_P}.${x}.langpack.xpi" \
43 "${repopath}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi" || die
44 xpi_unpack "${repopath}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}.xpi"