git: 53e9eb40373c - main - www/p5-Dancer: Fix *_DEPENDS

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 16 Apr 2022 04:24:31 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=53e9eb40373c4c22ca06406394c28a5e213d83ef

commit 53e9eb40373c4c22ca06406394c28a5e213d83ef
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 04:01:26 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:43 +0000

    www/p5-Dancer: Fix *_DEPENDS
    
    - Add PORTSCOUT
    - Convert to options dependency helper
    - Fix indent
    - Bump PORTREVISION for dependency change
---
 www/p5-Dancer/Makefile | 53 ++++++++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 28 deletions(-)

diff --git a/www/p5-Dancer/Makefile b/www/p5-Dancer/Makefile
index c441510a9d37..436ab7f12a6d 100644
--- a/www/p5-Dancer/Makefile
+++ b/www/p5-Dancer/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	Dancer
 PORTVERSION=	1.3513
+PORTREVISION=	1
 CATEGORIES=	www perl5
 MASTER_SITES=	CPAN
 MASTER_SITE_SUBDIR=	CPAN:BIGPRESH
@@ -12,39 +13,35 @@ LICENSE=	ART10 GPLv1+
 LICENSE_COMB=	dual
 
 BUILD_DEPENDS=	${RUN_DEPENDS}
-RUN_DEPENDS=	\
-	p5-HTTP-Body>0:www/p5-HTTP-Body \
-	p5-HTTP-Date>0:www/p5-HTTP-Date \
-	p5-HTTP-Message>0:www/p5-HTTP-Message \
-	p5-HTTP-Server-Simple-PSGI>0:www/p5-HTTP-Server-Simple-PSGI \
-	p5-Hash-Merge-Simple>0:devel/p5-Hash-Merge-Simple \
-	p5-libwww>0:www/p5-libwww \
-	p5-MIME-Types>0:mail/p5-MIME-Types \
-	p5-Module-Runtime>0:devel/p5-Module-Runtime \
-	p5-Try-Tiny>0:lang/p5-Try-Tiny \
-	p5-URI>0:net/p5-URI
-TEST_DEPENDS=	\
-	p5-Data-Dump>=0:devel/p5-Data-Dump \
-	p5-Devel-Hide>=0:devel/p5-Devel-Hide \
-	p5-HTTP-CookieJar>=0.008:www/p5-HTTP-CookieJar \
-	p5-Test-NoWarnings>=0:devel/p5-Test-NoWarnings \
-	p5-Test-TCP>0:devel/p5-Test-TCP \
-	p5-Test-Output>=0:devel/p5-Test-Output
+RUN_DEPENDS=	p5-HTTP-Body>=0:www/p5-HTTP-Body \
+		p5-HTTP-Date>=0:www/p5-HTTP-Date \
+		p5-HTTP-Message>=0:www/p5-HTTP-Message \
+		p5-HTTP-Server-Simple-PSGI>=0:www/p5-HTTP-Server-Simple-PSGI \
+		p5-Hash-Merge-Simple>=0:devel/p5-Hash-Merge-Simple \
+		p5-MIME-Types>=0:mail/p5-MIME-Types \
+		p5-Module-Runtime>=0:devel/p5-Module-Runtime \
+		p5-Try-Tiny>=0:lang/p5-Try-Tiny \
+		p5-URI>=0:net/p5-URI
+TEST_DEPENDS=	p5-Data-Dump>=0:devel/p5-Data-Dump \
+		p5-Devel-Hide>=0:devel/p5-Devel-Hide \
+		p5-HTTP-CookieJar>=0.008:www/p5-HTTP-CookieJar \
+		p5-JSON>=0:converters/p5-JSON \
+		p5-Plack>=0:www/p5-Plack \
+		p5-Test-NoWarnings>=0:devel/p5-Test-NoWarnings
+
+USES=		perl5
+USE_PERL5=	configure
 
-CONFLICTS_INSTALL=	dancer # bin/dancer
+NO_ARCH=	yes
 
-OPTIONS_DEFINE=	YAML
-OPTIONS_DEFAULT=	YAML
+CONFLICTS_INSTALL=	dancer # bin/dancer
 
-.include <bsd.port.options.mk>
+PORTSCOUT=	limit:^[0-9\.]*$$
 
-.if ${PORT_OPTIONS:MYAML}
-RUN_DEPENDS+=	p5-YAML>0:textproc/p5-YAML
-.endif
+OPTIONS_DEFINE=	YAML
+OPTIONS_DEFAULT=YAML
 
-USES=	perl5
-USE_PERL5=	configure
-NO_ARCH=	YES
+YAML_RUN_DEPENDS=	p5-YAML>=0:textproc/p5-YAML
 
 post-patch:
 	@${RM} ${WRKSRC}/lib/Dancer/.Test.pm.swo