mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
nimble.eclass: mark some variables readonly
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
# @EXAMPLE:
|
# @EXAMPLE:
|
||||||
# Typical ebuild for a Nim application:
|
# Typical ebuild for a Nim application:
|
||||||
#
|
#
|
||||||
|
# @CODE@
|
||||||
# EAPI=8
|
# EAPI=8
|
||||||
#
|
#
|
||||||
# inherit nimble
|
# inherit nimble
|
||||||
@@ -24,17 +25,18 @@
|
|||||||
# nimble_src_compile
|
# nimble_src_compile
|
||||||
# nimble_build scss
|
# nimble_build scss
|
||||||
# }
|
# }
|
||||||
#
|
# @CODE@
|
||||||
# ...
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Typical ebuild for a Nim library:
|
# Typical ebuild for a Nim library:
|
||||||
#
|
#
|
||||||
|
# @CODE@
|
||||||
# EAPI=8
|
# EAPI=8
|
||||||
#
|
#
|
||||||
# inherit nimble
|
# inherit nimble
|
||||||
#
|
#
|
||||||
# ...
|
# ...
|
||||||
|
#
|
||||||
# SLOT=${PV}
|
# SLOT=${PV}
|
||||||
#
|
#
|
||||||
# RDEPEND="
|
# RDEPEND="
|
||||||
@@ -43,6 +45,7 @@
|
|||||||
# "
|
# "
|
||||||
#
|
#
|
||||||
# set_package_url "https://github.com/example/example"
|
# set_package_url "https://github.com/example/example"
|
||||||
|
# @CODE@
|
||||||
|
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
@@ -82,7 +85,7 @@ set_package_url() {
|
|||||||
(( $# == 1 )) || \
|
(( $# == 1 )) || \
|
||||||
die "${FUNCNAME} takes exactly one argument"
|
die "${FUNCNAME} takes exactly one argument"
|
||||||
|
|
||||||
_PACKAGE_URL="${1}"
|
readonly _PACKAGE_URL="${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# @FUNCTION: get_package_url
|
# @FUNCTION: get_package_url
|
||||||
@@ -124,10 +127,7 @@ nimble_comment_requires() {
|
|||||||
nimble_src_configure() {
|
nimble_src_configure() {
|
||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "${@}"
|
||||||
|
|
||||||
[[ -n "${NINJA_DEPEND}" ]] || \
|
readonly BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
|
||||||
ewarn "Unknown value '${NINJA}' for \${NINJA}"
|
|
||||||
|
|
||||||
BUILD_DIR="${BUILD_DIR:-${WORKDIR}/${P}-build}"
|
|
||||||
|
|
||||||
[[ -z ${mynimargs} ]] && local -a mynimargs=()
|
[[ -z ${mynimargs} ]] && local -a mynimargs=()
|
||||||
local mynimargstype=$(declare -p mynimargs 2>&-)
|
local mynimargstype=$(declare -p mynimargs 2>&-)
|
||||||
|
|||||||
Reference in New Issue
Block a user