git: 1169e2018977 - main - editors/mg: Install man pages under share/man

From: Joseph Mingrone <jrm_at_FreeBSD.org>
Date: Tue, 27 Feb 2024 02:45:21 UTC
The branch main has been updated by jrm:

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

commit 1169e2018977879703d107ac09da4febc96af312
Author:     Joseph Mingrone <jrm@FreeBSD.org>
AuthorDate: 2024-02-27 00:27:16 +0000
Commit:     Joseph Mingrone <jrm@FreeBSD.org>
CommitDate: 2024-02-27 02:43:33 +0000

    editors/mg: Install man pages under share/man
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 editors/mg/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/editors/mg/Makefile b/editors/mg/Makefile
index c7320e0d4345..eb6a19211330 100644
--- a/editors/mg/Makefile
+++ b/editors/mg/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mg
 DISTVERSION=	20231016
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	editors
 MASTER_SITES=   https://hydrus.org.uk/downloads/
@@ -11,7 +12,7 @@ WWW=		https://man.openbsd.org/mg
 LICENSE=	PD
 
 USES=		ncurses uidfix
-MAKE_ARGS+=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/man/man \
+MAKE_ARGS+=	BINDIR=${PREFIX}/bin MANDIR=${PREFIX}/share/man/man \
 		NCURSESLIB=${NCURSESLIB} NCURSESINC=${NCURSESINC}
 FLAVORS=	dynamic static
 FLAVOR?=	${FLAVORS:[1]}
@@ -22,7 +23,7 @@ MAKE_ARGS+= 	NO_SHARED=yes
 PLIST_FILES=	/rescue/mg
 .else
 PLIST_FILES=	bin/mg \
-		man/man1/mg.1.gz
+		share/man/man1/mg.1.gz
 PORTDOCS=	README tutorial
 OPTIONS_DEFINE=	DOCS
 .endif