pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat/weechat Update chat/weechat to 0.3.7



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f0f0542726f3
branches:  trunk
changeset: 604277:f0f0542726f3
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Mon May 28 22:55:05 2012 +0000

description:
Update chat/weechat to 0.3.7

Among the new features for 0.3.7:
- support of Scheme scripts (new plugin "guile")
- support of Python 3.x (but version 2.x still recommended)
- add "weechat" protocol in relay plugin for remote interfaces, like QWeeChat
- new option irc.color.mirc_remap to remap mirc colors in irc messages
- new options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight
- new option "capabilities" in irc servers (to enable some client capabilities on connection)
- new option weechat.history.max_buffer_lines_minutes to limit buffer history by time
- use extended regex in /filter, /ignore and /list
- add support of flags in regular expressions and highlight options
- add URL transfer in plugin API (with hook_process and hook_process_hashtable)
- add translations in japanese
- add doc for relay protocol
- add developer's guide
- many bugs fixed.

Among the new features for 0.3.6:
- mouse support
- cursor mode (free movement of cursor on screen)
- contexts for keys
- hdata in API (direct access to WeeChat and plugins data)
- "inactive" colors for inactive windows and lines in merged buffers
- support of merged buffers in /layout, save layout of buffers/windows on /upgrade
- horizontal scrolling in buffers with free content
- split of outgoing IRC messages
- options for "more" chars in bars
- bold not used any more for basic colors (if terminal has at least 16 colors)
- automatic zoom on current window when terminal becomes too small for windows
- new command /repeat
- local variable "highlight_regex" in buffers.

mong the new features for 0.3.5:
- 256 colors support improved (dynamic allocation of colors)
- attributes for colors (bold/reverse/underline)
- better scroll of input (with long text)
- output of /help improved for list of commands and their arguments
- remember scroll position of buffers in windows
- list of buffers in filters
- count of messages in hotlist buffers
- swap buffers of windows
- balance of windows
- new API function to set help on plugin/script options
- speller options in aspell plugin
- option for SSL priorities in IRC servers
- color nicks in nicklist and output of /names.

diffstat:

 chat/weechat/Makefile                                               |    8 +-
 chat/weechat/PLIST                                                  |    3 +-
 chat/weechat/distinfo                                               |   22 +-
 chat/weechat/patches/patch-aa                                       |    4 +-
 chat/weechat/patches/patch-ab                                       |    8 +-
 chat/weechat/patches/patch-ac                                       |   14 +-
 chat/weechat/patches/patch-ad                                       |    8 +-
 chat/weechat/patches/patch-src_core_wee-hook.c                      |   54 -
 chat/weechat/patches/patch-src_core_wee-hook.h                      |   31 -
 chat/weechat/patches/patch-src_core_wee-network.c                   |   15 -
 chat/weechat/patches/patch-src_plugins_irc_irc-server.c             |  405 ----------
 chat/weechat/patches/patch-src_plugins_rmodifier_rmodifier-config.h |   15 -
 chat/weechat/patches/patch-src_plugins_rmodifier_rmodifier.c        |   14 -
 13 files changed, 31 insertions(+), 570 deletions(-)

diffs (truncated from 708 to 300 lines):

diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/Makefile
--- a/chat/weechat/Makefile     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/Makefile     Mon May 28 22:55:05 2012 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2012/03/22 14:25:25 taca Exp $
+# $NetBSD: Makefile,v 1.30 2012/05/28 22:55:05 tonio Exp $
 #
 
-DISTNAME=      weechat-0.3.4
-PKGREVISION=   2
+DISTNAME=      weechat-0.3.7
 CATEGORIES=    chat
 MASTER_SITES=  http://www.weechat.org/files/src/
 
@@ -18,7 +17,7 @@
 USE_TOOLS+=            msgfmt
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --disable-tcl --disable-aspell
+CONFIGURE_ARGS+=       --disable-tcl --disable-guile --disable-aspell
 MAKE_ENV+=             INSTALL_DATA_DIR=${INSTALL_DATA_DIR:Q}
 MAKE_ENV+=             PREFIX=${DESTDIR:Q}${PREFIX:Q}
 LIBS.SunOS+=           -lnsl
@@ -26,5 +25,6 @@
 .include "options.mk"
 
 .include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
 .include "../../converters/libiconv/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/PLIST
--- a/chat/weechat/PLIST        Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/PLIST        Mon May 28 22:55:05 2012 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2011/03/05 22:48:07 tonio Exp $
+@comment $NetBSD: PLIST,v 1.15 2012/05/28 22:55:05 tonio Exp $
 bin/weechat-curses
 include/weechat/weechat-plugin.h
 lib/pkgconfig/weechat.pc
