--- Uses/perl5.mk (revision 380939) +++ Uses/perl5.mk (working copy) @@ -31,6 +31,9 @@ # the port needs to run Makefile.PL, Build.PL and a # Module::Build::Tiny flavor of Build.PL. # +# WITH_PERL_TESTING and the regression-test target are available to assist +# with testing perl ports. +# # MAINTAINER: perl@FreeBSD.org .if !defined(_INCLUDE_USES_PERL5_MK) @@ -287,6 +290,10 @@ @${RM} -f ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH}/perllocal.pod* || : @${RMDIR} -p ${STAGEDIR}${PREFIX}/lib/perl5/${PERL_VER}/${PERL_ARCH} 2>/dev/null || : +.if defined(WITH_PERL_TESTING) +RUN_DEPENDS+= ${TEST_DEPENDS} +.endif + .if !target(regression-test) TEST_ARGS+= ${MAKE_ARGS} TEST_ENV+= ${MAKE_ENV}