git: 565f8cc360a5 - main - editors/mg: Update to 20241008

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Thu, 17 Oct 2024 18:16:53 UTC
The branch main has been updated by uzsolt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=565f8cc360a5fd805e8ab5be26963e4d8a281839

commit 565f8cc360a5fd805e8ab5be26963e4d8a281839
Author:     Mark Willson <cdr.nil@gmail.com>
AuthorDate: 2024-10-17 18:13:55 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-10-17 18:16:23 +0000

    editors/mg: Update to 20241008
    
    Pet portlint, portfmt.
    
    Changelog:
    * Ignore universal ctags extended metadata in tagaddress, making search
      patterns work again
    * Fix auto-indent-mode with custom tab widths
    * Add handling for C-u modifier in M-! and M-|
    * Dired-up-directory bound to ^ to go up a directory in dired buffers
    
    PR:             282052
    Approved by:    submitter is maintainer
---
 editors/mg/Makefile              | 21 +++++++++++++--------
 editors/mg/distinfo              |  6 +++---
 editors/mg/files/patch-version.c | 11 +++++++++++
 3 files changed, 27 insertions(+), 11 deletions(-)

diff --git a/editors/mg/Makefile b/editors/mg/Makefile
index a2d846277840..8b34f3985b7d 100644
--- a/editors/mg/Makefile
+++ b/editors/mg/Makefile
@@ -1,8 +1,8 @@
 PORTNAME=	mg
-DISTVERSION=	20240405
+DISTVERSION=	20241008
 PORTEPOCH=	1
 CATEGORIES=	editors
-MASTER_SITES=   https://hydrus.org.uk/downloads/
+MASTER_SITES=	https://hydrus.org.uk/downloads/
 
 MAINTAINER=	cdr.nil@gmail.com
 COMMENT=	Small, fast Emacs-like editor
@@ -10,15 +10,15 @@ WWW=		https://man.openbsd.org/mg
 
 LICENSE=	PD
 
-USES=		ncurses uidfix
-MAKE_ARGS+=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man/man \
-		NCURSESLIB=${NCURSESLIB} NCURSESINC=${NCURSESINC}
-FLAVORS=	dynamic static
-FLAVOR?=	${FLAVORS:[1]}
+FLAVORS=		dynamic static
+FLAVOR?=		${FLAVORS:[1]}
 static_PKGNAMESUFFIX=	-static
+
+USES=		ncurses uidfix
+
 .if ${FLAVOR} == static
 COMMENT+=	(rescue(8) version)
-MAKE_ARGS+= 	NO_SHARED=yes
+MAKE_ARGS+=	NO_SHARED=yes
 PLIST_FILES=	/rescue/mg
 .else
 PLIST_FILES=	bin/mg \
@@ -27,6 +27,11 @@ PORTDOCS=	README tutorial
 OPTIONS_DEFINE=	DOCS
 .endif
 
+MAKE_ARGS+=	BINDIR=${PREFIX}/bin \
+		MANDIR=${PREFIX}/share/man/man \
+		NCURSESINC=${NCURSESINC} \
+		NCURSESLIB=${NCURSESLIB}
+
 .if ${FLAVOR} == static
 do-install:
 	@${MKDIR} ${STAGEDIR}/rescue
diff --git a/editors/mg/distinfo b/editors/mg/distinfo
index 9bfb9834cce3..cc1097eb12b9 100644
--- a/editors/mg/distinfo
+++ b/editors/mg/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1712395301
-SHA256 (mg-20240405.tar.gz) = abda55c6c53e8316324d56a9851865ada13f9cd82295f3757de7cb4b83bead57
-SIZE (mg-20240405.tar.gz) = 156768
+TIMESTAMP = 1728587995
+SHA256 (mg-20241008.tar.gz) = 56a1caf883ab968dd4c6a2d13cf56232d392e834b9cfaf2dd2f4d3b6cf26db75
+SIZE (mg-20241008.tar.gz) = 154865
diff --git a/editors/mg/files/patch-version.c b/editors/mg/files/patch-version.c
new file mode 100644
index 000000000000..9c4d4ca3136d
--- /dev/null
+++ b/editors/mg/files/patch-version.c
@@ -0,0 +1,11 @@
+--- version.c.orig	2024-10-10 16:12:07 UTC
++++ version.c
+@@ -13,7 +13,7 @@
+ 
+ #include "def.h"
+ 
+-const char	version[] = "Mg 2a";
++const char	version[] = "Mg 2a (20241008)";
+ 
+ /*
+  * Display the version. All this does