Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2021 13:17:34 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 48d5cc6deee9 - main - x11/wezterm: add termcap/terminfo support
Message-ID:  <202108281317.17SDHYhi028312@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=48d5cc6deee9afb57474e7ebd4e461e5d6d05e26

commit 48d5cc6deee9afb57474e7ebd4e461e5d6d05e26
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-08-28 09:59:49 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-08-28 13:17:20 +0000

    x11/wezterm: add termcap/terminfo support
    
    Mostly a workaround for bug 247447. On DragonFly and FreeBSD >= 14.0
    TERM=wezterm is only useful for debugging.
---
 x11/wezterm/Makefile    | 11 ++++++++++-
 x11/wezterm/pkg-message | 16 ++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/x11/wezterm/Makefile b/x11/wezterm/Makefile
index 90ce9672f4ad..ae193b6b4e46 100644
--- a/x11/wezterm/Makefile
+++ b/x11/wezterm/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	wezterm
 DISTVERSION=	20210814-124438-54e29167
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11
 
 MAINTAINER=	jbeich@FreeBSD.org
@@ -40,6 +40,11 @@ PLIST_FILES=	bin/strip-ansi-escapes \
 		share/metainfo/org.wezfurlong.wezterm.appdata.xml \
 		${NULL}
 
+.if exists(/usr/bin/tic)
+PKGMESSAGE=	${NONEXISTENT}
+PLIST_FILES+=	share/site-terminfo/${PORTNAME:C,^.,&/&,}
+.endif
+
 CARGO_CRATES=	addr2line-0.16.0 \
 		adler-1.0.2 \
 		adler32-1.2.0 \
@@ -556,5 +561,9 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/assets/${f:R}.${f:E} \
 		${STAGEDIR}${PREFIX}/${PLIST_FILES:M*.${f:E}}
 .endfor
+.if exists(/usr/bin/tic)
+	tic -x -o ${STAGEDIR}${PREFIX}/${PLIST_FILES:M*terminfo*:[1]:H:H} \
+		${WRKSRC}/termwiz/data/${PORTNAME}.terminfo
+.endif
 
 .include <bsd.port.mk>
diff --git a/x11/wezterm/pkg-message b/x11/wezterm/pkg-message
new file mode 100644
index 000000000000..e927374a62d5
--- /dev/null
+++ b/x11/wezterm/pkg-message
@@ -0,0 +1,16 @@
+[
+{ type: install
+  message: <<EOM
+Some features require adjusting termcap(5) e.g.,
+
+  # To test run: wezterm --config term=\"wezterm\"
+  $ cat >>/etc/termcap
+  wezterm|Wez's terminal emulator:\
+  	:it#8:\
+  	:IC=\E[%d@:SF=\E[%dS:SR=\E[%dT:bt=\E[Z:ec=\E[%dX:kb=\177:\
+  	:mb=\E[5m:me=\E[0m:mh=\E[2m:mm=\E[?1034h:mo=\E[?1034l:nw@:\
+  	:te=\E[?1049l\E[23;0;0t:ti=\E[?1049h\E[22;0;0t:\
+  	:vb=\E[?5h\E[?5l:tc=xterm-256color:
+EOM
+}
+]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108281317.17SDHYhi028312>