diff options
author | 2024-01-22 14:30:51 +0500 | |
---|---|---|
committer | 2024-01-22 14:30:51 +0500 | |
commit | 5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7 (patch) | |
tree | 2e68e877e12b251975c27e722f23e526ca870e8a /eclass | |
parent | gui-apps/wmenu: add 0.1.6, drop 0.1.4 (diff) | |
download | guru-5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7.tar.gz guru-5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7.tar.bz2 guru-5e8f7b0393d379c8e0945859fc9d9e4e6302ceb7.zip |
nimble.eclass: mark some variables readonly
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/nimble.eclass | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/eclass/nimble.eclass b/eclass/nimble.eclass index a393ee263..2fa48b48f 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>&-) |