Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2017 15:00:12 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r439950 - head/Mk/Uses
Message-ID:  <201705021500.v42F0CZl010504@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705021500.v42F0CZl010504>