diff --git a/net-im/gomuks/Makefile b/net-im/gomuks/Makefile index 126fa4b15e67..c78dcbc0e549 100644 --- a/net-im/gomuks/Makefile +++ b/net-im/gomuks/Makefile @@ -1,23 +1,23 @@ # Created by: Emanuel Haupt PORTNAME= gomuks PORTVERSION= 0.2.4 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-im MAINTAINER= ehaupt@FreeBSD.org COMMENT= Terminal Matrix client written in Go LICENSE= AGPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libolm.so:security/olm USES= go:modules GO_MODULE= github.com/tulir/gomuks PLIST_FILES= bin/gomuks .include diff --git a/net-im/gomuks/files/patch-vendor_maunium.net_go_tcell_tscreen.go b/net-im/gomuks/files/patch-vendor_maunium.net_go_tcell_tscreen.go new file mode 100644 index 000000000000..a556e946df72 --- /dev/null +++ b/net-im/gomuks/files/patch-vendor_maunium.net_go_tcell_tscreen.go @@ -0,0 +1,18 @@ +--- vendor/maunium.net/go/tcell/tscreen.go.orig 2022-04-12 11:45:41 UTC ++++ vendor/maunium.net/go/tcell/tscreen.go +@@ -50,13 +50,9 @@ const ( + // $COLUMNS environment variables can be set to the actual window size, + // otherwise defaults taken from the terminal database are used. + func NewTerminfoScreen() (Screen, error) { +- term := os.Getenv("TERM") +- if len(term) >= 6 && term[:6] == "screen" && len(os.Getenv("TMUX")) > 0 { +- term = "tmux" +- } +- ti, e := terminfo.LookupTerminfo(term) ++ ti, e := terminfo.LookupTerminfo(os.Getenv("TERM")) + if e != nil { +- ti, e = loadDynamicTerminfo(term) ++ ti, e = loadDynamicTerminfo(os.Getenv("TERM")) + if e != nil { + return nil, e + }