git: 428498db4b1e - main - x11/ly: FreeBSD users deserves nice bars in console

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Fri, 04 Feb 2022 15:18:08 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=428498db4b1eab71c787485b9cc249ac7ddd7542

commit 428498db4b1eab71c787485b9cc249ac7ddd7542
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2022-02-04 15:15:33 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2022-02-04 15:17:15 +0000

    x11/ly: FreeBSD users deserves nice bars in console
    
    Ly by default when not running on linux uses ugly ascii art instead of
    nice drawing on the console, now FreeBSD also have the nice drawing
---
 x11/ly/Makefile               |  2 +-
 x11/ly/files/patch-src_draw.c | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/x11/ly/Makefile b/x11/ly/Makefile
index 0bc98c2ee69c..58e201f57c6e 100644
--- a/x11/ly/Makefile
+++ b/x11/ly/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	ly
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.5.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11
 
 MAINTAINER=	nc@FreeBSD.org
diff --git a/x11/ly/files/patch-src_draw.c b/x11/ly/files/patch-src_draw.c
new file mode 100644
index 000000000000..cab29b25ff61
--- /dev/null
+++ b/x11/ly/files/patch-src_draw.c
@@ -0,0 +1,11 @@
+--- src/draw.c.orig	2022-02-04 14:30:20 UTC
++++ src/draw.c
+@@ -47,7 +47,7 @@ void draw_init(struct term_buf* buf)
+ 		+ (config.input_len + 1)
+ 		+ buf->labels_max_len;
+ 
+-#if defined(__linux__)
++#if defined(__linux__) || defined(__FreeBSD__)
+ 	buf->box_chars.left_up = 0x250c;
+ 	buf->box_chars.left_down = 0x2514;
+ 	buf->box_chars.right_up = 0x2510;