Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 134650 | Differences between
and this patch

Collapse All | Expand All

(-)perl-module.eclass.old (-1 / +11 lines)
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 255-260 Link Here
255
	${perlinfo_done} && return 0
255
	${perlinfo_done} && return 0
256
	perlinfo_done=true
256
	perlinfo_done=true
257
257
258
	if tc-is-cross-compiler ; then
259
		# Once these 3 variables are set,
260
		# modules use them for makefile vars,
261
		# perlinfo gets info from $PERL_ARCHLIB
262
		# build, and all is well...
263
		export PERL_LIB="${ROOT}usr/$(get_libdir)/$(perl -V:privlib | cut -d \' -f 2 | cut -d / -f 4-)"
264
		export PERL_ARCHLIB="$(ls -d ${PERL_LIB}/${CHOST%%-*}*)"
265
		export PERL_INC="${PERL_ARCHLIB}/CORE"
266
	fi
267
258
	local f version install{{site,vendor}{arch,lib},archlib}
268
	local f version install{{site,vendor}{arch,lib},archlib}
259
	eval "$(perl -V:{version,install{{site,vendor}{arch,lib},archlib}} )"
269
	eval "$(perl -V:{version,install{{site,vendor}{arch,lib},archlib}} )"
260
	PERL_VERSION=${version}
270
	PERL_VERSION=${version}

Return to bug 134650