eclass/lua-single: Sync with Gentoo

It's from Gentoo commit c8af7eb1285a2683460618b71e2e9a14ca6badcd.
This commit is contained in:
Flatcar Buildbot 2024-10-21 07:06:44 +00:00
parent ddd1ab2336
commit 7bd475e66b

View File

@ -285,7 +285,7 @@ unset -f _lua_single_set_globals
# #
# This is an internal function used to implement lua_gen_cond_dep. # This is an internal function used to implement lua_gen_cond_dep.
_lua_gen_usedep() { _lua_gen_usedep() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
local impl matches=() local impl matches=()
@ -338,7 +338,7 @@ _lua_impl_matches() {
# Verify whether the patterns passed to the eclass function are correct # Verify whether the patterns passed to the eclass function are correct
# (i.e. can match any valid implementation). Dies on wrong pattern. # (i.e. can match any valid implementation). Dies on wrong pattern.
_lua_verify_patterns() { _lua_verify_patterns() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
local impl pattern local impl pattern
for pattern; do for pattern; do
@ -381,7 +381,7 @@ _lua_verify_patterns() {
# dev-lua/backported_core_module[lua_targets_lua5-3(-)?,...] )" # dev-lua/backported_core_module[lua_targets_lua5-3(-)?,...] )"
# @CODE # @CODE
lua_gen_cond_dep() { lua_gen_cond_dep() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
local impl matches=() local impl matches=()
@ -440,7 +440,7 @@ lua_gen_cond_dep() {
# )" # )"
# @CODE # @CODE
lua_gen_impl_dep() { lua_gen_impl_dep() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
local impl local impl
local matches=() local matches=()
@ -465,7 +465,7 @@ lua_gen_impl_dep() {
# Determine what the selected Lua implementation is and set # Determine what the selected Lua implementation is and set
# the Lua build environment up for it. # the Lua build environment up for it.
lua_setup() { lua_setup() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
unset ELUA unset ELUA
@ -520,7 +520,7 @@ lua_setup() {
# @DESCRIPTION: # @DESCRIPTION:
# Runs lua_setup. # Runs lua_setup.
lua-single_pkg_setup() { lua-single_pkg_setup() {
debug-print-function ${FUNCNAME} "${@}" debug-print-function ${FUNCNAME} "$@"
[[ ${MERGE_TYPE} != binary ]] && lua_setup [[ ${MERGE_TYPE} != binary ]] && lua_setup
} }