From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A599138206 for ; Sun, 31 Dec 2017 21:23:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1C937E08DD; Sun, 31 Dec 2017 21:23:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1E74E08DD for ; Sun, 31 Dec 2017 21:23:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 47883335C0C for ; Sun, 31 Dec 2017 21:23:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D19F6193 for ; Sun, 31 Dec 2017 21:23:31 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1514751827.661e1ffe79b209b435ad344e1535d91aa60bb4ba.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde5.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 661e1ffe79b209b435ad344e1535d91aa60bb4ba X-VCS-Branch: master Date: Sun, 31 Dec 2017 21:23:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ef80e172-a395-44c7-b81f-01c86960d0f5 X-Archives-Hash: ae0f96b109ac67df0b6ab80a99dc6a00 commit: 661e1ffe79b209b435ad344e1535d91aa60bb4ba Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Dec 31 20:23:47 2017 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Dec 31 20:23:47 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=661e1ffe kde5.eclass: Add KDE_PO_DIRS eclass/kde5.eclass | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass index 826e0abf10..adce61555e 100644 --- a/eclass/kde5.eclass +++ b/eclass/kde5.eclass @@ -95,6 +95,11 @@ EXPORT_FUNCTIONS pkg_setup pkg_nofetch src_unpack src_prepare src_configure src_ # Specifies the location of the KDE handbook if not the default. : ${KDE_DOC_DIR:=doc} +# @ECLASS-VARIABLE: KDE_PO_DIRS +# @DESCRIPTION: +# Specifies the possible locations of KDE l10n files if not the default. +: ${KDE_PO_DIRS:="po poqm"} + # @ECLASS-VARIABLE: KDE_QTHELP # @DESCRIPTION: # If set to "false", do nothing. @@ -523,18 +528,18 @@ kde5_src_prepare() { # drop translations when nls is not wanted if in_iuse nls && ! use nls ; then - if [[ -d po ]] ; then - rm -r po || die - fi - if [[ -d poqm ]] ; then - rm -r poqm || die - fi + local po + for po in ${KDE_PO_DIRS}; do + if [[ -d ${po} ]] ; then + rm -r ${po} || die + fi + done fi # enable only the requested translations when required if [[ -v LINGUAS ]] ; then local po - for po in po poqm; do + for po in ${KDE_PO_DIRS}; do if [[ -d ${po} ]] ; then pushd ${po} > /dev/null || die local lang