mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
nim-utils.eclass: add ekoch helper
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -61,6 +61,30 @@ enim() {
|
||||
"$@" || die -n "${*} failed"
|
||||
}
|
||||
|
||||
# @FUNCTION: ekoch
|
||||
# @USAGE: [<args>...]
|
||||
# @DESCRIPTION:
|
||||
# Call koch, passing the supplied arguments. Used only for building compilers
|
||||
# that originate from Nim.
|
||||
# This function dies if koch fails.
|
||||
ekoch() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local koch
|
||||
case "${CATEGORY}/${PN}" in
|
||||
dev-lang/nim)
|
||||
koch="./koch"
|
||||
[[ -e ${koch} ]] || enim c koch
|
||||
;;
|
||||
*)
|
||||
eerror "${FUNCNAME} is not implemented for ${CATEGORY}/${PN}" ;;
|
||||
esac
|
||||
|
||||
set -- ${koch} "${@}"
|
||||
echo "$@" >&2
|
||||
"$@" || die -n "${*} failed"
|
||||
}
|
||||
|
||||
# @FUNCTION: etestament
|
||||
# @USAGE: [<args>...]
|
||||
# @DESCRIPTION:
|
||||
|
||||
Reference in New Issue
Block a user