@@ -21,6 +21,7 @@
 share/locale/fr/LC_MESSAGES/weechat.mo
 share/locale/hu/LC_MESSAGES/weechat.mo
 share/locale/it/LC_MESSAGES/weechat.mo
+share/locale/ja/LC_MESSAGES/weechat.mo
 share/locale/pl/LC_MESSAGES/weechat.mo
 share/locale/pt_BR/LC_MESSAGES/weechat.mo
 share/locale/ru/LC_MESSAGES/weechat.mo
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/distinfo
--- a/chat/weechat/distinfo     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/distinfo     Mon May 28 22:55:05 2012 +0000
@@ -1,15 +1,9 @@
-$NetBSD: distinfo,v 1.19 2012/02/16 16:11:24 hans Exp $
+$NetBSD: distinfo,v 1.20 2012/05/28 22:55:05 tonio Exp $
 
-SHA1 (weechat-0.3.4.tar.gz) = 5a956aed4b3ba1fbadeac4435a4ec0eac499ffda
-RMD160 (weechat-0.3.4.tar.gz) = dbd70a2dc05e53e0c23cd3b865af7f98d8b21dbf
-Size (weechat-0.3.4.tar.gz) = 2786555 bytes
-SHA1 (patch-aa) = 5374a1a4ff08262d67f992d82e693041eeee4e27
-SHA1 (patch-ab) = 841780d694951b0c7164690481698d14948826cf
-SHA1 (patch-ac) = 3404adfb03e405ed0de30ec91b9f8d01b93a1847
-SHA1 (patch-ad) = 3a619a93d396fc5e6ed62d93ea3a44455b297208
-SHA1 (patch-src_core_wee-hook.c) = 8875ab65e4eb2f37950e16f503f62eb00031062b
-SHA1 (patch-src_core_wee-hook.h) = 643dd8ec271f4632f631ece55cd46f9964100fad
-SHA1 (patch-src_core_wee-network.c) = dcba7c9c2814ebd65efdc80db6d7955e88dd66b3
-SHA1 (patch-src_plugins_irc_irc-server.c) = 2ba285bee488f5fdfea98c6b17ceddbb8b11c1cb
-SHA1 (patch-src_plugins_rmodifier_rmodifier-config.h) = e5e733d52ad1c6a56c981069710738420bd1c8af
-SHA1 (patch-src_plugins_rmodifier_rmodifier.c) = 02b6df6a1133fe4ab5ddf10376e18b37ac92ce8f
+SHA1 (weechat-0.3.7.tar.gz) = 0cb37c3d378adf7d3c037154eb9f073ec53594f4
+RMD160 (weechat-0.3.7.tar.gz) = 75749fe291749dbd95d794e2ceaea29f0d1b4e5d
+Size (weechat-0.3.7.tar.gz) = 3458650 bytes
+SHA1 (patch-aa) = 86a3cfd780fb52d8dea92d5f9d72bb3ac2df91bf
+SHA1 (patch-ab) = d0fac0994602dfa0afde9fe14487f44f8cce25d6
+SHA1 (patch-ac) = e9fa664f040bd6549ddd8e860ec4568931bcab6b
+SHA1 (patch-ad) = 4f8140fc3d10a036ff10db402053c9744c350b2b
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-aa
--- a/chat/weechat/patches/patch-aa     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/patches/patch-aa     Mon May 28 22:55:05 2012 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.4 2011/03/05 22:48:07 tonio Exp $
+$NetBSD: patch-aa,v 1.5 2012/05/28 22:55:05 tonio Exp $
 
---- po/Makefile.in.in.orig     2007-10-31 17:28:48.000000000 +0000
+--- po/Makefile.in.in.orig     2011-10-10 15:42:58.000000000 +0000
 +++ po/Makefile.in.in
 @@ -30,7 +30,7 @@ gettextsrcdir = $(datadir)/gettext/po
  
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-ab
--- a/chat/weechat/patches/patch-ab     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/patches/patch-ab     Mon May 28 22:55:05 2012 +0000
@@ -1,9 +1,9 @@
-$NetBSD: patch-ab,v 1.6 2011/03/05 22:48:07 tonio Exp $
+$NetBSD: patch-ab,v 1.7 2012/05/28 22:55:05 tonio Exp $
 
---- src/gui/curses/gui-curses.h.orig   2011-01-01 13:52:16.000000000 +0000
+--- src/gui/curses/gui-curses.h.orig   2012-01-08 09:13:53.000000000 +0000
 +++ src/gui/curses/gui-curses.h
