svn commit: r439950 - head/Mk/Uses
Mathieu Arnold
mat at FreeBSD.org
Tue May 2 15:00:13 UTC 2017
Author: mat
Date: Tue May 2 15:00:12 2017
New Revision: 439950
URL: https://svnweb.freebsd.org/changeset/ports/439950
Log:
Enable depending on Perl only during the test phase.
Sponsored by: Absolight
Modified:
head/Mk/Uses/perl5.mk
Modified: head/Mk/Uses/perl5.mk
==============================================================================
--- head/Mk/Uses/perl5.mk Tue May 2 14:40:00 2017 (r439949)
+++ head/Mk/Uses/perl5.mk Tue May 2 15:00:12 2017 (r439950)
@@ -26,7 +26,7 @@
# SITE_ARCH - Directory name where arch site specific perl packages go.
# This value is added to PLIST_SUB.
# USE_PERL5 - If set, this port uses perl5 in one or more of the extract,
-# patch, build, install or run phases.
+# patch, build, run or test phases.
# It can also have configure, modbuild and modbuildtiny when
# the port needs to run Makefile.PL, Build.PL and a
# Module::Build::Tiny flavor of Build.PL.
@@ -244,6 +244,10 @@ BUILD_DEPENDS+= ${PERL5_DEPEND}:lang/${
RUN_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
. endif
+. if ${_USE_PERL5:Mtest}
+TEST_DEPENDS+= ${PERL5_DEPEND}:lang/${PERL_PORT}
+. endif
+
. if ${_USE_PERL5:Mconfigure}
CONFIGURE_ARGS+= CC="${CC}" CCFLAGS="${CFLAGS}" PREFIX="${PREFIX}" \
INSTALLPRIVLIB="${PREFIX}/lib" INSTALLARCHLIB="${PREFIX}/lib"
More information about the svn-ports-all
mailing list