--- smage/trunk/include/python.sminc 2013/12/16 10:19:35 5216 +++ smage/trunk/include/python.sminc 2014/03/25 10:50:53 5459 @@ -81,6 +81,25 @@ python_docompile || die } +python_multilib_src_compile() +{ + local abi + local saved_SRCDIR="${SRCDIR}" + + for abi in ${MULTILIB_ABIS} + do + SRCDIR="${saved_SRCDIR}-${abi}/${SRCSUBDIR}" + cd ${SRCDIR} + abi-${abi} python_docompile || die + done + SRCDIR="${saved_SRCDIR}" +} + +python_src_check() +{ + return 0 +} + python_src_install() { cd ${SRCDIR} @@ -97,4 +116,34 @@ done } -export_inherits python src_prepare src_compile src_install +python_multilib_src_install() +{ + local abi + local saved_SRCDIR="${SRCDIR}" + + for abi in ${MULTILIB_ABIS} + do + SRCDIR="${saved_SRCDIR}-${abi}/${SRCSUBDIR}" + cd ${SRCDIR} + abi-${abi} python_doinstall || die + + local i + for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ + FAQ LICENSE NEWS README TODO + do + if [ -f ${SRCDIR}/${i} ] + then + oldminstalldocs ${i} || die + fi + done + done + SRCDIR="${saved_SRCDIR}" +} + +export_inherits python src_prepare src_check +if [[ ${MULTILIB_BUILD} = true ]] +then + export_inherits python_multilib src_compile src_install +else + export_inherits python src_compile src_install +fi