diff --git a/net-irc/weechat/patches/weechat-4.5.1.patchset b/net-irc/weechat/patches/weechat-4.5.1.patchset new file mode 100644 index 000000000..267d803c1 --- /dev/null +++ b/net-irc/weechat/patches/weechat-4.5.1.patchset @@ -0,0 +1,23 @@ +From 088eb7159107ad804200af6dfce5edc7aedb5252 Mon Sep 17 00:00:00 2001 +From: Schrijvers Luc +Date: Wed, 1 Jan 2025 21:32:12 +0100 +Subject: Redefine htobe64 for Haiku + + +diff --git a/src/core/core-crypto.c b/src/core/core-crypto.c +index dc23469..2dcd987 100644 +--- a/src/core/core-crypto.c ++++ b/src/core/core-crypto.c +@@ -38,6 +38,9 @@ + #elif defined(__APPLE__) + #include + #define htobe64 OSSwapHostToBigInt64 ++#elif defined(__HAIKU__) ++#include ++#define htobe64(x) B_HOST_TO_BENDIAN_INT64(x) + #endif + + #include "weechat.h" +-- +2.45.2 + diff --git a/net-irc/weechat/weechat-4.1.2.recipe b/net-irc/weechat/weechat-4.5.1.recipe similarity index 81% rename from net-irc/weechat/weechat-4.1.2.recipe rename to net-irc/weechat/weechat-4.5.1.recipe index 64d3086be..e9071ce1e 100644 --- a/net-irc/weechat/weechat-4.1.2.recipe +++ b/net-irc/weechat/weechat-4.5.1.recipe @@ -3,11 +3,12 @@ DESCRIPTION="WeeChat (Wee Enhanced Environment for Chat) is a free chat \ client, fast and light, designed for many operating systems. \ It is highly customizable and extensible with scripts." HOMEPAGE="https://weechat.org/" -COPYRIGHT="2003-2023 Sébastien Helleu" +COPYRIGHT="2003-2024 Sébastien Helleu" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="https://weechat.org/files/src/weechat-$portVersion.tar.xz" -CHECKSUM_SHA256="9a9b910fbe768bb9de7c7ac944f5db8f233833f345b2e505e16ec6ef35effbb5" +CHECKSUM_SHA256="67c143c7bc70e689b9ea86df674c9a9ff3cf44ccc9cdff21be6a561d5eafc528" +PATCHES="weechat-$portVersion.patchset" ADDITIONAL_FILES="weechat.rdef.in" ARCHITECTURES="all !x86_gcc2" @@ -26,10 +27,11 @@ REQUIRES=" lib:libcurl$secondaryArchSuffix lib:libgcrypt$secondaryArchSuffix lib:libgnutls$secondaryArchSuffix - lib:libgpg_error$secondaryArchSuffix # for libgcrypt + lib:libgpg_error$secondaryArchSuffix lib:libiconv$secondaryArchSuffix lib:libintl$secondaryArchSuffix - lib:liblua$secondaryArchSuffix >= 5.3 + lib:libcjson$secondaryArchSuffix + lib:liblua$secondaryArchSuffix lib:libncurses$secondaryArchSuffix lib:libpython3.10$secondaryArchSuffix lib:libz$secondaryArchSuffix @@ -45,6 +47,7 @@ REQUIRES_devel=" BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel +# devel:libCppUTest$secondaryArchSuffix devel:libcurl$secondaryArchSuffix # devel:libgc$secondaryArchSuffix devel:libgcrypt$secondaryArchSuffix @@ -53,7 +56,8 @@ BUILD_REQUIRES=" # devel:libguile_2.2$secondaryArchSuffix devel:libiconv$secondaryArchSuffix devel:libintl$secondaryArchSuffix - devel:liblua$secondaryArchSuffix >= 5.3 + devel:libcjson$secondaryArchSuffix + devel:liblua$secondaryArchSuffix >= 5.4 devel:libncurses$secondaryArchSuffix devel:libpython3.10$secondaryArchSuffix # devel:libtclstub8.6$secondaryArchSuffix @@ -67,6 +71,7 @@ BUILD_PREREQUIRES=" cmd:make cmd:perl cmd:pkg_config$secondaryArchSuffix + cmd:xgettext$secondaryArchSuffix " BUILD() @@ -76,7 +81,8 @@ BUILD() -DLIBDIR=$libDir \ -DINCLUDEDIR=$includeDir \ -DDATAROOTDIR=$dataDir \ - -DWEECHAT_HOME=~/config/settings/weechat \ + -DWEECHAT_HOME=`finddir B_USER_SETTINGS_DIRECTORY`/weechat \ + -DCMAKE_EXE_LINKER_FLAGS="-lnetwork" \ -DENABLE_GUILE=OFF \ -DENABLE_JAVASCRIPT=OFF \ -DENABLE_MAN=OFF \ @@ -85,7 +91,10 @@ BUILD() -DENABLE_PYTHON=ON \ -DENABLE_RUBY=OFF \ -DENABLE_SPELL=OFF \ - -DENABLE_TCL=OFF -Wno-dev + -DENABLE_TCL=OFF \ + -DENABLE_TESTS=OFF \ + -Wno-dev + make -C build $jobArgs } @@ -116,3 +125,8 @@ INSTALL() packageEntries devel \ $developDir } + +TEST() +{ + ctest --test-dir build --output-on-failure +}