From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-doc/php-docs/
Date: Sat, 25 Jun 2016 09:55:50 +0000 (UTC) [thread overview]
Message-ID: <1466848537.50db73d3bf38a9cab824d02086557616a2bd4b25.ulm@gentoo> (raw)
commit: 50db73d3bf38a9cab824d02086557616a2bd4b25
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 25 09:54:56 2016 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 25 09:55:37 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50db73d3
app-doc/php-docs: Migrate from LINGUAS to L10N.
Package-Manager: portage-2.3.0
app-doc/php-docs/php-docs-20101029-r1.ebuild | 25 +++++++++++++------------
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/app-doc/php-docs/php-docs-20101029-r1.ebuild b/app-doc/php-docs/php-docs-20101029-r1.ebuild
index a7a2597..2e13995 100644
--- a/app-doc/php-docs/php-docs-20101029-r1.ebuild
+++ b/app-doc/php-docs/php-docs-20101029-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -16,26 +16,26 @@ IUSE=""
RESTRICT="strip binchecks"
-LANGS="en de es fa fr ja pl pt_BR ro tr"
+LANGS="en de es fa fr ja pl pt-BR ro tr"
for lang in ${LANGS} ; do
- IUSE="${IUSE} linguas_${lang}"
- SRC_URI="${SRC_URI}
- linguas_${lang}? ( http://olemarkus.org/~olemarkus/gentoo/${MY_PN}_${lang}-${PV}.tar.gz )"
+ IUSE+=" l10n_${lang}"
+ SRC_URI+=" l10n_${lang}? ( http://olemarkus.org/~olemarkus/gentoo/${MY_PN}_${lang/-/_}-${PV}.tar.gz )"
done
REQUIRED_USE="|| ( ${IUSE} )"
# Set English to default
-IUSE="${IUSE/linguas_en/+linguas_en}"
+IUSE="${IUSE/l10n_en/+l10n_en}"
S=${WORKDIR}
src_unpack() {
for lang in ${LANGS} ; do
- if use linguas_${lang} ; then
- mkdir ${lang}
- pushd ${lang} >/dev/null
- unpack ${MY_PN}_${lang}-${PV}.tar.gz || die "unpack failed on ${lang}"
+ if use l10n_${lang} ; then
+ mkdir ${lang/-/_}
+ pushd ${lang/-/_} >/dev/null
+ unpack ${MY_PN}_${lang/-/_}-${PV}.tar.gz \
+ || die "unpack failed on ${lang}"
popd >/dev/null
fi
done
@@ -50,9 +50,10 @@ src_install() {
dodir /usr/share/doc/${PF}
for lang in ${LANGS} ; do
- if use linguas_${lang} ; then
+ if use l10n_${lang} ; then
ebegin "Installing ${lang} manual, will take a while"
- cp -R "${WORKDIR}"/${lang} "${ED}"/usr/share/doc/${PF} || die "cp failed on ${lang}"
+ cp -R "${WORKDIR}"/${lang/-/_} "${ED}"/usr/share/doc/${PF} \
+ || die "cp failed on ${lang}"
eend $?
fi
done
next reply other threads:[~2016-06-25 9:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-25 9:55 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-08-22 21:27 [gentoo-commits] repo/gentoo:master commit in: app-doc/php-docs/ Michał Górny
2019-02-03 2:53 Brian Evans
2020-06-17 18:08 Sergei Trofimovich
2020-06-17 18:45 Thomas Deutschmann
2020-06-17 18:53 Brian Evans
2020-06-17 20:36 Sergei Trofimovich
2020-09-25 19:21 Aaron Bauman
2020-12-28 9:03 Sam James
2021-12-12 14:23 Yixun Lan
2023-12-09 18:39 Arthur Zamarin
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=1466848537.50db73d3bf38a9cab824d02086557616a2bd4b25.ulm@gentoo \
--to=ulm@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