summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-06-25 11:54:56 +0200
committerUlrich Müller <ulm@gentoo.org>2016-06-25 11:55:37 +0200
commit50db73d3bf38a9cab824d02086557616a2bd4b25 (patch)
tree6cb915653c43b6da656e5d5f449460cf26066018
parentapp-doc/kicad-doc: Migrate from LINGUAS to L10N. (diff)
downloadgentoo-50db73d3bf38a9cab824d02086557616a2bd4b25.tar.gz
gentoo-50db73d3bf38a9cab824d02086557616a2bd4b25.tar.bz2
gentoo-50db73d3bf38a9cab824d02086557616a2bd4b25.zip
app-doc/php-docs: Migrate from LINGUAS to L10N.
Package-Manager: portage-2.3.0
-rw-r--r--app-doc/php-docs/php-docs-20101029-r1.ebuild25
1 files 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 a7a2597a28b..2e1399554e2 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