git: c0a5bf41e8bb - main - www/p5-HTTP-Tiny: allow www/p5-Mozilla-CA to be optional

From: Dan Langille <dvl_at_FreeBSD.org>
Date: Sun, 28 Apr 2024 11:35:20 UTC
The branch main has been updated by dvl:

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

commit c0a5bf41e8bb33e5d96a80e83bf92045f7ad8e9d
Author:     Dan Langille <dvl@FreeBSD.org>
AuthorDate: 2024-04-28 11:34:06 +0000
Commit:     Dan Langille <dvl@FreeBSD.org>
CommitDate: 2024-04-28 11:34:06 +0000

    www/p5-HTTP-Tiny: allow www/p5-Mozilla-CA to be optional
    
    This new option is enabled by default, thus perserving existing
    behavior. There are circumstances when we don't want www/p5-Mozilla-CA
    to be installed. This patch permits that.
    
    PR:             278581
---
 www/p5-HTTP-Tiny/Makefile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/www/p5-HTTP-Tiny/Makefile b/www/p5-HTTP-Tiny/Makefile
index bdb68b7d7c3d..a79a28bee8dd 100644
--- a/www/p5-HTTP-Tiny/Makefile
+++ b/www/p5-HTTP-Tiny/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	HTTP-Tiny
 PORTVERSION=	0.088
+PORTREVISION=	1
 CATEGORIES=	www perl5
 MASTER_SITES=	CPAN
 PKGNAMEPREFIX=	p5-
@@ -19,17 +20,18 @@ NO_ARCH=	yes
 
 PORTSCOUT=	limit:^[0-9\.]*$$
 
-OPTIONS_DEFINE=	COOKIE HTTPS IO_SOCKET_IP
-OPTIONS_DEFAULT=COOKIE HTTPS IO_SOCKET_IP
+OPTIONS_DEFINE=		CERTS COOKIE HTTPS IO_SOCKET_IP
+OPTIONS_DEFAULT=	CERTS COOKIE HTTPS IO_SOCKET_IP
+CERTS_DESC=		Install the Mozilla CA cert bundle
 IO_SOCKET_IP_DESC=	Use IO::Socket:IP instead of IO::Socket::INET
 
 COOKIE_BUILD_DEPENDS=	p5-HTTP-CookieJar>=0.001:www/p5-HTTP-CookieJar
 COOKIE_RUN_DEPENDS=	p5-HTTP-CookieJar>=0.001:www/p5-HTTP-CookieJar
 HTTPS_BUILD_DEPENDS=	p5-IO-Socket-SSL>=1.42:security/p5-IO-Socket-SSL \
-			p5-Mozilla-CA>=20160104:www/p5-Mozilla-CA \
 			p5-Net-SSLeay>=1.49:security/p5-Net-SSLeay
 HTTPS_RUN_DEPENDS=	p5-IO-Socket-SSL>=1.42:security/p5-IO-Socket-SSL \
-			p5-Mozilla-CA>=20160104:www/p5-Mozilla-CA \
 			p5-Net-SSLeay>=1.49:security/p5-Net-SSLeay
+CERTS_BUILD_DEPENDS=	p5-Mozilla-CA>=20160104:www/p5-Mozilla-CA
+CERTS_RUN_DEPENDS=	p5-Mozilla-CA>=20160104:www/p5-Mozilla-CA
 
 .include <bsd.port.mk>