diff options
Diffstat (limited to 'eclass/mozlinguas-v2.eclass')
-rw-r--r-- | eclass/mozlinguas-v2.eclass | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/mozlinguas-v2.eclass b/eclass/mozlinguas-v2.eclass index 77f1d0a439cf..73576e967fa6 100644 --- a/eclass/mozlinguas-v2.eclass +++ b/eclass/mozlinguas-v2.eclass @@ -124,13 +124,18 @@ esac # shouldn't (ie it is an alpha or beta package) : ${MOZ_FORCE_UPSTREAM_L10N:=""} - # @ECLASS-VARIABLE: MOZ_TOO_REGIONALIZED_FOR_L10N # @INTERNAL # @DESCRIPTION: # Upstream identifiers that should not contain region subtags in L10N MOZ_TOO_REGIONALIZED_FOR_L10N=( fy-NL ga-IE gu-IN hi-IN hy-AM nb-NO nn-NO pa-IN sv-SE ) +# @ECLASS-VARIABLE: MOZ_INSTALL_L10N_XPIFILE +# @DESCRIPTION: +# Install langpacks as .xpi file instead of unpacked directory. +# Leave unset to install unpacked +: ${MOZ_INSTALL_L10N_XPIFILE:=""} + # Add l10n_* to IUSE according to available language packs # No language packs for alphas and betas if ! [[ -n ${MOZ_GENERATE_LANGPACKS} ]] ; then @@ -365,8 +370,13 @@ mozlinguas_src_install() { done popd > /dev/null || die fi + for x in "${mozlinguas[@]}"; do - xpi_install "${WORKDIR}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}" + if [[ -n ${MOZ_INSTALL_L10N_XPIFILE} ]]; then + xpi_copy "${WORKDIR}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}" + else + xpi_install "${WORKDIR}/${MOZ_P}-${x}${MOZ_LANGPACK_UNOFFICIAL:+.unofficial}" + fi done } |