git: 4ee1c1ea74f8 - main - devel/avro-cpp: Update to 1.12.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 15 Aug 2024 11:54:53 UTC
The branch main has been updated by sunpoet:

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

commit 4ee1c1ea74f8c31e180c0510a6e422f38fc3abbc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-15 09:44:50 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-15 10:55:31 +0000

    devel/avro-cpp: Update to 1.12.0
    
    - Update MASTER_SITES
    - Update WWW
    
    Changes:        https://github.com/apache/avro/releases
---
 devel/avro-cpp/Makefile                   | 14 ++++++++------
 devel/avro-cpp/distinfo                   |  6 +++---
 devel/avro-cpp/files/patch-CMakeLists.txt | 31 +++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+), 9 deletions(-)

diff --git a/devel/avro-cpp/Makefile b/devel/avro-cpp/Makefile
index 4eab4bbc9d0c..b7a0fae87e68 100644
--- a/devel/avro-cpp/Makefile
+++ b/devel/avro-cpp/Makefile
@@ -1,24 +1,26 @@
 PORTNAME=	avro
-PORTVERSION=	1.11.3
-PORTREVISION=	1
+PORTVERSION=	1.12.0
 CATEGORIES=	devel
-MASTER_SITES=	APACHE/avro/stable/cpp
+MASTER_SITES=	APACHE/avro/avro-${PORTVERSION}/cpp
 PKGNAMESUFFIX=	-cpp
 DISTNAME=	avro-cpp-${PORTVERSION}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	C++ library for Apache Avro
-WWW=		https://avro.apache.org/
+WWW=		https://avro.apache.org/ \
+		https://github.com/apache/avro
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	libfmt>=10.2.1<10.2.1_99:devel/libfmt
 LIB_DEPENDS=	libboost_regex.so:devel/boost-libs \
+		libfmt.so:devel/libfmt \
 		libsnappy.so:archivers/snappy
 
-USES=		cmake compiler:c++11-lang cpe
+USES=		cmake compiler:c++17-lang cpe
 
-USE_CXXSTD=	c++11
+USE_CXXSTD=	c++17
 USE_LDCONFIG=	yes
 
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
diff --git a/devel/avro-cpp/distinfo b/devel/avro-cpp/distinfo
index 06813d1397ad..5e9fe8b9ee0c 100644
--- a/devel/avro-cpp/distinfo
+++ b/devel/avro-cpp/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1696001298
-SHA256 (avro-cpp-1.11.3.tar.gz) = fba242aef77ec819d07561fcba93751721956de8d0cae8e1f2f300b54b331bae
-SIZE (avro-cpp-1.11.3.tar.gz) = 173284
+TIMESTAMP = 1723201039
+SHA256 (avro-cpp-1.12.0.tar.gz) = f2edf77126a75b0ec1ad166772be058351cea3d74448be7e2cef20050c0f98ab
+SIZE (avro-cpp-1.12.0.tar.gz) = 174130
diff --git a/devel/avro-cpp/files/patch-CMakeLists.txt b/devel/avro-cpp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..44b5fdbe955e
--- /dev/null
+++ b/devel/avro-cpp/files/patch-CMakeLists.txt
@@ -0,0 +1,31 @@
+Reference:	https://github.com/apache/avro/commit/9d57bab596b6b3b5c1ca25b06e2c7aede8f32263
+
+--- CMakeLists.txt.orig	2024-07-26 07:46:40 UTC
++++ CMakeLists.txt
+@@ -82,15 +82,7 @@ find_package (Boost 1.38 REQUIRED
+ find_package (Boost 1.38 REQUIRED
+     COMPONENTS filesystem iostreams program_options regex system)
+ 
+-include(FetchContent)
+-FetchContent_Declare(
+-        fmt
+-        GIT_REPOSITORY  https://github.com/fmtlib/fmt.git
+-        GIT_TAG         10.2.1
+-        GIT_PROGRESS    TRUE
+-        USES_TERMINAL_DOWNLOAD TRUE
+-)
+-FetchContent_MakeAvailable(fmt)
++find_package (fmt 10.2.1 REQUIRED)
+ 
+ find_package(Snappy)
+ if (SNAPPY_FOUND)
+@@ -217,7 +209,8 @@ unittest (CommonsSchemasTests)
+ unittest (AvrogencppTestReservedWords)
+ unittest (CommonsSchemasTests)
+ 
+-add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
++add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh
++    cpp_reserved_words_union_typedef_hh)
+ 
+ add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
+     tweet_hh