svn commit: r529797 - in head/devel/stfl: . files
Tobias Kortkamp
tobik at FreeBSD.org
Sun Mar 29 11:40:56 UTC 2020
Author: tobik
Date: Sun Mar 29 11:34:10 2020
New Revision: 529797
URL: https://svnweb.freebsd.org/changeset/ports/529797
Log:
devel/stfl: Fix display corruption bug
This is needed by newsboat to fix
https://github.com/newsboat/newsboat/issues/506
While here also strip the library.
PR: 245001
Approved by: arved (maintainer)
Added:
head/devel/stfl/files/
head/devel/stfl/files/patch-base.c (contents, props changed)
Modified:
head/devel/stfl/Makefile
Modified: head/devel/stfl/Makefile
==============================================================================
--- head/devel/stfl/Makefile Sun Mar 29 11:18:30 2020 (r529796)
+++ head/devel/stfl/Makefile Sun Mar 29 11:34:10 2020 (r529797)
@@ -3,6 +3,7 @@
PORTNAME= stfl
PORTVERSION= 0.24
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.clifford.at/stfl/
@@ -38,5 +39,6 @@ pre-build:
post-install:
${LN} -s libstfl.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libstfl.so.0
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libstfl.so.${PORTVERSION}
.include <bsd.port.mk>
Added: head/devel/stfl/files/patch-base.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/stfl/files/patch-base.c Sun Mar 29 11:34:10 2020 (r529797)
@@ -0,0 +1,19 @@
+https://github.com/newsboat/newsboat/issues/506
+
+--- base.c.orig 2015-01-05 10:50:54 UTC
++++ base.c
+@@ -750,9 +750,11 @@ unsigned int stfl_print_richtext(struct stfl_widget *w
+ wmemcpy(stylename, p1 + 1, p2 - p1 - 1);
+ stylename[p2 - p1 - 1] = L'\0';
+ if (wcscmp(stylename,L"")==0) {
+- mvwaddnwstr(win, y, x, L"<", 1);
+- retval += 1;
+- ++x;
++ if (end_col - x > 0) {
++ mvwaddnwstr(win, y, x, L"<", 1);
++ retval += 1;
++ ++x;
++ }
+ } else if (wcscmp(stylename, L"/")==0) {
+ stfl_style(win, style_normal);
+ } else {
More information about the svn-ports-all
mailing list