diff --git a/irc/irssi/Makefile b/irc/irssi/Makefile index fd851551ca6e..d0e3f497ee8e 100644 --- a/irc/irssi/Makefile +++ b/irc/irssi/Makefile @@ -1,56 +1,50 @@ PORTNAME= irssi -DISTVERSION= 1.4.1 +DISTVERSION= 1.4.2 PORTEPOCH= 2 CATEGORIES?= irc MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSION}/ -PATCH_SITES= https://github.com/ailin-nemui/${PORTNAME}/commit/ -PATCHFILES= 3404d822c83546b031d47a99e37ae65b887bec94.patch:-p1 \ - c6a7f02042f63d01a38e8d522cff8f5d951afd51.patch:-p1 \ - 730c3c1a12f782b92d710883f52a106e37f148e4.patch:-p1 \ - 1b6b92ffff6950ee28c1b7936f53d83988843ed4.patch:-p1 - MAINTAINER= dor.bsd@xm0.uk COMMENT= Modular IRC client with many features LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING USES= compiler:c11 cpe gettext-runtime gnome meson localbase:ldflags \ ncurses perl5 pkgconfig ssl tar:xz USE_GNOME= glib20 USE_LDCONFIG= yes MESON_ARGS= -Dinstall-glib=no -Ddisable-gregex=no -Dstatic-dependency=no \ -Dwith-fuzzer=no -Dwithout-textui=no OPTIONS_DEFINE= BOT CAPSICUM DOCS OTR PERL PROXY TRUECOLOR UTF8PROC OPTIONS_DEFAULT= BOT CAPSICUM PERL PROXY TRUECOLOR OPTIONS_SUB= yes BOT_DESC= Bot support CAPSICUM_DESC= Capsicum support OTR_DESC= OTR (off-the-record) support TRUECOLOR_DESC= True color support UTF8PROC_DESC= utf8proc support BOT_MESON_YES= with-bot CAPSICUM_MESON_YES= with-capsicum OTR_LIB_DEPENDS= libgcrypt.so:security/libgcrypt \ libotr.so:security/libotr OTR_MESON_YES= with-otr PERL_MESON_YES= with-perl PROXY_MESON_YES= with-proxy TRUECOLOR_MESON_YES= enable-true-color UTF8PROC_LIB_DEPENDS= libutf8proc.so:textproc/utf8proc UTF8PROC_MESON_NO= disable-utf8proc PERL_USE_OFF= perl5=build post-install-PERL-off: @${RM} -r ${STAGEDIR}${DATADIR}/scripts post-install: ${INSTALL_DATA} ${WRKSRC}/irssi.conf ${STAGEDIR}${PREFIX}/etc/irssi.conf.sample .include diff --git a/irc/irssi/distinfo b/irc/irssi/distinfo index 746a37fe436a..ac8a34157659 100644 --- a/irc/irssi/distinfo +++ b/irc/irssi/distinfo @@ -1,11 +1,3 @@ -TIMESTAMP = 1657237620 -SHA256 (irssi-1.4.1.tar.xz) = 6a7692741bba16f3ba6f97cf7246421ac57055dcedcca9a4d21663f8efe47501 -SIZE (irssi-1.4.1.tar.xz) = 1210772 -SHA256 (3404d822c83546b031d47a99e37ae65b887bec94.patch) = 685f5d758de2ea1477564bb185ef99a931d4ffaaecea3a814cfad45f8c8e5b1d -SIZE (3404d822c83546b031d47a99e37ae65b887bec94.patch) = 4113 -SHA256 (c6a7f02042f63d01a38e8d522cff8f5d951afd51.patch) = 99d529d2572af57839c00b5a866934df1cfb21e51fd1b8827ba4b2d344810c18 -SIZE (c6a7f02042f63d01a38e8d522cff8f5d951afd51.patch) = 814 -SHA256 (730c3c1a12f782b92d710883f52a106e37f148e4.patch) = cd06d9fc2404e71435779fcd44628cf195a00302d72733d19dc9a04222e28beb -SIZE (730c3c1a12f782b92d710883f52a106e37f148e4.patch) = 4124 -SHA256 (1b6b92ffff6950ee28c1b7936f53d83988843ed4.patch) = 5b9886215e1000dd66aef062e2df94de9eefdb729811405b3e6f7df7265dbf40 -SIZE (1b6b92ffff6950ee28c1b7936f53d83988843ed4.patch) = 988 +TIMESTAMP = 1658075150 +SHA256 (irssi-1.4.2.tar.xz) = 79a4765d2dfe153c440a1775b074d5d0682b96814c7cf92325b5e15ce50e26a8 +SIZE (irssi-1.4.2.tar.xz) = 1211740 diff --git a/irc/irssi/files/patch-git-01-f17fb682573985656fa26bf10370b9e1d88e3bdf b/irc/irssi/files/patch-git-01-f17fb682573985656fa26bf10370b9e1d88e3bdf deleted file mode 100644 index 8c25fafc1b89..000000000000 --- a/irc/irssi/files/patch-git-01-f17fb682573985656fa26bf10370b9e1d88e3bdf +++ /dev/null @@ -1,172 +0,0 @@ -From f17fb682573985656fa26bf10370b9e1d88e3bdf Mon Sep 17 00:00:00 2001 -From: ailin-nemui -Date: Sat, 18 Jun 2022 12:42:47 +0200 -Subject: [PATCH] Merge pull request #1387 from ailin-nemui/textbufferview - -Textbufferview - -(cherry picked from commit 783dd375339c1c98be36e277d47afdd6918d6160) ---- - src/fe-text/textbuffer-commands.c | 1 + - src/fe-text/textbuffer-view.c | 54 +++++++++++++++++++------------ - 3 files changed, 37 insertions(+), 24 deletions(-) - -diff --git a/src/fe-text/textbuffer-commands.c b/src/fe-text/textbuffer-commands.c -index f30eab0e06..6ed7c39c51 100644 ---- src/fe-text/textbuffer-commands.c -+++ src/fe-text/textbuffer-commands.c -@@ -393,6 +393,7 @@ static void cmd_scrollback_redraw(void) - - term_refresh_freeze(); - textbuffer_view_reset_cache(gui->view); -+ textbuffer_view_resize(gui->view, gui->view->width, gui->view->height); - gui_window_redraw(active_win); - term_refresh_thaw(); - } -diff --git a/src/fe-text/textbuffer-view.c b/src/fe-text/textbuffer-view.c -index 79f3522c85..2cc6ce6dde 100644 ---- src/fe-text/textbuffer-view.c -+++ src/fe-text/textbuffer-view.c -@@ -402,10 +402,9 @@ view_update_line_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) - - if (rec->count > 1) { - for (pos = 0; lines != NULL; pos++) { -- void *data = lines->data; -+ LINE_CACHE_SUB_REC *data = lines->data; - -- memcpy(&rec->lines[pos], data, -- sizeof(LINE_CACHE_SUB_REC)); -+ memcpy(&rec->lines[pos], data, sizeof(LINE_CACHE_SUB_REC)); - - lines = g_slist_remove(lines, data); - g_free(data); -@@ -427,7 +426,7 @@ static void view_remove_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, - - cache = g_hash_table_lookup(view->cache->line_cache, line); - if (cache != NULL) { -- g_free(cache); -+ line_cache_destroy(NULL, cache); - g_hash_table_remove(view->cache->line_cache, line); - } - } -@@ -438,7 +437,7 @@ static void view_update_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, - view_remove_cache(view, line, update_counter); - - if (view->buffer->cur_line == line) -- view->cache->last_linecount = view_get_linecount(view, line); -+ view_get_linecount(view, line); - } - - void textbuffer_view_reset_cache(TEXT_BUFFER_VIEW_REC *view) -@@ -467,6 +466,7 @@ static int view_line_draw(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, - unichar chr; - int xpos, color, drawcount, first, need_move, need_clrtoeol, char_width; - unsigned int fg24, bg24; -+ fg24 = bg24 = UINT_MAX; - - if (view->dirty) /* don't bother drawing anything - redraw is coming */ - return 0; -@@ -767,7 +767,6 @@ static void view_unregister_indent_func(TEXT_BUFFER_VIEW_REC *view, - /* recreate cache so it won't contain references - to the indent function */ - textbuffer_view_reset_cache(view); -- view->cache = textbuffer_cache_get(view->siblings, view->width); - } - - void textbuffer_views_unregister_indent_func(INDENT_FUNC indent_func) -@@ -1033,13 +1032,17 @@ void textbuffer_view_clear(TEXT_BUFFER_VIEW_REC *view) - /* Scroll the view up/down */ - void textbuffer_view_scroll(TEXT_BUFFER_VIEW_REC *view, int lines) - { -- int count; -+ int count, ypos; - -- g_return_if_fail(view != NULL); -+ g_return_if_fail(view != NULL); -+ -+ count = view_scroll(view, &view->startline, &view->subline, lines, TRUE); -+ -+ ypos = view->ypos + (lines < 0 ? count : -count); -+ textbuffer_view_init_ypos(view); -+ if (ypos != view->ypos) -+ textbuffer_view_resize(view, view->width, view->height); - -- count = view_scroll(view, &view->startline, &view->subline, -- lines, TRUE); -- view->ypos += lines < 0 ? count : -count; - view->bottom = view_is_bottom(view); - if (view->bottom) view->more_text = FALSE; - -@@ -1079,10 +1082,10 @@ LINE_CACHE_REC *textbuffer_view_get_line_cache(TEXT_BUFFER_VIEW_REC *view, - cache = g_hash_table_lookup(view->cache->line_cache, line); - if (cache == NULL) - cache = view_update_line_cache(view, line); -- else -+ else - cache->last_access = time(NULL); - -- return cache; -+ return cache; - } - - static void view_insert_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line) -@@ -1263,12 +1266,13 @@ static void view_remove_line(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line, - view_bookmarks_check(view, line); - - if (view->buffer->cur_line == line) { -- /* the last line is being removed */ -+ /* the last line is being removed */ - LINE_REC *prevline; - -- prevline = view->buffer->first_line == line ? NULL : -- textbuffer_line_last(view->buffer)->prev; -- view->cache->last_linecount = prevline == NULL ? 0 : -+ prevline = view->buffer->first_line == line ? -+ NULL : -+ textbuffer_line_last(view->buffer)->prev; -+ if (prevline != NULL) - view_get_linecount(view, prevline); - } - -@@ -1474,8 +1478,10 @@ void textbuffer_view_set_window(TEXT_BUFFER_VIEW_REC *view, - - if (view->window != window) { - view->window = window; -- if (window != NULL) -+ if (window != NULL) { -+ textbuffer_view_resize(view, view->width, view->height); - view->dirty = TRUE; -+ } - } - } - -@@ -1504,12 +1510,18 @@ static int line_cache_check_remove(void *key, LINE_CACHE_REC *cache, - static int sig_check_linecache(void) - { - GSList *tmp, *caches; -- time_t now; -+ time_t now; - -- now = time(NULL); caches = NULL; -+ now = time(NULL); -+ caches = NULL; - for (tmp = views; tmp != NULL; tmp = tmp->next) { - TEXT_BUFFER_VIEW_REC *rec = tmp->data; - -+ if (rec->window != NULL) { -+ /* keep visible lines mapped */ -+ view_get_lines_height(rec, rec->startline, rec->subline, NULL); -+ } -+ - if (g_slist_find(caches, rec->cache) != NULL) - continue; - -@@ -1519,7 +1531,7 @@ static int sig_check_linecache(void) - &now); - } - -- g_slist_free(caches); -+ g_slist_free(caches); - return 1; - } -