From: "Nirbheek Chauhan" <nirbheek@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/mozilla:master commit in: eclass/
Date: Wed, 1 Feb 2012 20:54:11 +0000 (UTC) [thread overview]
Message-ID: <5c86018267cfd9881271c66f43ab418b8ab24f1d.nirbheek@gentoo> (raw)
commit: 5c86018267cfd9881271c66f43ab418b8ab24f1d
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 1 20:54:03 2012 +0000
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Wed Feb 1 20:54:03 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=5c860182
mozlinguas.eclass: Add mgorny's suggestions
---
eclass/mozlinguas.eclass | 42 +++++++++++++++++++++---------------------
1 files changed, 21 insertions(+), 21 deletions(-)
diff --git a/eclass/mozlinguas.eclass b/eclass/mozlinguas.eclass
index ebc7de7..d19149d 100644
--- a/eclass/mozlinguas.eclass
+++ b/eclass/mozlinguas.eclass
@@ -61,39 +61,39 @@ esac
# Add linguas_* to IUSE according to available language packs
# No language packs for alphas and betas
if ! [[ ${PV} =~ alpha|beta ]]; then
- for X in "${LANGS[@]}" ; do
+ for x in "${LANGS[@]}" ; do
# en and en_US are handled internally
- if [[ ${X} = en ]] || [[ ${X} = en-US ]]; then
+ if [[ ${x} = en ]] || [[ ${x} = en-US ]]; then
continue
fi
SRC_URI="${SRC_URI}
- linguas_${X/-/_}?
- ( ${FTP_URI}/${LANGPACK_PREFIX}${X}${LANGPACK_SUFFIX} -> ${MOZ_P}-${X}.xpi )"
- IUSE="${IUSE} linguas_${X/-/_}"
+ linguas_${x/-/_}?
+ ( ${FTP_URI}/${LANGPACK_PREFIX}${x}${LANGPACK_SUFFIX} -> ${MOZ_P}-${x}.xpi )"
+ IUSE="${IUSE} linguas_${x/-/_}"
# We used to do some magic if specific/generic locales were missing, but
# we stopped doing that due to bug 325195.
done
fi
-linguas() {
+mozlinguas() {
[[ ${PV} =~ alpha|beta ]] && return
# Generate the list of language packs called "linguas"
# This list is used to unpack and install the xpi language packs
- local LINGUA
- for LINGUA in ${LINGUAS}; do
- if has ${LINGUA} en en_US; then
+ local lingua
+ for lingua in ${LINGUAS}; do
+ if has ${lingua} en en_US; then
# For mozilla products, en and en_US are handled internally
continue
# If this language is supported by ${P},
- elif has ${LINGUA} "${LANGS[@]//-/_}"; then
+ elif has ${lingua} "${LANGS[@]//-/_}"; then
# Add the language to linguas, if it isn't already there
- has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-})
+ has ${lingua//_/-} "${linguas[@]}" || linguas+=(${lingua//_/-})
continue
- # For each short LINGUA that isn't in LANGS,
+ # For each short lingua that isn't in LANGS,
# We used to add *all* long LANGS to the linguas list,
# but we stopped doing that due to bug 325195.
fi
- ewarn "Sorry, but ${P} does not support the ${LINGUA} locale"
+ ewarn "Sorry, but ${P} does not support the ${lingua} locale"
done
}
@@ -101,11 +101,11 @@ linguas() {
# @DESCRIPTION:
# Unpack xpi language packs according to the user's LINGUAS settings
mozlinguas_src_unpack() {
- local X
- linguas
- for X in "${linguas[@]}"; do
+ local x
+ mozlinguas
+ for x in "${linguas[@]}"; do
# FIXME: Add support for unpacking xpis to portage
- xpi_unpack "${MOZ_P}-${X}.xpi"
+ xpi_unpack "${MOZ_P}-${x}.xpi"
done
if [[ "${linguas[*]}" != "" && "${linguas[*]}" != "en" ]]; then
einfo "Selected language packs (first will be default): ${linguas[*]}"
@@ -116,9 +116,9 @@ mozlinguas_src_unpack() {
# @DESCRIPTION:
# Install xpi language packs according to the user's LINGUAS settings
mozlinguas_src_install() {
- local X
- linguas
- for X in "${linguas[@]}"; do
- xpi_install "${WORKDIR}/${MOZ_P}-${X}"
+ local x
+ mozlinguas
+ for x in "${linguas[@]}"; do
+ xpi_install "${WORKDIR}/${MOZ_P}-${x}"
done
}
next reply other threads:[~2012-02-01 20:54 UTC|newest]
Thread overview: 123+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 20:54 Nirbheek Chauhan [this message]
-- strict thread matches above, loose matches on Subject: below --
2019-03-20 17:26 [gentoo-commits] proj/mozilla:master commit in: eclass/ Jory Pratt
2018-08-16 16:48 Ian Stakenvicius
2018-08-15 21:11 Ian Stakenvicius
2018-08-15 19:30 Ian Stakenvicius
2018-08-15 17:18 Ian Stakenvicius
2018-06-18 4:41 Jory Pratt
2018-05-22 13:44 Jory Pratt
2018-05-22 1:19 Jory Pratt
2018-05-13 9:09 Lars Wendler
2018-02-19 12:25 Jory Pratt
2018-01-31 15:35 Ian Stakenvicius
2018-01-29 5:12 Ian Stakenvicius
2018-01-26 4:28 Ian Stakenvicius
2018-01-26 4:28 Ian Stakenvicius
2017-12-21 14:16 Jory Pratt
2017-11-14 16:18 Ian Stakenvicius
2017-10-26 8:52 Lars Wendler
2017-09-28 17:07 Ian Stakenvicius
2017-09-10 21:56 Jory Pratt
2017-08-29 0:11 Jory Pratt
2017-08-22 14:57 Lars Wendler
2017-08-17 9:31 Lars Wendler
2017-07-25 1:58 Ian Stakenvicius
2017-06-06 18:01 Jory Pratt
2017-05-31 20:38 Jory Pratt
2017-05-31 20:37 Jory Pratt
2017-05-31 20:37 Jory Pratt
2017-05-31 20:19 Jory Pratt
2017-05-04 17:46 Ian Stakenvicius
2017-04-28 13:58 Ian Stakenvicius
2017-04-19 21:00 Ian Stakenvicius
2017-04-19 21:00 Ian Stakenvicius
2017-04-19 21:00 Ian Stakenvicius
2017-04-13 17:34 Ian Stakenvicius
2017-04-04 19:42 Ian Stakenvicius
2017-04-04 15:02 Ian Stakenvicius
2017-03-20 21:46 Andrew Savchenko
2017-03-20 19:22 Andrew Savchenko
2017-03-20 17:31 Andrew Savchenko
2017-02-06 2:30 Jory Pratt
2017-02-04 18:30 Jory Pratt
2017-02-03 3:41 Jory Pratt
2017-02-02 3:02 Jory Pratt
2016-12-01 8:55 Lars Wendler
2016-11-29 17:17 Lars Wendler
2016-10-16 21:49 Jory Pratt
2016-10-09 17:59 Jory Pratt
2016-10-09 14:35 Ian Stakenvicius
2016-09-08 22:18 Ian Stakenvicius
2016-09-04 23:31 Jory Pratt
2016-09-04 23:31 Jory Pratt
2016-08-04 16:09 Ian Stakenvicius
2016-07-25 21:27 Ian Stakenvicius
2016-07-25 20:14 Ian Stakenvicius
2016-07-25 20:12 Ian Stakenvicius
2016-07-12 19:45 Ian Stakenvicius
2016-07-11 18:05 Ian Stakenvicius
2016-07-09 3:25 Ian Stakenvicius
2016-07-09 0:57 Ian Stakenvicius
2016-07-05 1:15 Ian Stakenvicius
2016-04-28 5:50 Lars Wendler
2016-04-27 21:27 Ian Stakenvicius
2016-03-28 14:57 Ian Stakenvicius
2016-03-28 14:57 Ian Stakenvicius
2016-02-04 16:39 Ian Stakenvicius
2016-01-11 1:25 Jory Pratt
2016-01-11 1:19 Jory Pratt
2016-01-11 1:19 Jory Pratt
2016-01-04 21:09 Ian Stakenvicius
2016-01-01 22:29 Jory Pratt
2015-12-31 22:05 Jory Pratt
2015-11-27 19:24 [gentoo-commits] proj/mozilla:crossdev " Ian Stakenvicius
2015-11-27 19:25 ` [gentoo-commits] proj/mozilla:master " Ian Stakenvicius
2015-11-10 8:33 Lars Wendler
2015-11-09 21:55 Jory Pratt
2015-11-09 21:53 Jory Pratt
2015-11-09 19:12 Jory Pratt
2015-10-30 18:41 Jory Pratt
2015-08-14 16:24 Ian Stakenvicius
2015-07-17 18:27 Ian Stakenvicius
2015-07-17 17:34 Ian Stakenvicius
2015-07-16 17:48 Ian Stakenvicius
2015-07-16 16:56 Ian Stakenvicius
2015-07-16 16:22 Ian Stakenvicius
2015-07-16 16:15 Ian Stakenvicius
2015-07-16 15:41 Ian Stakenvicius
2015-07-14 22:16 Ian Stakenvicius
2015-07-14 22:16 Ian Stakenvicius
2015-06-02 19:48 Ian Stakenvicius
2015-03-10 14:07 Ian Stakenvicius
2014-11-06 14:46 Ian Stakenvicius
2014-10-27 19:12 Ian Stakenvicius
2014-10-16 21:18 Ian Stakenvicius
2014-08-25 19:25 Ian Stakenvicius
2013-10-29 13:39 Jory Pratt
2013-10-26 2:30 Jory Pratt
2013-08-28 15:24 Ian Stakenvicius
2013-08-26 14:40 Jory Pratt
2013-05-27 21:52 Jory Pratt
2013-05-22 23:37 Jory Pratt
2013-05-22 13:32 Lars Wendler
2013-04-10 2:01 Jory Pratt
2013-03-25 13:10 Jory Pratt
2013-03-24 19:09 Jory Pratt
2013-03-10 0:14 Jory Pratt
2012-12-03 15:45 Lars Wendler
2012-09-09 16:23 Jory Pratt
2012-08-02 1:59 Jory Pratt
2012-07-18 0:17 Jory Pratt
2012-03-26 3:40 Jory Pratt
2012-03-04 14:17 Jory Pratt
2012-02-28 5:03 Jory Pratt
2012-02-04 6:10 Nirbheek Chauhan
2012-01-26 14:58 Nirbheek Chauhan
2011-11-21 16:34 Jory Pratt
2011-11-21 16:33 Jory Pratt
2011-11-21 15:49 Jory Pratt
2011-11-16 14:53 Jory Pratt
2011-03-17 13:33 Jory Pratt
2011-03-16 13:41 Jory Pratt
2011-03-16 4:27 Jory Pratt
2011-03-14 6:58 Nirbheek Chauhan
2011-03-09 2:30 Mounir Lamouri
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5c86018267cfd9881271c66f43ab418b8ab24f1d.nirbheek@gentoo \
--to=nirbheek@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox