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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D81B7158094 for ; Thu, 30 Jun 2022 06:01:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57042E0A60; Thu, 30 Jun 2022 06:01:13 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F1DF3E0A62 for ; Thu, 30 Jun 2022 06:01:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BFD84341540 for ; Thu, 30 Jun 2022 06:01:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2676051F for ; Thu, 30 Jun 2022 06:01:10 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1656568803.c4c4ee8ac824c1f83c963e9ca9c0055a2d3ec5bb.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/nimble.eclass X-VCS-Directories: eclass/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: c4c4ee8ac824c1f83c963e9ca9c0055a2d3ec5bb X-VCS-Branch: dev Date: Thu, 30 Jun 2022 06:01:10 +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: 4a02361c-d1c8-4ef1-bbc5-e4d0eaede994 X-Archives-Hash: 78bd49d56f286279df8ffcd8c68f9118 commit: c4c4ee8ac824c1f83c963e9ca9c0055a2d3ec5bb Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Wed Jun 29 19:52:19 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Thu Jun 30 06:00:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c4c4ee8a nimble.eclass: add nimble_comment_requires Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/nimble.eclass | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/eclass/nimble.eclass b/eclass/nimble.eclass index 1a6dc24af..60bd28689 100644 --- a/eclass/nimble.eclass +++ b/eclass/nimble.eclass @@ -87,6 +87,20 @@ get_package_url() { echo "${_PACKAGE_URL}" } +# @FUNCTION: nimble_comment_requires +# @USAGE: +# @DESCRIPTION: +# Comment out one or more 'requires' calls in the Nimble file. +nimble_comment_requires() { + debug-print-function ${FUNCNAME} "${@}" + + local dep + for dep in "${@}"; do + dep=${dep//\//\\/} + sed "/requires[[:space:]]*\"${dep}\>.*\"/ s/^/#/" -i *.nimble || die + done +} + # @FUNCTION: nimble_src_configure # @USAGE: # @DESCRIPTION: