Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 183625
Collapse All | Expand All

(-)perl-app.eclass (-4 / +3 lines)
Lines 25-39 Link Here
25
25
26
	SRC_PREP="yes"
26
	SRC_PREP="yes"
27
	pwd
27
	pwd
28
	if [ "${PREFER_BUILDPL}" == "yes" ] && ( [ -f Build.PL ] || [ ${PN} == "module-build" ] ); then
28
	if ( ( [ -f Build.PL ] && ( [ "${PREFER_BUILDPL}" == "yes" ] || [ ! -f Makefile.PL ] ) ) || [ ${PN} == "module-build" ] ); then
29
		einfo "Using Module::Build"
29
		einfo "Using Module::Build"
30
		echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
30
		echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
31
	elif [ -f Makefile.PL ] && [ ! ${PN} == "module-build" ]; then
31
	elif [ -f Makefile.PL ]; then
32
		einfo "Using ExtUtils::MakeMaker"
32
		einfo "Using ExtUtils::MakeMaker"
33
		echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
33
		echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
34
		PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
34
		PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
35
	fi
35
	else
36
	if [ ! -f Build.PL ] && [ ! -f Makefile.PL ]; then
37
		einfo "No Make or Build file detected..."
36
		einfo "No Make or Build file detected..."
38
		return
37
		return
39
	fi
38
	fi
(-)perl-module.eclass (-4 / +3 lines)
Lines 116-130 Link Here
116
116
117
	SRC_PREP="yes"
117
	SRC_PREP="yes"
118
	find ${S} -type d -name "\.svn" -exec /bin/rm -rf {} \; 2>/dev/null 
118
	find ${S} -type d -name "\.svn" -exec /bin/rm -rf {} \; 2>/dev/null 
119
	if [ "${PREFER_BUILDPL}" == "yes" ] && ( [ -f Build.PL ] || [ ${PN} == "module-build" ] ); then
119
	if ( ( [ -f Build.PL ] && ( [ "${PREFER_BUILDPL}" == "yes" ] || [ ! -f Makefile.PL ] ) ) || [ ${PN} == "module-build" ] ); then
120
		einfo "Using Module::Build"
120
		einfo "Using Module::Build"
121
		echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
121
		echo "$pm_echovar" | perl Build.PL --installdirs=vendor --destdir=${D} --libdoc= || die "Unable to build! (are you using USE=\"build\"?)"
122
	elif [ -f Makefile.PL ] && [ ! ${PN} == "module-build" ]; then
122
	elif [ -f Makefile.PL ]; then
123
		einfo "Using ExtUtils::MakeMaker"
123
		einfo "Using ExtUtils::MakeMaker"
124
		echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
124
		echo "$pm_echovar" | perl Makefile.PL ${myconf} INSTALLMAN3DIR='none'\
125
		PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
125
		PREFIX=/usr INSTALLDIRS=vendor DESTDIR=${D} || die "Unable to build! (are you using USE=\"build\"?)"
126
	fi
126
	else
127
	if [ ! -f Build.PL ] && [ ! -f Makefile.PL ]; then
128
		einfo "No Make or Build file detected..."
127
		einfo "No Make or Build file detected..."
129
		return
128
		return
130
	fi
129
	fi

Return to bug 183625