git: 50ace901b044 - main - devel/cpp-netlib: fix build after Boost-1.83.0 update

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 27 Sep 2023 14:36:50 UTC
The branch main has been updated by fluffy:

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

commit 50ace901b044edd6b46a0e5ad59f4b76733da90c
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-09-27 13:57:26 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-09-27 14:36:28 +0000

    devel/cpp-netlib: fix build after Boost-1.83.0 update
---
 devel/cpp-netlib/Makefile                             |  2 +-
 ...oost_network_protocol_http_server_impl_parsers.ipp | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

diff --git a/devel/cpp-netlib/Makefile b/devel/cpp-netlib/Makefile
index 926a2253bdf6..9a07aa0ec2c1 100644
--- a/devel/cpp-netlib/Makefile
+++ b/devel/cpp-netlib/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=		cpp-netlib
 DISTVERSIONPREFIX=	${PORTNAME}-
 DISTVERSION=		0.13.0
-PORTREVISION=	5
+PORTREVISION=		6
 DISTVERSIONSUFFIX=	-final
 CATEGORIES=		devel
 
diff --git a/devel/cpp-netlib/files/patch-boost_network_protocol_http_server_impl_parsers.ipp b/devel/cpp-netlib/files/patch-boost_network_protocol_http_server_impl_parsers.ipp
new file mode 100644
index 000000000000..f79c467225af
--- /dev/null
+++ b/devel/cpp-netlib/files/patch-boost_network_protocol_http_server_impl_parsers.ipp
@@ -0,0 +1,19 @@
+--- boost/network/protocol/http/server/impl/parsers.ipp.orig	2018-07-19 06:37:41 UTC
++++ boost/network/protocol/http/server/impl/parsers.ipp
+@@ -13,6 +13,7 @@
+ #include <tuple>
+ #include <boost/fusion/include/std_tuple.hpp>
+ #include <boost/network/protocol/http/message/header.hpp>
++#include <boost/regex/pending/unicode_iterator.hpp>
+ 
+ #ifdef BOOST_NETWORK_NO_LIB
+ #ifndef BOOST_NETWORK_INLINE
+@@ -32,7 +33,7 @@ struct assign_to_container_from_value<std::string, u32
+ template <>  // <typename Attrib, typename T, typename Enable>
+ struct assign_to_container_from_value<std::string, u32_string, void> {
+   static void call(u32_string const& val, std::string& attr) {
+-    u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
++    boost::u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
+                                                    end = val.end();
+     for (; begin != end; ++begin) attr += *begin;
+   }