git: 310ddc040929 - main - irc/weechat: Update to 4.9.0

From: Bernard Spil <brnrd_at_FreeBSD.org>
Date: Sun, 29 Mar 2026 10:41:16 UTC
The branch main has been updated by brnrd:

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

commit 310ddc040929e1b5c099ecaa52e1c6cd3227adfb
Author:     Bernard Spil <brnrd@FreeBSD.org>
AuthorDate: 2026-03-29 10:41:14 +0000
Commit:     Bernard Spil <brnrd@FreeBSD.org>
CommitDate: 2026-03-29 10:41:14 +0000

    irc/weechat: Update to 4.9.0
---
 irc/weechat/Makefile                            |  2 +-
 irc/weechat/distinfo                            |  6 ++--
 irc/weechat/files/patch-CMakeLists.txt          | 40 ++++++++++++++++++++-----
 irc/weechat/files/patch-src_core_CMakeLists.txt | 23 --------------
 4 files changed, 37 insertions(+), 34 deletions(-)

diff --git a/irc/weechat/Makefile b/irc/weechat/Makefile
index bf979611a597..4b6386af02c2 100644
--- a/irc/weechat/Makefile
+++ b/irc/weechat/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	weechat
-PORTVERSION=	4.8.2
+PORTVERSION=	4.9.0
 CATEGORIES=	irc
 MASTER_SITES=	https://weechat.org/files/src/
 
diff --git a/irc/weechat/distinfo b/irc/weechat/distinfo
index 115b233b8ca4..61fc11d06f26 100644
--- a/irc/weechat/distinfo
+++ b/irc/weechat/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1772873565
-SHA256 (weechat-4.8.2.tar.xz) = 7e2f619d4dcd28d9d86864763581a1b453499f8dd0652af863b54045a8964d6c
-SIZE (weechat-4.8.2.tar.xz) = 2789868
+TIMESTAMP = 1774777846
+SHA256 (weechat-4.9.0.tar.xz) = 7cbb9b27f25a7d2f1d8c426a08f8e625eefbc1d3e59bbf775925444f72394b6f
+SIZE (weechat-4.9.0.tar.xz) = 2792516
diff --git a/irc/weechat/files/patch-CMakeLists.txt b/irc/weechat/files/patch-CMakeLists.txt
index 34859ef0afb6..80aeaac530bd 100644
--- a/irc/weechat/files/patch-CMakeLists.txt
+++ b/irc/weechat/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig	2024-05-31 11:34:43 UTC
+--- CMakeLists.txt.orig	2026-03-29 08:20:23 UTC
 +++ CMakeLists.txt
-@@ -102,11 +102,13 @@ option(ENABLE_ALIAS          "Enable Alias plugin"    
+@@ -96,11 +96,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)
@@ -14,24 +14,50 @@
  option(ENABLE_IRC            "Enable IRC plugin"                        ON)
  option(ENABLE_LOGGER         "Enable Logger plugin"                     ON)
  option(ENABLE_RELAY          "Enable Relay plugin"                      ON)
-@@ -233,10 +236,12 @@ endif()
+@@ -258,13 +260,15 @@ endif()
    add_definitions(-DHAVE_CJSON)
  endif()
  
 -# Check for iconv
 -find_package(Iconv)
 -if(ICONV_FOUND)
--  add_definitions(-DHAVE_ICONV)
-+if (ENABLE_ICONV)
+-  if(ICONV_LIBRARY)
+-    list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
++if(ENABLE_ICONV)
 +  # Check for iconv
 +  find_package(Iconv)
 +  if(ICONV_FOUND)
++    if(ICONV_LIBRARY)
++      list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
++    endif()
 +    add_definitions(-DHAVE_ICONV)
-+  endif()
+   endif()
+-  add_definitions(-DHAVE_ICONV)
  endif()
  
  # Check for CURL
-@@ -311,10 +316,10 @@ set(exec_prefix "\${prefix}")
+@@ -290,12 +294,14 @@ endif()
+   add_custom_target(translations COMMAND true)
+ endif()
+ 
+-if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
+-  find_library(EXECINFO_LIB_PATH execinfo /usr/local/lib)
+-  check_function_exists(backtrace HAVE_BACKTRACE)
+-  list(APPEND EXTRA_LIBS "execinfo")
+-else()
+-  check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
++if(ENABLE_BACKTRACE)
++  if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
++    find_library(EXECINFO_LIB_PATH execinfo /usr/local/lib)
++    check_function_exists(backtrace HAVE_BACKTRACE)
++    list(APPEND EXTRA_LIBS "execinfo")
++  else()
++    check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
++  endif()
+ endif()
+ 
+ if(${CMAKE_SYSTEM_NAME} STREQUAL "Haiku")
+@@ -343,10 +349,10 @@ set(exec_prefix "\${prefix}")
  set(PACKAGE "${PROJECT_NAME}")
  set(prefix "${CMAKE_INSTALL_PREFIX}")
  set(exec_prefix "\${prefix}")
diff --git a/irc/weechat/files/patch-src_core_CMakeLists.txt b/irc/weechat/files/patch-src_core_CMakeLists.txt
deleted file mode 100644
index 7ef963fb8326..000000000000
--- a/irc/weechat/files/patch-src_core_CMakeLists.txt
+++ /dev/null
@@ -1,23 +0,0 @@
---- src/core/CMakeLists.txt.orig	2016-05-01 10:50:12 UTC
-+++ src/core/CMakeLists.txt
-@@ -51,12 +51,14 @@ wee-version.c wee-version.h)
- include(CheckSymbolExists)
- check_symbol_exists(flock "sys/file.h" HAVE_FLOCK)
- 
--if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
--  find_library(EXECINFO_LIB_PATH execinfo /usr/local/lib)
--  set(CMAKE_REQUIRED_LIBRARIES "${EXECINFO_LIB_PATH}")
--  check_function_exists(backtrace HAVE_BACKTRACE)
--else()
--  check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
-+if(ENABLE_BACKTRACE)
-+  if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
-+    find_library(EXECINFO_LIB_PATH execinfo /usr/local/lib)
-+    set(CMAKE_REQUIRED_LIBRARIES "${EXECINFO_LIB_PATH}")
-+    check_function_exists(backtrace HAVE_BACKTRACE)
-+  else()
-+    check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
-+  endif()
- endif()
- 
- if(GNUTLS_FOUND)