git: 25acf2546237 - main - net/librdkafka: Update to 2.0.2

From: Luca Pizzamiglio <pizzamig_at_FreeBSD.org>
Date: Thu, 09 Feb 2023 12:17:14 UTC
The branch main has been updated by pizzamig:

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

commit 25acf2546237687dbb779fbdc1913219dce56091
Author:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
AuthorDate: 2023-02-07 22:55:21 +0000
Commit:     Luca Pizzamiglio <pizzamig@FreeBSD.org>
CommitDate: 2023-02-09 12:17:05 +0000

    net/librdkafka: Update to 2.0.2
    
    Explicitely add ftp/curl
    Remove obsolete patch
    
    Changes: https://github.com/confluentinc/librdkafka/releases/
---
 net/librdkafka/Makefile  | 10 +++-------
 net/librdkafka/distinfo  |  6 +++---
 net/librdkafka/pkg-plist |  1 +
 3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/net/librdkafka/Makefile b/net/librdkafka/Makefile
index 0bcd772bd118..421d8017bf58 100644
--- a/net/librdkafka/Makefile
+++ b/net/librdkafka/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	librdkafka
-DISTVERSION=	1.9.2
+DISTVERSION=	2.0.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	net
 
@@ -14,7 +14,8 @@ BROKEN_mips=		fails to build: undefined reference to __sync_add_and_fetch_4
 BROKEN_mips64=		fails to build: undefined reference to __sync_add_and_fetch_4
 
 BUILD_DEPENDS=	bash:shells/bash
-LIB_DEPENDS=	liblz4.so:archivers/liblz4 \
+LIB_DEPENDS=	libcurl.so:ftp/curl \
+	liblz4.so:archivers/liblz4 \
 	libzstd.so:archivers/zstd
 
 USES=		compiler:c11 gmake localbase:ldflags ssl
@@ -28,11 +29,6 @@ CONFIGURE_ARGS+=	--disable-sasl --enable-ssl
 
 USE_LDCONFIG=	yes
 
-post-patch:
-	${REINPLACE_CMD} -e \
-	's|_ALIGN(|_RE_ALIGN(|g' ${WRKSRC}/src/rdkafka_buf.h \
-		${WRKSRC}/src/rdkafka_metadata_cache.c
-
 post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
 
diff --git a/net/librdkafka/distinfo b/net/librdkafka/distinfo
index bb575cb47c9c..e99404c22181 100644
--- a/net/librdkafka/distinfo
+++ b/net/librdkafka/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1660422508
-SHA256 (edenhill-librdkafka-v1.9.2_GH0.tar.gz) = 3fba157a9f80a0889c982acdd44608be8a46142270a389008b22d921be1198ad
-SIZE (edenhill-librdkafka-v1.9.2_GH0.tar.gz) = 4185493
+TIMESTAMP = 1675359576
+SHA256 (edenhill-librdkafka-v2.0.2_GH0.tar.gz) = f321bcb1e015a34114c83cf1aa7b99ee260236aab096b85c003170c90a47ca9d
+SIZE (edenhill-librdkafka-v2.0.2_GH0.tar.gz) = 4257782
diff --git a/net/librdkafka/pkg-plist b/net/librdkafka/pkg-plist
index a0f227b41fdd..4ee076674697 100644
--- a/net/librdkafka/pkg-plist
+++ b/net/librdkafka/pkg-plist
@@ -5,6 +5,7 @@ lib/librdkafka++.a
 lib/librdkafka++.so
 lib/librdkafka++.so.1
 lib/librdkafka.a
+lib/librdkafka-static.a
 lib/librdkafka.so
 lib/librdkafka.so.1
 libdata/pkgconfig/rdkafka++.pc