-@@ -21,6 +21,8 @@
- #define __WEECHAT_GUI_CURSES_H 1
+@@ -23,6 +23,8 @@
+ #include <time.h>
  
  #ifdef HAVE_NCURSESW_CURSES_H
 +#include <ncursesw/curses.h>
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-ac
--- a/chat/weechat/patches/patch-ac     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/patches/patch-ac     Mon May 28 22:55:05 2012 +0000
@@ -1,17 +1,17 @@
-$NetBSD: patch-ac,v 1.5 2011/03/05 22:48:07 tonio Exp $
+$NetBSD: patch-ac,v 1.6 2012/05/28 22:55:05 tonio Exp $
 
 Make sure to honor destdir
 
---- src/plugins/Makefile.in.orig       2011-01-16 08:17:23.000000000 +0000
+--- src/plugins/Makefile.in.orig       2012-02-26 07:12:48.000000000 +0000
 +++ src/plugins/Makefile.in
-@@ -759,8 +759,8 @@ uninstall-am:
+@@ -778,8 +778,8 @@ uninstall-am:
  # install plugin header
  
  install-data-hook:
 -      $(INSTALL) -d $(includedir)/$(PACKAGE)
--      $(INSTALL_DATA) weechat-plugin.h $(includedir)/$(PACKAGE)
+-      $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h $(includedir)/$(PACKAGE)
 +      $(INSTALL_DATA_DIR) -d ${DESTDIR}$(includedir)/$(PACKAGE)
-+      $(INSTALL_DATA) weechat-plugin.h ${DESTDIR}$(includedir)/$(PACKAGE)
++      $(INSTALL_DATA) $(abs_top_srcdir)/src/plugins/weechat-plugin.h ${DESTDIR}$(includedir)/$(PACKAGE)
  
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
+ # uninstall plugin header
+ 
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-ad
--- a/chat/weechat/patches/patch-ad     Mon May 28 20:21:47 2012 +0000
+++ b/chat/weechat/patches/patch-ad     Mon May 28 22:55:05 2012 +0000
@@ -1,11 +1,11 @@
-$NetBSD: patch-ad,v 1.4 2011/03/05 22:48:07 tonio Exp $
+$NetBSD: patch-ad,v 1.5 2012/05/28 22:55:05 tonio Exp $
 
 Solaris build
 
---- src/gui/curses/gui-curses-window.c.orig    2011-01-01 13:52:16.000000000 +0000
+--- src/gui/curses/gui-curses-window.c.orig    2012-01-28 14:02:25.000000000 +0000
 +++ src/gui/curses/gui-curses-window.c
