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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 73244158042 for ; Fri, 15 Nov 2024 21:08:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61FB7E090A; Fri, 15 Nov 2024 21:08:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44C3CE090A for ; Fri, 15 Nov 2024 21:08:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53C68342FFE for ; Fri, 15 Nov 2024 21:08:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3AA71D6E for ; Fri, 15 Nov 2024 21:08:25 +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: <1731704559.efd6e1cf1dfaacb2bdab06131f56ea09f103182e.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/ecm.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: efd6e1cf1dfaacb2bdab06131f56ea09f103182e X-VCS-Branch: master Date: Fri, 15 Nov 2024 21:08:25 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 80aa8dc6-3a40-4b02-98dc-d7a594460e1a X-Archives-Hash: be95e26b8fde8d794dde0909be152054 commit: efd6e1cf1dfaacb2bdab06131f56ea09f103182e Author: Andreas Sturmlechner gentoo org> AuthorDate: Fri Oct 18 18:02:11 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Fri Nov 15 21:02:39 2024 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=efd6e1cf ecm.eclass: Switch ECM_PO_DIRS to being an array Zero current use in ::kde or ::gentoo and highly unlikely anywhere else, so I think we can get away with it. Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/ecm.eclass | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass index 44b09ba8ed..3abf9e88a3 100644 --- a/eclass/ecm.eclass +++ b/eclass/ecm.eclass @@ -104,11 +104,17 @@ fi : "${ECM_HANDBOOK_DIR:=doc}" # @ECLASS_VARIABLE: ECM_PO_DIRS +# @PRE_INHERIT # @DESCRIPTION: # Specifies directories of l10n files relative to ${S} to be processed by # KF${_KFSLOT}I18n (ki18n_install). If IUSE nls exists and is disabled then # disable build of these directories in CMakeLists.txt. -: "${ECM_PO_DIRS:="po poqm"}" +if [[ ${ECM_PO_DIRS} ]]; then + [[ ${ECM_PO_DIRS@a} == *a* ]] || + die "ECM_PO_DIRS must be an array" +else + ECM_PO_DIRS=( po poqm ) +fi # @ECLASS_VARIABLE: ECM_QTHELP # @DEFAULT_UNSET @@ -338,7 +344,7 @@ _ecm_strip_handbook_translations() { fi local lang po - for po in ${ECM_PO_DIRS}; do + for po in ${ECM_PO_DIRS[*]}; do if [[ -d ${po} ]] ; then pushd ${po} > /dev/null || die for lang in *; do