git: 60a9deea5ded - main - www/nghttp2: Update to 1.62.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 May 2024 17:24:09 UTC
The branch main has been updated by sunpoet:

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

commit 60a9deea5dedea76526a263ebf33078d79b67a8b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-05-19 16:15:54 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-05-19 17:15:11 +0000

    www/nghttp2: Update to 1.62.0
    
    - Convert to USES=cmake:testing
    - Add DOCS option
    
    Changes:        https://github.com/nghttp2/nghttp2/releases
---
 www/nghttp2/Makefile  | 15 +++++++++------
 www/nghttp2/distinfo  |  6 +++---
 www/nghttp2/pkg-plist |  1 +
 3 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/www/nghttp2/Makefile b/www/nghttp2/Makefile
index 1be233b90a06..3b660358e403 100644
--- a/www/nghttp2/Makefile
+++ b/www/nghttp2/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	nghttp2
-PORTVERSION=	1.61.0
+PORTVERSION=	1.62.0
 CATEGORIES=	www net
 MASTER_SITES=	https://github.com/nghttp2/nghttp2/releases/download/v${PORTVERSION}/
 
@@ -13,27 +13,30 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 BUILD_DEPENDS=	libnghttp2>=${PORTVERSION}:www/libnghttp2
 LIB_DEPENDS=	libnghttp2.so:www/libnghttp2
 
-USES=		cmake compiler:c++14-lang cpe localbase:ldflags pathfix pkgconfig python:env shebangfix ssl tar:xz
+USES=		cmake:testing compiler:c++20-lang cpe localbase:ldflags pathfix pkgconfig python:env shebangfix ssl tar:xz
 
 CMAKE_ARGS=	-DCMAKE_INSTALL_MANDIR=share/man
-CMAKE_OFF=	ENABLE_DEBUG ENABLE_HTTP3 ENABLE_LIB_ONLY ENABLE_STATIC_CRT ENABLE_WERROR WITH_LIBBPF WITH_MRUBY WITH_NEVERBLEED
-CMAKE_ON=	ENABLE_DOC ENABLE_FAILMALLOC ENABLE_THREADS
+CMAKE_OFF=	BUILD_SHARED_LIBS BUILD_STATIC_LIBS BUILD_TESTING ENABLE_DEBUG ENABLE_HTTP3 ENABLE_LIB_ONLY ENABLE_STATIC_CRT ENABLE_WERROR WITH_LIBBPF WITH_MRUBY WITH_NEVERBLEED
+CMAKE_ON=	ENABLE_FAILMALLOC ENABLE_THREADS WITH_JEMALLOC
+CMAKE_TESTING_ON=	BUILD_TESTING
+USE_CXXSTD=	c++20
 USE_RC_SUBR=	nghttpx
 
 SHEBANG_FILES=	script/fetch-ocsp-response
 
-OPTIONS_DEFINE=	APP EXAMPLES HPACK
+OPTIONS_DEFINE=	APP DOCS EXAMPLES HPACK
 OPTIONS_DEFAULT=APP HPACK
 OPTIONS_SUB=	yes
 APP_DESC=	Build h2load, nghttp, nghttpd and nghttpx
 
 APP_BUILD_DEPENDS=	c-ares>=1.7.5:dns/c-ares \
 			libev>=4.11:devel/libev
-APP_CMAKE_BOOL=		ENABLE_APP
+APP_CMAKE_BOOL=		ENABLE_APP WITH_LIBXML2
 APP_LIB_DEPENDS=	libcares.so:dns/c-ares \
 			libev.so:devel/libev
 APP_USE=		GNOME=libxml2
 APP_USES=		gnome
+DOCS_CMAKE_BOOL=	ENABLE_DOC
 EXAMPLES_BUILD_DEPENDS=	libevent>=2.0.8:devel/libevent
 EXAMPLES_CMAKE_BOOL=	ENABLE_EXAMPLES
 EXAMPLES_LIB_DEPENDS=	libevent_openssl.so:devel/libevent
diff --git a/www/nghttp2/distinfo b/www/nghttp2/distinfo
index 8579be1c53e4..97a643497a3b 100644
--- a/www/nghttp2/distinfo
+++ b/www/nghttp2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712261836
-SHA256 (nghttp2-1.61.0.tar.xz) = c0e660175b9dc429f11d25b9507a834fb752eea9135ab420bb7cb7e9dbcc9654
-SIZE (nghttp2-1.61.0.tar.xz) = 1645808
+TIMESTAMP = 1715842556
+SHA256 (nghttp2-1.62.0.tar.xz) = 26798308fa0a12dabdb7ba8c77f74383019d3a0f1f36d25958b836af22474958
+SIZE (nghttp2-1.62.0.tar.xz) = 1646596
diff --git a/www/nghttp2/pkg-plist b/www/nghttp2/pkg-plist
index 54550692d97e..8b844d00e47f 100644
--- a/www/nghttp2/pkg-plist
+++ b/www/nghttp2/pkg-plist
@@ -5,6 +5,7 @@
 %%APP%%bin/nghttpd
 %%APP%%bin/nghttpx
 @sample etc/nghttpx/nghttpx.conf.sample
+%%PORTDOCS%%%%DOCSDIR%%/README.rst
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/client
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/client.c
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/deflate