/[gentoo-x86]/eclass/mozlinguas.eclass
Gentoo

Diff of /eclass/mozlinguas.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mozlinguas.eclass,v 1.1 2012/02/04 18:28:32 nirbheek Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozlinguas.eclass,v 1.2 2012/02/07 15:17:47 polynomial-c Exp $
4 4
5# @ECLASS: mozlinguas.eclass 5# @ECLASS: mozlinguas.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mozilla@gentoo.org 7# mozilla@gentoo.org
8# @AUTHOR: 8# @AUTHOR:
67# Defaults to '.xpi' 67# Defaults to '.xpi'
68: ${MOZ_LANGPACK_SUFFIX:=".xpi"} 68: ${MOZ_LANGPACK_SUFFIX:=".xpi"}
69 69
70# Add linguas_* to IUSE according to available language packs 70# Add linguas_* to IUSE according to available language packs
71# No language packs for alphas and betas 71# No language packs for alphas and betas
72if ! [[ ${PV} =~ alpha|beta ]]; then 72if ! [[ ${PV} =~ alpha|beta ]]|| { [[ ${PN} == seamonkey ]] && ! [[ ${PV} =~ alpha ]] ; } ; then
73 for x in "${MOZ_LANGS[@]}" ; do 73 for x in "${MOZ_LANGS[@]}" ; do
74 # en and en_US are handled internally 74 # en and en_US are handled internally
75 if [[ ${x} == en ]] || [[ ${x} == en-US ]]; then 75 if [[ ${x} == en ]] || [[ ${x} == en-US ]]; then
76 continue 76 continue
77 fi 77 fi
89# @INTERNAL 89# @INTERNAL
90# @DESCRIPTION: 90# @DESCRIPTION:
91# Generate the list of language packs called "mozlinguas" 91# Generate the list of language packs called "mozlinguas"
92# This list is used to unpack and install the xpi language packs 92# This list is used to unpack and install the xpi language packs
93mozlinguas_export() { 93mozlinguas_export() {
94 if [[ ${PN} == seamonkey ]] ; then
95 [[ ${PV} =~ alpha ]] && return
96 else
94 [[ ${PV} =~ alpha|beta ]] && return 97 [[ ${PV} =~ alpha|beta ]] && return
98 fi
95 local lingua 99 local lingua
96 mozlinguas=() 100 mozlinguas=()
97 for lingua in ${LINGUAS}; do 101 for lingua in ${LINGUAS}; do
98 if has ${lingua} en en_US; then 102 if has ${lingua} en en_US; then
99 # For mozilla products, en and en_US are handled internally 103 # For mozilla products, en and en_US are handled internally

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20