From 8486b71dc9cda29ba10e7f3f8b7ff24a303a7896 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Sat, 6 May 2006 23:08:57 +0000 Subject: [PATCH] - Update to 0.7.6 PR: 95860 Submitted by: "infofarmer ___ gmail. com" --- net-im/mcabber/Makefile | 3 +-- net-im/mcabber/distinfo | 6 +++--- net-im/mcabber/files/patch-src__hbuf.c | 27 ++++++++++++++++++++++++++ net-im/mcabber/files/patch-src_hbuf.c | 19 ------------------ 4 files changed, 31 insertions(+), 24 deletions(-) create mode 100644 net-im/mcabber/files/patch-src__hbuf.c delete mode 100644 net-im/mcabber/files/patch-src_hbuf.c diff --git a/net-im/mcabber/Makefile b/net-im/mcabber/Makefile index 440698d5734a..95912b8b8d47 100644 --- a/net-im/mcabber/Makefile +++ b/net-im/mcabber/Makefile @@ -6,8 +6,7 @@ # PORTNAME= mcabber -PORTVERSION= 0.7.0 -PORTREVISION= 3 +PORTVERSION= 0.7.6 CATEGORIES= net-im MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ diff --git a/net-im/mcabber/distinfo b/net-im/mcabber/distinfo index f3ff5647efc8..a3d4e8acd80f 100644 --- a/net-im/mcabber/distinfo +++ b/net-im/mcabber/distinfo @@ -1,3 +1,3 @@ -MD5 (mcabber-0.7.0.tar.bz2) = fd40c81da873bd41a360735cc61c9db4 -SHA256 (mcabber-0.7.0.tar.bz2) = 9287cab98c28df40cfe49aa8ae7f5d75e72b5fa1a261d67db0800216e6fa103b -SIZE (mcabber-0.7.0.tar.bz2) = 310063 +MD5 (mcabber-0.7.6.tar.bz2) = 0456968da2a50eb127fce2a1ee5d5902 +SHA256 (mcabber-0.7.6.tar.bz2) = 03cc90cfce72a0d77fd9f6a83ef413cb27eb7421ff6c6042bf8fe5cbaf6d62de +SIZE (mcabber-0.7.6.tar.bz2) = 332528 diff --git a/net-im/mcabber/files/patch-src__hbuf.c b/net-im/mcabber/files/patch-src__hbuf.c new file mode 100644 index 000000000000..dc81ae8b4dbb --- /dev/null +++ b/net-im/mcabber/files/patch-src__hbuf.c @@ -0,0 +1,27 @@ +--- ./src/hbuf.c.orig Fri Apr 14 19:19:10 2006 ++++ ./src/hbuf.c Sat May 6 20:05:46 2006 +@@ -252,6 +252,9 @@ + hbuf_block *blk; + guchar last_persist_prefixflags = 0; + GList *last_persist; // last persistent flags ++ int maxlen; ++ hbb_line **array; ++ hbb_line **array_elt; + + // To be able to correctly highlight multi-line messages, + // we need to look at the last non-null prefix, which should be the first +@@ -266,12 +269,11 @@ + last_persist = g_list_previous(last_persist); + } + +- hbb_line **array = g_new0(hbb_line*, n); +- hbb_line **array_elt = array; ++ array = g_new0(hbb_line*, n); ++ array_elt = array; + + for (i=0 ; i < n ; i++) { + if (hbuf) { +- int maxlen; + blk = (hbuf_block*)(hbuf->data); + maxlen = blk->ptr_end - blk->ptr; + *array_elt = (hbb_line*)g_new(hbb_line, 1); diff --git a/net-im/mcabber/files/patch-src_hbuf.c b/net-im/mcabber/files/patch-src_hbuf.c deleted file mode 100644 index 4184cd99acfc..000000000000 --- a/net-im/mcabber/files/patch-src_hbuf.c +++ /dev/null @@ -1,19 +0,0 @@ -$FreeBSD$ - ---- src/hbuf.c.orig -+++ src/hbuf.c -@@ -70,12 +70,12 @@ - // Set p_hbuf to the end of the list, to speed up history loading - // (or CPU time will be used by g_list_last() for each line) - hbuf = *p_hbuf = g_list_last(*p_hbuf); -- hbuf_block *hbuf_b_prev = hbuf->data; -+ { hbuf_block *hbuf_b_prev = hbuf->data; - hbuf_block_elt->ptr = hbuf_b_prev->ptr_end; - hbuf_block_elt->flags = HBB_FLAG_PERSISTENT; - hbuf_block_elt->ptr_end_alloc = hbuf_b_prev->ptr_end_alloc; - g_list_append(*p_hbuf, hbuf_block_elt); -- } -+ }} - - if (strlen(text) >= HBB_BLOCKSIZE) { - // Too long