260 |
cd ${SRCDIR} |
cd ${SRCDIR} |
261 |
abi-${abi} oldcmake_configure $@ || die |
abi-${abi} oldcmake_configure $@ || die |
262 |
done |
done |
263 |
|
# restore SRCDIR |
264 |
|
SRCDIR="${saved_SRCDIR}" |
265 |
} |
} |
266 |
|
|
267 |
if [[ ! -z $(typeset -f munpack) ]] |
if [[ ! -z $(typeset -f munpack) ]] |
390 |
done |
done |
391 |
} |
} |
392 |
|
|
393 |
|
if [[ ! -z $(typeset -f mautoreconf) ]] |
394 |
|
then |
395 |
|
# rename the old one |
396 |
|
old_mautoreconf=old$(typeset -f mautoreconf) |
397 |
|
eval "${old_mautoreconf}" |
398 |
|
fi |
399 |
|
mautoreconf() |
400 |
|
{ |
401 |
|
local abi |
402 |
|
local abis_to_run="${MULTILIB_ABIS}" |
403 |
|
|
404 |
|
# respect MULTILIB_ONLY_ABI variable |
405 |
|
[[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" |
406 |
|
|
407 |
|
for abi in ${abis_to_run} |
408 |
|
do |
409 |
|
echo -e "${COLBLUE}*** ${COLGREEN}running mautoreconf for ABI -${abi}${COLDEFAULT}" |
410 |
|
cd ${SRCDIR}-${abi} |
411 |
|
oldmautoreconf $@ || die |
412 |
|
done |
413 |
|
} |
414 |
|
|
415 |
if [[ ! -z $(typeset -f minstalldocs) ]] |
if [[ ! -z $(typeset -f minstalldocs) ]] |
416 |
then |
then |
417 |
# rename the old one |
# rename the old one |
422 |
{ |
{ |
423 |
local abi |
local abi |
424 |
local docfiles |
local docfiles |
|
docfiles="$@" |
|
425 |
|
|
426 |
local abis_to_run="${MULTILIB_ABIS}" |
local abis_to_run="${MULTILIB_ABIS}" |
427 |
|
|
431 |
for abi in ${abis_to_run} |
for abi in ${abis_to_run} |
432 |
do |
do |
433 |
cd ${SRCDIR}-${abi} |
cd ${SRCDIR}-${abi} |
434 |
if [ ! -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} ] |
oldminstalldocs $@ || die |
|
then |
|
|
install -d ${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "creating doc dirs." |
|
|
fi |
|
|
|
|
|
for i in ${docfiles} |
|
|
do |
|
|
cat ${SRCDIR}-${abi}/${i} | gzip -9c > ${SRCDIR}-${abi}/${i}.gz || die "gzipping docs." |
|
|
install -m 0644 ${SRCDIR}-${abi}/${i}.gz \ |
|
|
${BINDIR}/usr/share/doc/${PNAME}-${PVER} || die "coping docs." |
|
|
done |
|
435 |
done |
done |
436 |
} |
} |
437 |
|
|
449 |
mmake |
mmake |
450 |
} |
} |
451 |
|
|
452 |
|
multilib_src_check() |
453 |
|
{ |
454 |
|
mmake -k check || die |
455 |
|
} |
456 |
|
|
457 |
multilib_src_install() |
multilib_src_install() |
458 |
{ |
{ |
459 |
minstall_destdir |
minstall_destdir |
473 |
done |
done |
474 |
} |
} |
475 |
|
|
476 |
export_inherits multilib src_prepare src_compile src_install |
export_inherits multilib src_prepare src_compile src_check src_install |