Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/perl5.mk
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Lines | |||||
# contain it to not leave orphans directories around. | # contain it to not leave orphans directories around. | ||||
@${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || : | @${RM} ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || : | ||||
@${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || : | @${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || : | ||||
# Starting at ExtUtils::MakeMaker 7.06 and Perl 5.25.1, the base README.pod is | # Starting at ExtUtils::MakeMaker 7.06 and Perl 5.25.1, the base README.pod is | ||||
# no longer manified into a README.3, as the README.pod is installed and can be | # no longer manified into a README.3, as the README.pod is installed and can be | ||||
# read with perldoc, remove the README.3 files that may be generated. | # read with perldoc, remove the README.3 files that may be generated. | ||||
@[ -d "${STAGEDIR}${SITE_MAN3}" ] && \ | @[ -d "${STAGEDIR}${SITE_MAN3}" ] && \ | ||||
${FIND} ${STAGEDIR}${SITE_MAN3} -name '*::README.3' -delete || : | ${FIND} ${STAGEDIR}${SITE_MAN3} -name '*::README.3' -delete || : | ||||
# Starting at ExtUtils::MakeMaker 7.31_06 and Perl 5.27.1, the base README.pod is | |||||
# no longer installed. So remove any that can be there. | |||||
@${FIND} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} -name README.pod -delete || : | |||||
. if !target(do-test) && (!empty(USE_PERL5:Mmodbuild*) || !empty(USE_PERL5:Mconfigure)) | . if !target(do-test) && (!empty(USE_PERL5:Mmodbuild*) || !empty(USE_PERL5:Mconfigure)) | ||||
TEST_TARGET?= test | TEST_TARGET?= test | ||||
TEST_WRKSRC?= ${BUILD_WRKSRC} | TEST_WRKSRC?= ${BUILD_WRKSRC} | ||||
do-test: | do-test: | ||||
. if ${USE_PERL5:Mmodbuild*} | . if ${USE_PERL5:Mmodbuild*} | ||||
@cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS} | @cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${PERL5} ${PL_BUILD} ${TEST_TARGET} ${TEST_ARGS} | ||||
. elif ${USE_PERL5:Mconfigure} | . elif ${USE_PERL5:Mconfigure} | ||||
@cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET} | @cd ${TEST_WRKSRC}/ && ${SETENV} ${TEST_ENV} ${MAKE_CMD} ${TEST_ARGS} ${TEST_TARGET} | ||||
. endif # USE_PERL5:Mmodbuild* | . endif # USE_PERL5:Mmodbuild* | ||||
. endif # do-test | . endif # do-test | ||||
.endif # defined(_POSTMKINCLUDED) | .endif # defined(_POSTMKINCLUDED) |