git: 0aa664f374c6 - main - devel/p5-Test2-Plugin-MemUsage: Add PERL_LEVEL check

Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Apr 18 07:10:09 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0aa664f374c6f93342db60430addf264f8c0e8df

commit 0aa664f374c6f93342db60430addf264f8c0e8df
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-04-18 04:59:07 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-04-18 05:42:32 +0000

    devel/p5-Test2-Plugin-MemUsage: Add PERL_LEVEL check
    
    - Bump PORTREVISION for dependency change
---
 devel/p5-Test2-Plugin-MemUsage/Makefile | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/devel/p5-Test2-Plugin-MemUsage/Makefile b/devel/p5-Test2-Plugin-MemUsage/Makefile
index 649c0b15397d..e24b00ce4d3b 100644
--- a/devel/p5-Test2-Plugin-MemUsage/Makefile
+++ b/devel/p5-Test2-Plugin-MemUsage/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	Test2-Plugin-MemUsage
 PORTVERSION=	0.002003
+PORTREVISION=	1
 CATEGORIES=	devel perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:EXODIST
@@ -14,8 +15,6 @@ LICENSE=	ART10 GPLv1+
 LICENSE_COMB=	dual
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	p5-Test-Simple>=1.302165:devel/p5-Test-Simple
 TEST_DEPENDS=	p5-Test2-Suite>=0.000124:devel/p5-Test2-Suite
 
 USES=		perl5
@@ -23,4 +22,11 @@ USE_PERL5=	configure
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 503200
+BUILD_DEPENDS+=	p5-Test-Simple>=1.302165:devel/p5-Test-Simple
+RUN_DEPENDS+=	p5-Test-Simple>=1.302165:devel/p5-Test-Simple
+.endif
+
+.include <bsd.port.post.mk>


More information about the dev-commits-ports-all mailing list