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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0808D15838C for ; Mon, 22 Jan 2024 10:54:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DD25E2A59; Mon, 22 Jan 2024 10:54:49 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 2F2E0E2A59 for ; Mon, 22 Jan 2024 10:54:49 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 35D52343244 for ; Mon, 22 Jan 2024 10:54:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72F0D13AA for ; Mon, 22 Jan 2024 10:54:46 +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: <1705915851.5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7.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: 5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7 X-VCS-Branch: dev Date: Mon, 22 Jan 2024 10:54: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: 43546e77-451c-45ba-96db-568f2b7777d4 X-Archives-Hash: df0042a9158a467ca156bff7c83377ff commit: 5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Mon Jan 22 09:30:51 2024 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Mon Jan 22 09:30:51 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5e8f7b03 nimble.eclass: mark some variables readonly Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> eclass/nimble.eclass | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/eclass/nimble.eclass b/eclass/nimble.eclass index a393ee2632..2fa48b48f0 100644 --- a/eclass/nimble.eclass +++ b/eclass/nimble.eclass @@ -12,6 +12,7 @@ # @EXAMPLE: # Typical ebuild for a Nim application: # +# @CODE@ # EAPI=8 # # inherit nimble @@ -24,17 +25,18 @@ # nimble_src_compile # nimble_build scss # } -# -# ... +# @CODE@ # # # Typical ebuild for a Nim library: # +# @CODE@ # EAPI=8 # # inherit nimble # # ... +# # SLOT=${PV} # # RDEPEND=" @@ -43,6 +45,7 @@ # " # # set_package_url "https://github.com/example/example" +# @CODE@ case ${EAPI} in @@ -82,7 +85,7 @@ set_package_url() { (( $# == 1 )) || \ die "${FUNCNAME} takes exactly one argument" - _PACKAGE_URL="${1}" + readonly _PACKAGE_URL="${1}" } # @FUNCTION: get_package_url @@ -124,10 +127,7 @@ nimble_comment_requires() { nimble_src_configure() { debug-print-function ${FUNCNAME} "${@}" - [[ -n "${NINJA_DEPEND}" ]] || \ - ewarn "Unknown value '${NINJA}' for \${NINJA}" - - BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}" + readonly BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}" [[ -z ${mynimargs} ]] && local -a mynimargs=() local mynimargstype=$(declare -p mynimargs 2>&-)