Update weechat to 3.0.

- Changelog: https://weechat.org/news/111/20201111-Version-3.0/

- Add simple patch to unbreak the build
- Remove WANTLIB-ruby, hint by make port-lib-depends-check:
  weechat-ruby-3.0(net/weechat,-ruby):
  Extra:  c.96 gmp.11 m.10 pthread.26 ruby26.

- ctest: 100% tests passed, 0 tests failed out of 1

OK?

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/weechat/Makefile,v
retrieving revision 1.49
diff -u -p -u -p -r1.49 Makefile
--- Makefile    23 Jul 2020 04:38:21 -0000      1.49
+++ Makefile    11 Nov 2020 20:46:46 -0000
@@ -6,7 +6,7 @@ COMMENT-python= Python bindings for weec
 COMMENT-ruby=  Ruby bindings for weechat
 COMMENT-tcl=   Tcl bindings for weechat
 
-V=             2.9
+V=             3.0
 DISTNAME=      weechat-${V}
 
 PKGNAME-main=  weechat-${V}
@@ -32,7 +32,6 @@ WANTLIB-main= aspell c curl iconv intl m
 
 WANTLIB-lua=   ${MODLUA_WANTLIB} m
 WANTLIB-python=        ${MODPY_WANTLIB}
-WANTLIB-ruby=  ${MODRUBY_WANTLIB}
 WANTLIB-tcl=   ${MODTCL_WANTLIB}
 
 MODULES=       devel/cmake \
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/weechat/distinfo,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 distinfo
--- distinfo    23 Jul 2020 04:38:21 -0000      1.27
+++ distinfo    11 Nov 2020 20:46:46 -0000
@@ -1,2 +1,2 @@
-SHA256 (weechat-2.9.tar.gz) = OngGO3bEK6MG6s+PdMuMmiYPimHRkV0LXXbxHSvmmlM=
-SIZE (weechat-2.9.tar.gz) = 4419872
+SHA256 (weechat-3.0.tar.gz) = vSP+THdf6l4UCtau1pbaoi3ul6KYo3IR0NorRZNb8HY=
+SIZE (weechat-3.0.tar.gz) = 4446169
Index: patches/patch-src_gui_gui-hotlist_h
===================================================================
RCS file: patches/patch-src_gui_gui-hotlist_h
diff -N patches/patch-src_gui_gui-hotlist_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_gui_gui-hotlist_h 11 Nov 2020 20:46:46 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+
+Index: src/gui/gui-hotlist.h
+--- src/gui/gui-hotlist.h.orig
++++ src/gui/gui-hotlist.h
+@@ -20,6 +20,8 @@
+ #ifndef WEECHAT_GUI_HOTLIST_H
+ #define WEECHAT_GUI_HOTLIST_H
+ 
++#include <sys/time.h>
++
+ enum t_gui_hotlist_priority
+ {
+     GUI_HOTLIST_LOW = 0,
Index: patches/patch-tests_CMakeLists_txt
===================================================================
RCS file: /cvs/ports/net/weechat/patches/patch-tests_CMakeLists_txt,v
retrieving revision 1.5
diff -u -p -u -p -r1.5 patch-tests_CMakeLists_txt
--- patches/patch-tests_CMakeLists_txt  23 Jul 2020 04:38:21 -0000      1.5
+++ patches/patch-tests_CMakeLists_txt  11 Nov 2020 20:46:46 -0000
@@ -3,7 +3,7 @@ $OpenBSD: patch-tests_CMakeLists_txt,v 1
 Index: tests/CMakeLists.txt
 --- tests/CMakeLists.txt.orig
 +++ tests/CMakeLists.txt
-@@ -73,7 +73,7 @@ if(ICONV_LIBRARY)
+@@ -74,7 +74,7 @@ if(ICONV_LIBRARY)
    list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
  endif()
  
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/net/weechat/pkg/PLIST-main,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 PLIST-main
--- pkg/PLIST-main      23 Jul 2020 04:38:21 -0000      1.14
+++ pkg/PLIST-main      11 Nov 2020 20:46:46 -0000
@@ -21,7 +21,6 @@ lib/weechat/plugins/
 @so lib/weechat/plugins/spell.so
 @so lib/weechat/plugins/trigger.so
 @so lib/weechat/plugins/xfer.so
-share/applications/
 share/applications/weechat.desktop
 share/doc/weechat/
 share/doc/weechat/weechat_dev.en.adoc

Reply via email to