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 1F224138335 for ; Sat, 21 Dec 2019 10:40:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 34159E0909; Sat, 21 Dec 2019 10:40:51 +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 1A334E0909 for ; Sat, 21 Dec 2019 10:40:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 3F55934D598 for ; Sat, 21 Dec 2019 10:40:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2706B98F for ; Sat, 21 Dec 2019 10:40:46 +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: <1576924822.8e2b8c86f2a4161848ff16567f20eb905d741292.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/cmake.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 8e2b8c86f2a4161848ff16567f20eb905d741292 X-VCS-Branch: master Date: Sat, 21 Dec 2019 10:40:46 +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: d2e43d45-1e0d-42cc-b7ba-fc3ad5e24b3e X-Archives-Hash: 995578213bdb23c8c26e077202fa4780 commit: 8e2b8c86f2a4161848ff16567f20eb905d741292 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 17 11:11:46 2019 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sat Dec 21 10:40:22 2019 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=8e2b8c86 cmake.eclass: Array support for CMAKE_REMOVE_MODULES_LIST Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/cmake.eclass | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass index 0cf10c14a8..587ba1d9b5 100644 --- a/eclass/cmake.eclass +++ b/eclass/cmake.eclass @@ -331,8 +331,15 @@ cmake_src_prepare() { die "FATAL: Unable to find CMakeLists.txt" fi + local modules_list + if [[ $(declare -p CMAKE_REMOVE_MODULES_LIST) == "declare -a"* ]]; then + modules_list=( "${CMAKE_REMOVE_MODULES_LIST[@]}" ) + else + modules_list=( ${CMAKE_REMOVE_MODULES_LIST} ) + fi + local name - for name in ${CMAKE_REMOVE_MODULES_LIST} ; do + for name in "${modules_list[@]}" ; do find "${S}" -name ${name}.cmake -exec rm -v {} + || die done