mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/llvm-r1: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
51b7480a72
commit
577bca0455
@ -42,7 +42,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LLVM_R1_ECLASS} ]]; then
|
||||
if [[ -z ${_LLVM_R1_ECLASS} ]]; then
|
||||
_LLVM_R1_ECLASS=1
|
||||
|
||||
inherit llvm-utils
|
||||
@ -101,7 +101,7 @@ _LLVM_NEWEST_STABLE=18
|
||||
# packages using the same eclass, to enforce a LLVM slot match.
|
||||
|
||||
_llvm_set_globals() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ${LLVM_COMPAT@a} != *a* ]]; then
|
||||
die "LLVM_COMPAT must be set to an array before inheriting ${ECLASS}"
|
||||
@ -169,7 +169,7 @@ unset -f _llvm_set_globals
|
||||
# "
|
||||
# @CODE
|
||||
llvm_gen_dep() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
[[ ${#} -ne 1 ]] && die "Usage: ${FUNCNAME} <dependency>"
|
||||
|
||||
@ -194,7 +194,7 @@ llvm_gen_dep() {
|
||||
# With "-b" option, the path is prefixed by BROOT. LLVM dependencies
|
||||
# should be in BDEPEND then.
|
||||
get_llvm_prefix() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
[[ ${#} -gt 1 ]] && die "Usage: ${FUNCNAME} [-b|-d]"
|
||||
|
||||
@ -228,7 +228,7 @@ get_llvm_prefix() {
|
||||
# Note that this function is not exported if LLVM_OPTIONAL is set.
|
||||
# In that case, it needs to be called manually.
|
||||
llvm-r1_pkg_setup() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ${MERGE_TYPE} != binary ]]; then
|
||||
[[ -z ${LLVM_SLOT} ]] && die "LLVM_SLOT unset (broken USE_EXPAND?)"
|
||||
|
Loading…
Reference in New Issue
Block a user