Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde:master commit in: kde-apps/kdepim-l10n/
Date: Sun, 03 Jul 2016 17:53:31
Message-Id: 1467568370.78565ea3fdb167fa375e352f70ad5eb22c0318a4.johu@gentoo
1 commit: 78565ea3fdb167fa375e352f70ad5eb22c0318a4
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 3 09:36:48 2016 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 17:52:50 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=78565ea3
7
8 kde-apps/kdepim-l10n: Sync LINGUAS->L10N with tree
9
10 Package-Manager: portage-2.2.28
11
12 Signed-off-by: Johannes Huber <johu <AT> gentoo.org>
13
14 kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild | 15 +++++++--------
15 1 file changed, 7 insertions(+), 8 deletions(-)
16
17 diff --git a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
18 index 6f7fe07..69c0e23 100644
19 --- a/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
20 +++ b/kde-apps/kdepim-l10n/kdepim-l10n-16.04.2.ebuild
21 @@ -27,14 +27,14 @@ MY_LANGS="ar ast bg bs ca ca@valencia cs da de el en_GB eo es et eu fa fi fr ga
22 gl he hi hr hu ia id is it ja kk km ko lt lv mr nb nds nl nn pa pl pt pt_BR ro
23 ru sk sl sr sv tr ug uk wa zh_CN zh_TW"
24
25 -IUSE="$(printf 'linguas_%s ' ${MY_LANGS})"
26 +IUSE="$(printf 'l10n_%s ' ${MY_LANGS//[@_]/-})"
27
28 PIM_L10N="kdepim kdepimlibs kdepim-runtime pim"
29
30 URI_BASE="${SRC_URI/-${PV}.tar.xz/}"
31 SRC_URI=""
32 for my_lang in ${MY_LANGS} ; do
33 - SRC_URI="${SRC_URI} linguas_${my_lang}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${my_lang}-${PV}.tar.xz )"
34 + SRC_URI="${SRC_URI} l10n_${my_lang/[@_]/-}? ( ${URI_BASE/kdepim/kde}/kde-l10n-${my_lang}-${PV}.tar.xz )"
35 done
36
37 S="${WORKDIR}"
38 @@ -42,12 +42,10 @@ S="${WORKDIR}"
39 pkg_setup() {
40 if [[ -z ${A} ]]; then
41 elog
42 - elog "You either have the LINGUAS variable unset, or it only"
43 - elog "contains languages not supported by ${P}."
44 - elog "You won't have any additional language support."
45 + elog "None of the requested L10N are supported by ${P}."
46 elog
47 elog "${P} supports these language codes:"
48 - elog "${MY_LANGS}"
49 + elog "${MY_LANGS//[@_]/-}"
50 elog
51 fi
52 [[ -n ${A} ]] && kde5_pkg_setup
53 @@ -65,7 +63,7 @@ src_prepare() {
54 default
55 [[ -n ${A} ]] || return
56
57 - # add all linguas to cmake
58 + # add all l10n to cmake
59 cat <<-EOF > CMakeLists.txt || die
60 project(kdepim-l10n)
61 cmake_minimum_required(VERSION 2.8.12)
62 @@ -87,10 +85,11 @@ EOF
63
64 # Remove everything except kdepim, kdepimlibs, kdepim-runtime and pim
65 local LNG DIR
66 - for LNG in ${LINGUAS}; do
67 + for LNG in ${MY_LANGS}; do
68 DIR="kde-l10n-${LNG}-${PV}"
69 SDIR="${S}/${DIR}/5/${LNG}"
70 if [[ -d "${DIR}" ]] ; then
71 + einfo " L10N: ${LNG/[@_]/-}"
72
73 for SUBDIR in data docs messages scripts ; do
74 if [[ -d "${SDIR}/${SUBDIR}" ]] ; then