git: cd3a73cda9b5 - main - net-p2p/pulsar-client-cpp: Apache Pulsar C++ client library

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 04 Oct 2024 04:24:57 UTC
The branch main has been updated by yuri:

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

commit cd3a73cda9b57e65c55a7a8ceac95fc97b012788
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-04 02:48:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-04 04:24:51 +0000

    net-p2p/pulsar-client-cpp: Apache Pulsar C++ client library
---
 net-p2p/Makefile                    |  1 +
 net-p2p/pulsar-client-cpp/Makefile  | 30 +++++++++++++++++
 net-p2p/pulsar-client-cpp/distinfo  |  3 ++
 net-p2p/pulsar-client-cpp/pkg-descr |  3 ++
 net-p2p/pulsar-client-cpp/pkg-plist | 67 +++++++++++++++++++++++++++++++++++++
 5 files changed, 104 insertions(+)

diff --git a/net-p2p/Makefile b/net-p2p/Makefile
index 8c87c27d5b94..820986f6fb2d 100644
--- a/net-p2p/Makefile
+++ b/net-p2p/Makefile
@@ -72,6 +72,7 @@
     SUBDIR += p5-WWW-BitTorrent
     SUBDIR += phex
     SUBDIR += prowlarr
+    SUBDIR += pulsar-client-cpp
     SUBDIR += py-ed2k-tools
     SUBDIR += py-libtorrent-rasterbar
     SUBDIR += py-nicotine-plus
diff --git a/net-p2p/pulsar-client-cpp/Makefile b/net-p2p/pulsar-client-cpp/Makefile
new file mode 100644
index 000000000000..4f37d853571e
--- /dev/null
+++ b/net-p2p/pulsar-client-cpp/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	pulsar-client-cpp # this port requres instruction sets crc32, pclmul above the default sse2
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.6.0
+CATEGORIES=	net-p2p
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Apache Pulsar C++ client library
+WWW=		https://pulsar.apache.org/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/include/boost/algorithm/string.hpp:devel/boost-libs
+LIB_DEPENDS=	libcurl.so:ftp/curl \
+		libprotobuf.so:devel/protobuf \
+		libsnappy.so:archivers/snappy \
+		libzstd.so:archivers/zstd
+
+USES=		cmake:testing ssl
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	apache
+
+CMAKE_OFF=	BUILD_TESTS
+CMAKE_ARGS=	-DCMAKE_CXX_STANDARD=17 \
+		-DOPENSSL_ROOT_DIR=/usr
+
+CXXFLAGS+=	-mcrc32 -mpclmul
+
+.include <bsd.port.mk>
diff --git a/net-p2p/pulsar-client-cpp/distinfo b/net-p2p/pulsar-client-cpp/distinfo
new file mode 100644
index 000000000000..31c67f8dfbc5
--- /dev/null
+++ b/net-p2p/pulsar-client-cpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728006942
+SHA256 (apache-pulsar-client-cpp-v3.6.0_GH0.tar.gz) = 321e288e60b340155d9a9ad8eb823738047f5055a71a8a345c93ddbe3d023741
+SIZE (apache-pulsar-client-cpp-v3.6.0_GH0.tar.gz) = 1599305
diff --git a/net-p2p/pulsar-client-cpp/pkg-descr b/net-p2p/pulsar-client-cpp/pkg-descr
new file mode 100644
index 000000000000..4855f47da30e
--- /dev/null
+++ b/net-p2p/pulsar-client-cpp/pkg-descr
@@ -0,0 +1,3 @@
+pulsar-client-cpp is a Apache Pulsar C++ client library.
+Pulsar C++ clients support a variety of Pulsar features to enable building
+applications connecting to your Pulsar cluster.
diff --git a/net-p2p/pulsar-client-cpp/pkg-plist b/net-p2p/pulsar-client-cpp/pkg-plist
new file mode 100644
index 000000000000..660018914678
--- /dev/null
+++ b/net-p2p/pulsar-client-cpp/pkg-plist
@@ -0,0 +1,67 @@
+include/pulsar/Authentication.h
+include/pulsar/BatchReceivePolicy.h
+include/pulsar/BrokerConsumerStats.h
+include/pulsar/Client.h
+include/pulsar/ClientConfiguration.h
+include/pulsar/CompressionType.h
+include/pulsar/ConsoleLoggerFactory.h
+include/pulsar/Consumer.h
+include/pulsar/ConsumerConfiguration.h
+include/pulsar/ConsumerCryptoFailureAction.h
+include/pulsar/ConsumerEventListener.h
+include/pulsar/ConsumerInterceptor.h
+include/pulsar/ConsumerType.h
+include/pulsar/CryptoKeyReader.h
+include/pulsar/DeadLetterPolicy.h
+include/pulsar/DeadLetterPolicyBuilder.h
+include/pulsar/DeprecatedException.h
+include/pulsar/EncryptionKeyInfo.h
+include/pulsar/FileLoggerFactory.h
+include/pulsar/InitialPosition.h
+include/pulsar/KeySharedPolicy.h
+include/pulsar/KeyValue.h
+include/pulsar/Logger.h
+include/pulsar/Message.h
+include/pulsar/MessageBatch.h
+include/pulsar/MessageBuilder.h
+include/pulsar/MessageId.h
+include/pulsar/MessageIdBuilder.h
+include/pulsar/MessageRoutingPolicy.h
+include/pulsar/Producer.h
+include/pulsar/ProducerConfiguration.h
+include/pulsar/ProducerCryptoFailureAction.h
+include/pulsar/ProducerInterceptor.h
+include/pulsar/ProtobufNativeSchema.h
+include/pulsar/Reader.h
+include/pulsar/ReaderConfiguration.h
+include/pulsar/RegexSubscriptionMode.h
+include/pulsar/Result.h
+include/pulsar/Schema.h
+include/pulsar/TableView.h
+include/pulsar/TableViewConfiguration.h
+include/pulsar/TopicMetadata.h
+include/pulsar/TypedMessage.h
+include/pulsar/TypedMessageBuilder.h
+include/pulsar/Version.h
+include/pulsar/c/authentication.h
+include/pulsar/c/client.h
+include/pulsar/c/client_configuration.h
+include/pulsar/c/consumer.h
+include/pulsar/c/consumer_configuration.h
+include/pulsar/c/message.h
+include/pulsar/c/message_id.h
+include/pulsar/c/message_router.h
+include/pulsar/c/messages.h
+include/pulsar/c/producer.h
+include/pulsar/c/producer_configuration.h
+include/pulsar/c/reader.h
+include/pulsar/c/reader_configuration.h
+include/pulsar/c/result.h
+include/pulsar/c/string_list.h
+include/pulsar/c/string_map.h
+include/pulsar/c/table_view.h
+include/pulsar/c/table_view_configuration.h
+include/pulsar/c/version.h
+include/pulsar/defines.h
+lib/libpulsar.a
+lib/libpulsar.so