335 |
done |
done |
336 |
} |
} |
337 |
|
|
338 |
|
if [[ ! -z $(typeset -f cmake_src_check) ]] |
339 |
|
then |
340 |
|
# rename the old one |
341 |
|
old_cmake_src_check=old$(typeset -f cmake_src_check) |
342 |
|
eval "${old_cmake_check}" |
343 |
|
fi |
344 |
|
cmake_src_check() |
345 |
|
{ |
346 |
|
local abi |
347 |
|
local abis_to_run="${MULTILIB_ABIS}" |
348 |
|
|
349 |
|
# respect MULTILIB_ONLY_ABI variable |
350 |
|
[[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" |
351 |
|
|
352 |
|
for abi in ${abis_to_run} |
353 |
|
do |
354 |
|
cd ${BUILDDIR}/build-${abi} |
355 |
|
mmake -j1 -k check || die |
356 |
|
done |
357 |
|
} |
358 |
|
|
359 |
if [[ ! -z $(typeset -f cmake_src_install) ]] |
if [[ ! -z $(typeset -f cmake_src_install) ]] |
360 |
then |
then |
361 |
# rename the old one |
# rename the old one |
582 |
{ |
{ |
583 |
if [[ ! -z $(typeset -f cmake_src_install) ]] |
if [[ ! -z $(typeset -f cmake_src_install) ]] |
584 |
then |
then |
585 |
cmake_src_compile || die |
cmake_src_install || die |
586 |
else |
else |
587 |
mmake DESTDIR=${BINDIR} install || die |
mmake DESTDIR=${BINDIR} install || die |
588 |
fi |
fi |