git: fee3a75cd044 - main - devel/aws-c-event-stream: Port improvements

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 15 Sep 2022 23:59:19 UTC
The branch main has been updated by eduardo:

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

commit fee3a75cd044c0a144ebcfd16cbd7d03f5c4e094
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 23:44:46 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 23:59:02 +0000

    devel/aws-c-event-stream: Port improvements
    
     - Define LICENSE_FILE
     - Use ports framework for unit testing
     - Use CMake helpers provided by framework
     - Turn off BUILD_TESTING by default
     - Bump PORTREVISION
---
 devel/aws-c-event-stream/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/devel/aws-c-event-stream/Makefile b/devel/aws-c-event-stream/Makefile
index ed5974b2937f..761a1e0b8bea 100644
--- a/devel/aws-c-event-stream/Makefile
+++ b/devel/aws-c-event-stream/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	aws-c-event-stream
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.2.14
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	devel
 
@@ -10,6 +10,7 @@ COMMENT=	C99 implementation of the vnd.amazon.eventstream content-type
 WWW=		https://github.com/awslabs/aws-c-event-stream
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libaws-c-cal.so:security/aws-c-cal \
 		libaws-c-common.so:devel/aws-c-common \
@@ -17,15 +18,17 @@ LIB_DEPENDS=	libaws-c-cal.so:security/aws-c-cal \
 		libaws-checksums.so:devel/aws-checksums \
 		libs2n.so:security/s2n-tls
 
-USES=		cmake compiler:c11 ssl
+USES=		cmake:testing compiler:c11 ssl
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	awslabs
 
 USE_LDCONFIG=	yes
 
-CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON \
-		-DCMAKE_INSTALL_LIBDIR=${LOCALBASE}/lib
+CMAKE_ARGS+=	-DCMAKE_INSTALL_LIBDIR=${LOCALBASE}/lib
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_OFF=	BUILD_TESTING
+
 LDFLAGS+=	-lexecinfo -lpthread
 
 PORTSCOUT=	limit:^d\.d\.