diff options
Diffstat (limited to 'dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild')
-rw-r--r-- | dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild index 2ae2ce9b80cb..0bfc818d9698 100644 --- a/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild +++ b/dev-util/mingw64-toolchain/mingw64-toolchain-10.0.0-r1.ebuild @@ -199,12 +199,14 @@ src_compile() { # econf is not allowed in src_compile and its defaults are # mostly unused here, so use configure directly - eval ' - local conf=( "${WORKDIR}/${1}"/configure "${conf[@]}" ) - [[ ${conf_'${id}'@a} =~ a ]] && conf+=( "${conf_'${id}'[@]}" ) - [[ ${2} && ${conf_'${id}_${2}'@a} =~ a ]] && conf+=( "${conf_'${id}_${2}'[@]}" ) - conf+=( ${EXTRA_ECONF} ${MWT_'${id^^}'_CONF} ) - [[ ${2} ]] && conf+=( ${MWT_'${1^^}_${2^^}'_CONF} )' + local conf=( "${WORKDIR}/${1}"/configure "${conf[@]}" ) + + local -n conf_id=conf_${id} conf_id2=conf_${id}_${2} + [[ ${conf_id@a} == *a* ]] && conf+=( "${conf_id[@]}" ) + [[ ${2} && ${conf_id2@a} == *a* ]] && conf+=( "${conf_id2[@]}" ) + + local -n extra_id=MWT_${id^^}_CONF extra_id2=MWT_${id^^}_${2^^}_CONF + conf+=( ${EXTRA_ECONF} ${extra_id} ${2+${extra_id2}} ) einfo "Building ${id}${2+ ${2}} in ${build_dir} ..." |