mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
eclass/llvm: Sync with Gentoo
It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
parent
2dbf8faaa5
commit
ddd1ab2336
@ -63,7 +63,7 @@ case ${EAPI} in
|
||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||
esac
|
||||
|
||||
if [[ ! ${_LLVM_ECLASS} ]]; then
|
||||
if [[ -z ${_LLVM_ECLASS} ]]; then
|
||||
_LLVM_ECLASS=1
|
||||
|
||||
inherit llvm-utils
|
||||
@ -119,7 +119,7 @@ declare -g -r _LLVM_KNOWN_SLOTS=( {19..8} )
|
||||
# the function defaults to checking whether sys-devel/llvm:${LLVM_SLOT}
|
||||
# is installed.
|
||||
get_llvm_slot() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local hv_switch=-d
|
||||
while [[ ${1} == -* ]]; do
|
||||
@ -170,7 +170,7 @@ get_llvm_slot() {
|
||||
#
|
||||
# The options and behavior is the same as for get_llvm_slot.
|
||||
get_llvm_prefix() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
local prefix=${ESYSROOT}
|
||||
[[ ${1} == -b ]] && prefix=${BROOT}
|
||||
@ -193,7 +193,7 @@ get_llvm_prefix() {
|
||||
# If any other behavior is desired, the contents of the function
|
||||
# should be inlined into the ebuild and modified as necessary.
|
||||
llvm_pkg_setup() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
|
||||
if [[ ${LLVM_ECLASS_SKIP_PKG_SETUP} ]]; then
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user