git: b6e61cdae209 - main - irc/weechat: Update to 4.3.1

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Sun, 02 Jun 2024 19:42:58 UTC
The branch main has been updated by brnrd:

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

commit b6e61cdae2099066930bb3383bdb798d82a7bbd3
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2024-06-02 19:42:51 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2024-06-02 19:42:51 +0000

    irc/weechat: Update to 4.3.1
---
 irc/weechat/Makefile                   |  2 +-
 irc/weechat/distinfo                   |  6 +++---
 irc/weechat/files/patch-CMakeLists.txt | 24 ++++++++++++------------
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index 0be4778f2090..5d61c45788d2 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	weechat
-PORTVERSION=	4.3.0
+PORTVERSION=	4.3.1
 CATEGORIES=	irc
 MASTER_SITES=	https://weechat.org/files/src/
 
diff --git a/irc/weechat/distinfo b/irc/weechat/distinfo
index 1c56c9a977fb..4e0c6a1fb082 100644
--- a/irc/weechat/distinfo
+++ b/irc/weechat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1716798621
-SHA256 (weechat-4.3.0.tar.xz) = 36f9f90bf2f69f77a34d1e0d58f06ca08f0f20f8263ab940b637e7abf796862d
-SIZE (weechat-4.3.0.tar.xz) = 2692816
+TIMESTAMP = 1717351182
+SHA256 (weechat-4.3.1.tar.xz) = 157e22a17dcc303c665739631a04470d786474e805febed2ed2d5b6250d18653
+SIZE (weechat-4.3.1.tar.xz) = 2692548
diff --git a/irc/weechat/files/patch-CMakeLists.txt b/irc/weechat/files/patch-CMakeLists.txt
index 5bfa52cd24b8..0e66921cdef3 100644
--- a/irc/weechat/files/patch-CMakeLists.txt
+++ b/irc/weechat/files/patch-CMakeLists.txt
@@ -1,8 +1,8 @@
---- CMakeLists.txt.orig	2023-06-24 20:00:30 UTC
+--- CMakeLists.txt.orig	2024-05-31 11:34:43 UTC
 +++ CMakeLists.txt
-@@ -100,11 +100,13 @@ option(ENABLE_HEADLESS       "Compile the headless bin
- option(ENABLE_NLS            "Enable Native Language Support"           ON)
- option(ENABLE_LARGEFILE      "Enable Large File Support"                ON)
+@@ -102,11 +102,13 @@ option(ENABLE_ALIAS          "Enable Alias plugin"    
+ option(ENABLE_ZSTD           "Enable Zstandard compression"             ON)
+ option(ENABLE_CJSON          "Enable cJSON support"                     ON)
  option(ENABLE_ALIAS          "Enable Alias plugin"                      ON)
 +option(ENABLE_BACKTRACE      "Enable backtraces (via libexecinfo)"      ON)
  option(ENABLE_BUFLIST        "Enable Buflist plugin"                    ON)
@@ -14,17 +14,17 @@
  option(ENABLE_IRC            "Enable IRC plugin"                        ON)
  option(ENABLE_LOGGER         "Enable Logger plugin"                     ON)
  option(ENABLE_RELAY          "Enable Relay plugin"                      ON)
-@@ -217,6 +219,7 @@ endif()
+@@ -208,6 +210,7 @@ add_definitions(-DHAVE_GCRYPT)
  # Check for libgcrypt
- find_package(GCRYPT REQUIRED)
+ pkg_check_modules(LIBGCRYPT REQUIRED libgcrypt)
  add_definitions(-DHAVE_GCRYPT)
 +add_definitions(${GCRYPT_CFLAGS})
- list(APPEND EXTRA_LIBS ${GCRYPT_LDFLAGS})
+ include_directories(${LIBGCRYPT_INCLUDE_DIRS})
+ list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS})
  
- # Check for GnuTLS
-@@ -232,10 +235,12 @@ find_package(ZLIB REQUIRED)
- # Check for zstd
- pkg_check_modules(LIBZSTD REQUIRED libzstd)
+@@ -233,10 +236,12 @@ endif()
+   add_definitions(-DHAVE_CJSON)
+ endif()
  
 -# Check for iconv
 -find_package(Iconv)
@@ -39,7 +39,7 @@
  endif()
  
  # Check for CURL
-@@ -304,10 +309,10 @@ add_custom_target(dist
+@@ -311,10 +316,10 @@ set(exec_prefix "\${prefix}")
  set(PACKAGE "${PROJECT_NAME}")
  set(prefix "${CMAKE_INSTALL_PREFIX}")
  set(exec_prefix "\${prefix}")