git: 179040b024ae - main - x11/kitty: Update to 0.24.2

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Sat, 12 Feb 2022 19:56:20 UTC
The branch main has been updated by rhurlin:

URL: https://cgit.FreeBSD.org/ports/commit/?id=179040b024aeaa0ed905257b13565459e492a22f

commit 179040b024aeaa0ed905257b13565459e492a22f
Author:     Alexis Praga <alexis.praga@free.fr>
AuthorDate: 2022-02-12 19:54:00 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2022-02-12 19:54:00 +0000

    x11/kitty: Update to 0.24.2
    
    Changelog: https://sw.kovidgoyal.net/kitty/changelog/
    
    PR:             261732
---
 x11/kitty/Makefile | 16 +++++++++++-----
 x11/kitty/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile
index 2ee52c8f63a1..ad5e661ba958 100644
--- a/x11/kitty/Makefile
+++ b/x11/kitty/Makefile
@@ -1,7 +1,7 @@
 PORTNAME=	kitty
-DISTVERSIONPREFIX=	v
-DISTVERSION=	0.24.1
+DISTVERSION=	0.24.2
 CATEGORIES=	x11
+MASTER_SITES=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	alexis.praga@free.fr
 COMMENT=	Cross-platform, fast, featureful, GPU-based terminal emulator
@@ -26,9 +26,8 @@ LIB_DEPENDS=	libdbus-1.so:devel/dbus \
 		libwayland-cursor.so:graphics/wayland \
 		libxkbcommon.so:x11/libxkbcommon
 
-USES=		compiler:c11 cpe gettext-runtime gl gmake ncurses:port pkgconfig \
-		python:3.5+ shebangfix terminfo xorg
-USE_GITHUB=	yes
+USES=		compiler:c11 cpe gettext-runtime gl gmake pkgconfig \
+		python:3.5+ shebangfix tar:xz terminfo xorg
 GH_ACCOUNT=	kovidgoyal
 USE_GL=		gl
 USE_XORG=	x11 xcb xcursor xi xinerama xrandr
@@ -60,6 +59,13 @@ _EMPTY_DIRS=	kittens/choose kittens/diff kittens/unicode_input kittens kitty
 MAKE_ENV+=	KITTY_NO_LTO=1
 .endif
 
+# ncursesw and tinfo >= 6.1 seem to be neededd
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400035
+USES+=ncurses:port
+.else
+USES+=ncurses
+.endif
+
 # For librsync, we need to set header and library path
 do-build:
 	(cd ${WRKSRC} && \
diff --git a/x11/kitty/distinfo b/x11/kitty/distinfo
index e5d90811e2c7..0121dc3acd11 100644
--- a/x11/kitty/distinfo
+++ b/x11/kitty/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641939405
-SHA256 (kovidgoyal-kitty-v0.24.1_GH0.tar.gz) = a49b7ea7d36989fb17bd31935dc6a9a619338647c58ca1eb00400340b0d756ff
-SIZE (kovidgoyal-kitty-v0.24.1_GH0.tar.gz) = 5828079
+TIMESTAMP = 1644667031
+SHA256 (kitty-0.24.2.tar.xz) = 66a99fcfeae481db65b94b0bc5fdb4bb28b099fe4fa94b9c0fb0284f34c7b9c7
+SIZE (kitty-0.24.2.tar.xz) = 4601672