-@@ -29,6 +29,8 @@
- #include <string.h>
+@@ -31,6 +31,8 @@
+ #include <ctype.h>
  #include <stdarg.h>
  #include <libgen.h>
 +#include <unistd.h>
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-src_core_wee-hook.c
--- a/chat/weechat/patches/patch-src_core_wee-hook.c    Mon May 28 20:21:47 2012 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-$NetBSD: patch-src_core_wee-hook.c,v 1.1 2011/03/05 22:48:07 tonio Exp $
-
-Fix for http://secunia.com/advisories/43543/
-
---- src/core/wee-hook.c.orig   2011-01-02 18:05:16.000000000 +0000
-+++ src/core/wee-hook.c
-@@ -1700,6 +1700,38 @@ hook_connect (struct t_weechat_plugin *p
- }
- 
- /*
-+ * hook_connect_gnutls_verify_certificates: verify server certificate
-+ */
-+
-+#ifdef HAVE_GNUTLS
-+int
-+hook_connect_gnutls_verify_certificates (gnutls_session_t tls_session)
-+{
-+    struct t_hook *ptr_hook;
-+    int rc;
-+    
-+    rc = -1;
-+    ptr_hook = weechat_hooks[HOOK_TYPE_CONNECT];
-+    while (ptr_hook)
-+    {
-+        /* looking for the right hook using to the gnutls session pointer */
-+        if (!ptr_hook->deleted
-+            && HOOK_CONNECT(ptr_hook, gnutls_sess)
-+            && (*(HOOK_CONNECT(ptr_hook, gnutls_sess)) == tls_session))
-+        {
-+            rc = (int) (HOOK_CONNECT(ptr_hook, gnutls_cb))
-+                (ptr_hook->callback_data, tls_session, NULL, 0,
-+                 NULL, 0, NULL, GNUTLS_CB_MODE_VERIFY);
-+            break;
-+        }
-+        ptr_hook = ptr_hook->next_hook;
-+    }
-+    
-+    return rc;
-+}
-+#endif
-+
-+/*
-  * hook_connect_gnutls_set_certificates: set gnutls
-  */
- 
-@@ -1725,7 +1757,7 @@ hook_connect_gnutls_set_certificates (gn
-         {
-             rc = (int) (HOOK_CONNECT(ptr_hook, gnutls_cb))
-                 (ptr_hook->callback_data, tls_session, req_ca, nreq,
--                 pk_algos, pk_algos_len, answer);
-+                 pk_algos, pk_algos_len, answer, GNUTLS_CB_MODE_SETCERT);
-             break;
-         }
-         ptr_hook = ptr_hook->next_hook;
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-src_core_wee-hook.h
--- a/chat/weechat/patches/patch-src_core_wee-hook.h    Mon May 28 20:21:47 2012 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-$NetBSD: patch-src_core_wee-hook.h,v 1.1 2011/03/05 22:48:07 tonio Exp $
-
-Fix for http://secunia.com/advisories/43543/
-
---- src/core/wee-hook.h.orig   2011-01-01 13:48:19.000000000 +0000
-+++ src/core/wee-hook.h
-@@ -202,10 +202,15 @@ typedef int (t_hook_callback_connect)(vo
-                                       const char *ip_address);
- 
- #ifdef HAVE_GNUTLS
-+enum t_gnutls_cb_mode {
-+    GNUTLS_CB_MODE_SETCERT,
-+    GNUTLS_CB_MODE_VERIFY
-+};
- typedef int (gnutls_callback_t)(void *data, gnutls_session_t tls_session,
-                                 const gnutls_datum_t *req_ca, int nreq,
-                                 const gnutls_pk_algorithm_t *pk_algos,
--                                int pk_algos_len, gnutls_retr_st *answer);
-+                                int pk_algos_len, gnutls_retr_st *answer,
-+                                enum t_gnutls_cb_mode cbmode);
- #endif
- 
- struct t_hook_connect
-@@ -416,6 +421,7 @@ extern int hook_connect_gnutls_set_certi
-                                                  const gnutls_pk_algorithm_t *pk_algos,
-                                                  int pk_algos_len,
-                                                  gnutls_retr_st *answer);
-+extern int hook_connect_gnutls_verify_certificates (gnutls_session_t tls_session);
- #endif
- extern struct t_hook *hook_print (struct t_weechat_plugin *plugin,
-                                   struct t_gui_buffer *buffer,
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-src_core_wee-network.c
--- a/chat/weechat/patches/patch-src_core_wee-network.c Mon May 28 20:21:47 2012 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_core_wee-network.c,v 1.1 2011/03/05 22:48:07 tonio Exp $
-
-Fix for http://secunia.com/advisories/43543/
-
---- src/core/wee-network.c.orig        2011-01-01 13:48:17.000000000 +0000
-+++ src/core/wee-network.c
-@@ -94,6 +94,8 @@ network_init ()
-         }
-         free (ca_path);
-     }
-+    gnutls_certificate_set_verify_function (gnutls_xcred,
-+                                            &hook_connect_gnutls_verify_certificates);
-     gnutls_certificate_client_set_retrieve_function (gnutls_xcred,
-                                                      &hook_connect_gnutls_set_certificates);
-     network_init_ok = 1;
diff -r 85b438809f64 -r f0f0542726f3 chat/weechat/patches/patch-src_plugins_irc_irc-server.c
--- a/chat/weechat/patches/patch-src_plugins_irc_irc-server.c   Mon May 28 20:21:47 2012 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,405 +0,0 @@
-$NetBSD: patch-src_plugins_irc_irc-server.c,v 1.1 2011/03/05 22:48:07 tonio Exp $
-
-Fix for http://secunia.com/advisories/43543/
-
---- src/plugins/irc/irc-server.c.orig  2011-01-07 15:26:49.000000000 +0000
-+++ src/plugins/irc/irc-server.c
-@@ -2797,6 +2797,10 @@ irc_server_create_buffer (struct t_irc_s
- }
- 
- #ifdef HAVE_GNUTLS
-+enum t_gnutls_cb_mode {
-+    GNUTLS_CB_MODE_SETCERT,
-+    GNUTLS_CB_MODE_VERIFY
-+};
- /*
-  * irc_server_gnutls_callback: gnutls callback called during handshake
-  *
-@@ -2805,7 +2809,8 @@ int
- irc_server_gnutls_callback (void *data, gnutls_session_t tls_session,
-                             const gnutls_datum_t *req_ca, int nreq,
-                             const gnutls_pk_algorithm_t *pk_algos,
--                            int pk_algos_len, gnutls_retr_st *answer)
-+                            int pk_algos_len, gnutls_retr_st *answer,
-+                            enum t_gnutls_cb_mode cbmode)
- {
-     struct t_irc_server *server;
-     gnutls_retr_st tls_struct;
-@@ -2837,207 +2842,212 @@ irc_server_gnutls_callback (void *data, 
-     hostname = server->current_address;
-     hostname_match = 0;
-     
--    weechat_printf (server->buffer,
--                    _("gnutls: connected using %d-bit Diffie-Hellman shared "
--                      "secret exchange"),



Home | Main Index | Thread Index | Old Index