git: 1219d920a4e3 - main - editors/kakoune: Simply Makefile

From: Ashish SHUKLA <ashish_at_FreeBSD.org>
Date: Wed, 11 Sep 2024 22:48:30 UTC
The branch main has been updated by ashish:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1219d920a4e3ea38a83e48e05824b974ec91d6ca

commit 1219d920a4e3ea38a83e48e05824b974ec91d6ca
Author:     Siva Mahadevan <me@svmhdvn.name>
AuthorDate: 2024-09-11 22:42:38 +0000
Commit:     Ashish SHUKLA <ashish@FreeBSD.org>
CommitDate: 2024-09-11 22:47:42 +0000

    editors/kakoune: Simply Makefile
    
    - Remove dependency on gmake, it works fine with make
    - Remove explicit DEBUG_MAKE_ARGS_OFF, its value is implied
    - Use built-in test support in ports framework
    - Cleanup unneeded stuff
    
    Differential Revision:  https://reviews.freebsd.org/D45902
---
 editors/kakoune/Makefile | 18 ++++++------------
 1 file changed, 6 insertions(+), 12 deletions(-)

diff --git a/editors/kakoune/Makefile b/editors/kakoune/Makefile
index fe017452bed7..d117caae3c0b 100644
--- a/editors/kakoune/Makefile
+++ b/editors/kakoune/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	kakoune
 DISTVERSION=	2024.05.18
+PORTREVISION=	1
 CATEGORIES=	editors
 MASTER_SITES=	https://github.com/mawww/kakoune/releases/download/v${DISTVERSION}/
 
@@ -10,28 +11,21 @@ WWW=		https://kakoune.org
 LICENSE=	UNLICENSE
 LICENSE_FILE=	${WRKSRC}/UNLICENSE
 
+# See https://github.com/mawww/kakoune/issues/2520
 RUN_DEPENDS=	setsid:sysutils/setsid
 
-USES=		compiler:c++20-lang gmake tar:bzip2
+USES=		compiler:c++20-lang tar:bzip2
 DATADIR=	${PREFIX}/share/kak
 DOCSDIR=	${PREFIX}/share/doc/kak
-PATCH_WRKSRC=	${WRKSRC:H}
 
 OPTIONS_DEFINE=	DEBUG DOCS
 
 DEBUG_MAKE_ARGS=	debug=yes
-DEBUG_MAKE_ARGS_OFF=	debug=no
 
-.include <bsd.port.pre.mk>
-
-post-patch:
-	@${REINPLACE_CMD} -e '/-O3/d' \
-		${WRKSRC}/Makefile
+TEST_TARGET=	test
+TEST_ENV+=	LC_ALL=en_US.UTF-8
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kak
 
-do-test:
-	@cd ${WRKSRC:H}/test && ${SETENV} LC_ALL=en_US.UTF-8 ./run
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>