--- perl-module.eclass.old 2010-02-02 19:35:38.000000000 -0500 +++ perl-module.eclass 2010-02-02 20:12:24.000000000 -0500 @@ -12,7 +12,7 @@ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. -inherit eutils base +inherit eutils base multilib toolchain-funcs [[ ${CATEGORY} == "perl-core" ]] && inherit alternatives PERL_EXPF="src_unpack src_compile src_test src_install" @@ -61,6 +61,17 @@ pm_echovar="" perlinfo_done=false + +# Once these 3 variables are set, +# modules use them for makefile vars, +# perlinfo gets info from $PERL_ARCHLIB +# build, and all is well... +if tc-is-cross-compiler ; then + export PERL_LIB="${ROOT}usr/$(get_libdir)/$(perl -V:privlib | cut -d \' -f 2 | cut -d / -f 4-)" + export PERL_ARCHLIB="$(ls -d ${PERL_LIB}/${CHOST%%-*}*)" + export PERL_INC="${PERL_ARCHLIB}/CORE" +fi + perl-module_src_unpack() { base_src_unpack has src_prepare ${PERL_EXPF} || perl-module_src_prepare