From owner-dev-commits-ports-main@freebsd.org Sat Aug 28 13:17:34 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7D72C674304; Sat, 28 Aug 2021 13:17:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GxcZQ2q5Nz4SR4; Sat, 28 Aug 2021 13:17:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 40A8E17C84; Sat, 28 Aug 2021 13:17:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17SDHYrD028313; Sat, 28 Aug 2021 13:17:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17SDHYhi028312; Sat, 28 Aug 2021 13:17:34 GMT (envelope-from git) Date: Sat, 28 Aug 2021 13:17:34 GMT Message-Id: <202108281317.17SDHYhi028312@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: 48d5cc6deee9 - main - x11/wezterm: add termcap/terminfo support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 48d5cc6deee9afb57474e7ebd4e461e5d6d05e26 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2021 13:17:34 -0000 The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=48d5cc6deee9afb57474e7ebd4e461e5d6d05e26 commit 48d5cc6deee9afb57474e7ebd4e461e5d6d05e26 Author: Jan Beich AuthorDate: 2021-08-28 09:59:49 +0000 Commit: Jan Beich 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 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: <>/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 +} +]