git: f54d95937fd1 - main - irc/weechat: Update to 4.3.0

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Mon, 27 May 2024 08:44:17 UTC
The branch main has been updated by brnrd:

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

commit f54d95937fd12453e802b0414c18c6e8bec32609
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2024-05-27 08:44:13 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2024-05-27 08:44:13 +0000

    irc/weechat: Update to 4.3.0
---
 irc/weechat/Makefile |  9 ++++++---
 irc/weechat/distinfo |  6 +++---
 irc/weechat/patch    | 39 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+), 6 deletions(-)

diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index ed9b626dcbb0..0be4778f2090 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	weechat
-PORTVERSION=	4.2.2
+PORTVERSION=	4.3.0
 CATEGORIES=	irc
 MASTER_SITES=	https://weechat.org/files/src/
 
@@ -20,8 +20,8 @@ USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DLIBDATADIR=${LOCALBASE}/libdata
 
-OPTIONS_DEFINE=		BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS ZSTD
-OPTIONS_DEFAULT=	ASPELL BACKTRACE CHARSET HEADLESS ICON LUA MANPAGES \
+OPTIONS_DEFINE=		API BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS ZSTD
+OPTIONS_DEFAULT=	API ASPELL BACKTRACE CHARSET HEADLESS ICON LUA MANPAGES \
 			NLS PERL PYTHON RUBY TCL TYPING ZSTD
 OPTIONS_SUB=		yes
 
@@ -29,6 +29,7 @@ OPTIONS_GROUP=		PLUGINS
 OPTIONS_GROUP_PLUGINS=	ASPELL CHARSET GUILE JAVASCRIPT LUA PERL PHP PYTHON \
 			RUBY TCL TYPING
 
+API_DESC=		HTTP REST API
 BACKTRACE_DESC=		Provide crash backtraces
 CHARSET_DESC=		Charset plugin (implies ICONV)
 GUILE_DESC=		Guile script support
@@ -44,6 +45,8 @@ TYPING_DESC=		Typing status plugin
 ${_opt}_CMAKE_BOOL=	ENABLE_${_opt}
 .endfor
 
+API_CMAKE_BOOL=		ENABLE_CJSON
+API_LIB_DEPENDS=	libcjson.so:devel/libcjson
 ASPELL_CMAKE_BOOL=	ENABLE_SPELL
 ASPELL_LIB_DEPENDS=	libaspell.so:textproc/aspell
 CHARSET_IMPLIES=	ICONV
diff --git a/irc/weechat/distinfo b/irc/weechat/distinfo
index 463bba8aa5f6..1c56c9a977fb 100644
--- a/irc/weechat/distinfo
+++ b/irc/weechat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712605917
-SHA256 (weechat-4.2.2.tar.xz) = 20968b22c7f0f50df9cf6ff8598dd1bd017c5759b2c94593f5d9ed7b24ebb941
-SIZE (weechat-4.2.2.tar.xz) = 2594452
+TIMESTAMP = 1716798621
+SHA256 (weechat-4.3.0.tar.xz) = 36f9f90bf2f69f77a34d1e0d58f06ca08f0f20f8263ab940b637e7abf796862d
+SIZE (weechat-4.3.0.tar.xz) = 2692816
diff --git a/irc/weechat/patch b/irc/weechat/patch
new file mode 100644
index 000000000000..48ab4bee5e71
--- /dev/null
+++ b/irc/weechat/patch
@@ -0,0 +1,39 @@
+diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
+index dba99258c7..770bb3aad8 100644
+--- a/irc/weechat/Makefile
++++ b/irc/weechat/Makefile
+@@ -1,5 +1,5 @@
+ PORTNAME=	weechat
+-PORTVERSION=	4.2.2
++PORTVERSION=	4.3.0
+ CATEGORIES=	irc
+ MASTER_SITES=	https://weechat.org/files/src/
+ 
+@@ -20,8 +20,8 @@ USE_LDCONFIG=	yes
+ 
+ CMAKE_ARGS=	-DLIBDATADIR=${LOCALBASE}/libdata
+ 
+-OPTIONS_DEFINE=		BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS ZSTD
+-OPTIONS_DEFAULT=	ASPELL BACKTRACE CHARSET HEADLESS ICON LUA MANPAGES \
++OPTIONS_DEFINE=		API BACKTRACE DOCS HEADLESS ICON ICONV MANPAGES NLS ZSTD
++OPTIONS_DEFAULT=	API ASPELL BACKTRACE CHARSET HEADLESS ICON LUA MANPAGES \
+ 			NLS PERL PYTHON RUBY TCL TYPING ZSTD
+ OPTIONS_SUB=		yes
+ 
+@@ -29,6 +29,7 @@ OPTIONS_GROUP=		PLUGINS
+ OPTIONS_GROUP_PLUGINS=	ASPELL CHARSET GUILE JAVASCRIPT LUA PERL PHP PYTHON \
+ 			RUBY TCL TYPING
+ 
++API_DESC=		HTTP REST API
+ BACKTRACE_DESC=		Provide crash backtraces
+ CHARSET_DESC=		Charset plugin (implies ICONV)
+ GUILE_DESC=		Guile script support
+@@ -44,6 +45,8 @@ TYPING_DESC=		Typing status plugin
+ ${_opt}_CMAKE_BOOL=	ENABLE_${_opt}
+ .endfor
+ 
++API_CMAKE_BOOL=		ENABLE_CJSON
++API_LIB_DEPENDS=	libcjson.so:devel/libcjson
+ ASPELL_CMAKE_BOOL=	ENABLE_SPELL
+ ASPELL_LIB_DEPENDS=	libaspell.so:textproc/aspell
+ CHARSET_IMPLIES=	ICONV