From b3f183c857fb4a001ff03e6b7edff190ed6e90fe Mon Sep 17 00:00:00 2001
From: Andreas Wacknitz <A.Wacknitz@gmx.de>
Date: Sun, 04 Feb 2024 13:01:44 +0100
Subject: [PATCH] weechat: update to 4.2.1

---
 components/network/weechat/Makefile |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/components/network/weechat/Makefile b/components/network/weechat/Makefile
index 5345831..44016a8 100644
--- a/components/network/weechat/Makefile
+++ b/components/network/weechat/Makefile
@@ -12,12 +12,13 @@
 # Copyright (c) 2020 Evgeny Litvinenko
 #
 
+BUILD_STYLE= cmake
 SINGLE_PYTHON_VERSION= yes
 SINGLE_PERL_VERSION= yes
 include ../../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		weechat
-COMPONENT_VERSION=	3.8
+COMPONENT_VERSION=	4.2.1
 COMPONENT_SUMMARY=	WeeChat - portable, fast, light and extensible IRC client
 COMPONENT_DESCRIPTION=	WeeChat (Wee Enhanced Environment for Chat) is a portable, fast, light and \
 extensible chat client. Everything can be done with a keyboard. \
@@ -25,29 +26,30 @@
 COMPONENT_PROJECT_URL=	https://weechat.org
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.xz
-COMPONENT_ARCHIVE_HASH=	sha256:f7cb65c200f8c090c56f2cf98c0b184051e516e5f7099a4308cacf86f174bf28
+COMPONENT_ARCHIVE_HASH=	sha256:253ddf086f6c845031a2dd294b1552851d6b04cc08a2f9da4aedfb3e2f91bdcd
 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/files/src/$(COMPONENT_ARCHIVE)
-COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).asc
+# The signature is invalid
+#COMPONENT_SIG_URL=	$(COMPONENT_ARCHIVE_URL).asc
 COMPONENT_FMRI=		network/chat/weechat
 COMPONENT_CLASSIFICATION=	Applications/Internet
 COMPONENT_LICENSE=	GPLv3
+COMPONENT_LICENSE_FILE=	COPYING
 
 TEST_TARGET= $(NO_TESTS)
 include $(WS_MAKE_RULES)/common.mk
 
 PATH= $(PATH.gnu)
 
-COMPONENT_PREP_ACTION= ( cd $(@D) && ./autogen.sh )
+LD_OPTIONS += -lresolv -lsocket -lnsl
 
-CONFIGURE_OPTIONS += --enable-doc
-CONFIGURE_OPTIONS += --disable-ruby
-CONFIGURE_OPTIONS += --enable-man
-CONFIGURE_OPTIONS += --enable-tests
-CONFIGURE_ENV += CA_FILE="/etc/certs/ca-certificates.crt"
-CONFIGURE_ENV += PERL=$(PERL)
+# default value of option weechat.network.gnutls_ca_file (default is "/etc/ssl/certs/ca-certificates.crt")
+# Alas since version 3.2 this is not supported anymore.
+CMAKE_OPTIONS += -DCA_FILE="/etc/certs/ca-certificates.crt"
+# We don't have PHP libraries (PHP with --enable-embed)
+CMAKE_OPTIONS += -DENABLE_PHP=OFF
 
-COMPONENT_TEST_CMD=    ctest -V
-COMPONENT_TEST_TARGETS=
+#COMPONENT_TEST_CMD=    ctest -V
+#COMPONENT_TEST_TARGETS=
 
 # Auto-generated dependencies
 PERL_REQUIRED_PACKAGES += runtime/perl
@@ -57,7 +59,8 @@
 REQUIRED_PACKAGES += library/guile
 REQUIRED_PACKAGES += library/ncurses
 REQUIRED_PACKAGES += library/zlib
-REQUIRED_PACKAGES += runtime/lua-53
+REQUIRED_PACKAGES += runtime/lua-54
+REQUIRED_PACKAGES += runtime/ruby-32
 REQUIRED_PACKAGES += runtime/tcl-8
 REQUIRED_PACKAGES += system/library
 REQUIRED_PACKAGES += system/library/math

--
Gitblit v1.9.3