Lines 12-18
Link Here
|
12 |
# The perl-module eclass is designed to allow easier installation of perl |
12 |
# The perl-module eclass is designed to allow easier installation of perl |
13 |
# modules, and their incorporation into the Gentoo Linux system. |
13 |
# modules, and their incorporation into the Gentoo Linux system. |
14 |
|
14 |
|
15 |
inherit eutils base |
15 |
inherit eutils base multilib toolchain-funcs |
16 |
[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives |
16 |
[[ ${CATEGORY} == "perl-core" ]] && inherit alternatives |
17 |
|
17 |
|
18 |
PERL_EXPF="src_unpack src_compile src_test src_install" |
18 |
PERL_EXPF="src_unpack src_compile src_test src_install" |
Lines 61-66
Link Here
|
61 |
pm_echovar="" |
61 |
pm_echovar="" |
62 |
perlinfo_done=false |
62 |
perlinfo_done=false |
63 |
|
63 |
|
|
|
64 |
|
65 |
# Once these 3 variables are set, |
66 |
# modules use them for makefile vars, |
67 |
# perlinfo gets info from $PERL_ARCHLIB |
68 |
# build, and all is well... |
69 |
if tc-is-cross-compiler ; then |
70 |
export PERL_LIB="${ROOT}usr/$(get_libdir)/$(perl -V:privlib | cut -d \' -f 2 | cut -d / -f 4-)" |
71 |
export PERL_ARCHLIB="$(ls -d ${PERL_LIB}/${CHOST%%-*}*)" |
72 |
export PERL_INC="${PERL_ARCHLIB}/CORE" |
73 |
fi |
74 |
|
64 |
perl-module_src_unpack() { |
75 |
perl-module_src_unpack() { |
65 |
base_src_unpack |
76 |
base_src_unpack |
66 |
has src_prepare ${PERL_EXPF} || perl-module_src_prepare |
77 |
has src_prepare ${PERL_EXPF} || perl-module_src_prepare |