git: fcaf1142ea09 - main - editors/mg: convert to USES=uidfix

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Fri, 03 Nov 2023 21:17:52 UTC
The branch main has been updated by fuz:

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

commit fcaf1142ea091ae55041688d509d724110fe4f17
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2023-10-27 16:57:44 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2023-11-03 21:09:36 +0000

    editors/mg: convert to USES=uidfix
    
    Reported by:    jbeich
    Approved by:    portmgr (infrastructure blanket)
---
 editors/mg/Makefile | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/editors/mg/Makefile b/editors/mg/Makefile
index 6db8a3b90a71..c7320e0d4345 100644
--- a/editors/mg/Makefile
+++ b/editors/mg/Makefile
@@ -10,14 +10,9 @@ WWW=		https://man.openbsd.org/mg
 
 LICENSE=	PD
 
-USES=		ncurses
-STAGEOWN=	${USER}
-# replace with STAGEGRP=${.MAKE.GID} once FreeBSD 12 is EOL
-STAGEGRP!=	id -gn
-MAKE_ARGS+=	BINOWN=${STAGEOWN} BINGRP=${STAGEGRP} MANOWN=${STAGEOWN} \
-		MANGRP=${STAGEGRP} BINDIR=${PREFIX}/bin \
-		MANDIR=${PREFIX}/man/man NCURSESLIB=${NCURSESLIB} \
-		NCURSESINC=${NCURSESINC}
+USES=		ncurses uidfix
+MAKE_ARGS+=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man \
+		NCURSESLIB=${NCURSESLIB} NCURSESINC=${NCURSESINC}
 FLAVORS=	dynamic static
 FLAVOR?=	${FLAVORS:[1]}
 static_PKGNAMESUFFIX=	-static